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,680 points
149 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,030 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, 2019 in Big Data Hadoop by Omkar
• 69,030 points
190 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, 2019 in Big Data Hadoop by Gitika
• 52,440 points
153 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, 2019 in Big Data Hadoop by TIna
234 views
+1 vote
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,950 points
6,397 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,950 points
992 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
42,265 views
–1 vote
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,320 points
2,390 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
• 69,030 points
8,056 views
0 votes
1 answer

Not able to run hdfs commands

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

answered Jan 3, 2019 in Big Data Hadoop by Omkar
• 69,030 points
1,436 views