Unable to execute HDFS commands on the terminal

0 votes

 I have opened terminal and was trying to execute HDFS commands. I am getting the attached error.

Feb 6 in Big Data Hadoop by Dinesh
24 views

1 answer to this question.

0 votes

Maybe because you have not started hadoop service.

Open terminal and run:

$ sudo jps
$ sudo service hadoop-master restart
$ sudo jps

After this check whether these 4 daemons are up and running or not: Namenode,datanode,Resource manager, Node manager. If yes then try the command hdfs dfs -ls / again.

answered Feb 6 by Omkar
• 67,380 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Failing to execute the script pig file on HDFS

By convention, the pig script that you ...READ MORE

answered Feb 14 in Big Data Hadoop by John
72 views
+1 vote
1 answer
0 votes
1 answer

What are the different hdfs dfs commands to perform copy operation?

The different hdfs dfs commands to perform ...READ MORE

answered Apr 9 in Big Data Hadoop by Gitika
• 25,340 points
28 views
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,670 points
2,684 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,670 points
279 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
13,327 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
978 views
0 votes
1 answer

Unable to execute the jar file wordcount.

I see that the command that you ...READ MORE

answered Jan 21 in Big Data Hadoop by Omkar
• 67,380 points
120 views
0 votes
1 answer

How to find the port on which hdfs is running?

If you are using hadoop 2.7 or ...READ MORE

answered Jan 24 in Big Data Hadoop by Omkar
• 67,380 points
58 views