Can't seem to make hdfs commands to work

0 votes
$ hdfs dfs -ls /
ls: Call From new-host-3.home/192.168.1.3 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

This is my problem

Dec 21, 2018 in Big Data Hadoop by digger
• 27,620 points
41 views

1 answer to this question.

0 votes

Check the ip address mentioned in core-site.xml file if its similar to the one mentioned above or not. Your file should look something like this:

<configuration>
  <property>
 <name>fs.default.name</name>
 <value>hdfs://192.168.1.3:9000</value>
</property>

Then use the following commands to restart hadoop daemons.

stop-all.sh
hadoop namenode -format
start-all.sh
answered Dec 21, 2018 by Omkar
• 67,120 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Unable to execute HDFS commands on the terminal

Maybe because you have not started hadoop ...READ MORE

answered Feb 6 in Big Data Hadoop by Omkar
• 67,120 points
14 views
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
+2 votes
10 answers

Is there any difference between “hdfs dfs” and “hadoop fs” shell commands?

Yes, there's a difference between hadoop fs and ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Kunal
8,701 views
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,110 points
2,046 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,110 points
196 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,472 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
764 views
0 votes
1 answer

Hadoop hdfs "permission denied" error when I try to make new directory

This is because you dont have enough ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 67,120 points
739 views
0 votes
1 answer

Not able to run hdfs commands

Because you said it ran yesterday and ...READ MORE

answered Jan 3 in Big Data Hadoop by Omkar
• 67,120 points
84 views