All Apps and Add-ons

Unable to connect to Hadoop cluster using Splunk Hadoop Connect

Krish_Splunk
New Member

Hi,

I am getting the below error when ever I am trying to connect hadoop cluser with splunk using splunk

hadoop connect.

Unable to connect to Hadoop cluster Failed to run Hadoop CLI job command ls: No FileSystem for scheme: hdfs

Though the below command is running perfectly fine.

/usr/lib/hadoop/bin/hadoop fs -ls hdfs://localhost:8020/

The configuration I use in the app is as below.

HDFS URI
localhost:8020
HADOOP_HOME
/usr/lib/hadoop
JAVA_HOME
/usr/lib/jvm/jdk1.8.0

Please let me know where I have gone wrong ?

Tags (1)
0 Karma

wkupersa
Path Finder

I figured out what was going on with this in my case. My issue what that I was using the client package from the Cloudera Hadoop distro and that my /usr/lib/hadoop had the binaries and many libraries for hadoop, but it did not have the hadoop-hdfs jar file. Coudera has a separate directory, /usr/lib/hadoop-hdfs, which contained a jar for hdfs. It's klugey, but I copied hadoop-hdfs-2.6.0-cdh5.7.1.jar into /usr/lib/hadoop and then it worked.

0 Karma

harsmarvania57
Ultra Champion

Hi @Krish_Splunk

I am quite surprise that if you are using localhost as hadoop server then why are you using "localhost:8200", just simply select "Locally mounted Hadoop" and give locally mounted file system.

Thanks,
Harshil

0 Karma

Krish_Splunk
New Member

Hi Guys,

Any Idea on this ??

0 Karma

rdagan_splunk
Splunk Employee
Splunk Employee

In Hadoop Connect, don't forget to add the / after 8020

0 Karma

wkupersa
Path Finder

It doesn't accept a "/" after the 8020. It errors with "invalid stanza".

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...