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,054 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,220 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,220 points
2,160 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,770 points
985 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
1,352 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
• 11,380 points
11,029 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
• 11,380 points
2,538 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,838 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,350 points
4,612 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,220 points
15,724 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,220 points
3,200 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP