"Connection refused" Error for Namenode-HDFS (Hadoop problem)

All my nodes are up and running when we see the command jps, but still I can’t connect to the hdfs file system. Whenever I click on Browse the filesystemthe Hadoop Namenode localhost: 8020 page, the error I get is Connection Refused. I also tried formatting and restarting the namenode, but still the error persists. Can anyone help me solve this problem.

+5
source share
3 answers

Check if all your services JobTracker, Jps, NameNode. DataNode, TaskTrackerare running by running the command jps.

Try to run them one at a time:

./bin/stop-all.sh
./bin/hadoop-daemon.sh start namenode
./bin/hadoop-daemon.sh start jobtracker
./bin/hadoop-daemon.sh start tasktracker
./bin/hadoop-daemon.sh start datanode

, temp. ./conf/core-site.xml

./bin/stop-all.sh
rm -rf /tmp/hadoop*
./bin/hadoop namenode -format

./logs.

tail -200 hadoop*jobtracker*.log
tail -200 hadoop*namenode*.log
tail -200 hadoop*datanode*.log

, .

+6

HDFS 9000 /.

node.

+2

Modify core-site.xml

   <property>
    <name>fs.default.name</name>
    <value>hdfs://hadoopvm:8020</value>
    <final>true</final>
   </property>

change the ip address.

<property>
<name>fs.default.name</name>
<value>hdfs://192.168.132.129:8020</value>
<final>true</final>
</property>
0
source

All Articles