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,550 points
47 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,520 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,520 points
24 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
• 25,340 points
29 views
0 votes
1 answer

Can't seem to read files: "Invalid container ID"

You will have to start pig first ...READ MORE

answered Aug 2 in Big Data Hadoop by TIna
17 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,670 points
2,761 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
290 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,662 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
1,002 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,520 points
1,125 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,520 points
184 views