Can t seem to make hdfs commands to work

–1 vote
$ 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
• 26,740 points
1,803 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
• 69,180 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 7, 2019 in Big Data Hadoop by Omkar
• 69,180 points
2,887 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 10, 2019 in Big Data Hadoop by Gitika
• 65,730 points
1,582 views