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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...