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
14 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,120 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
62 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
• 19,720 points
24 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,030 points
2,038 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,030 points
192 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,379 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
760 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,120 points
76 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,120 points
36 views