http://localhost:50070 does not work HADOOP

I already installed Hadoop on my machine "Ubuntu 13.05" and now I have an error when browsing localhost:50070 the browser says that the page does not exist.


Solution 1:

Since Hadoop 3.0.0 - Alpha 1 there was a Change in the port configuration:

http://localhost:50070

was moved to

http://localhost:9870

see https://issues.apache.org/jira/browse/HDFS-9427

Solution 2:

port 50070 changed to 9870 in 3.0.0-alpha1

In fact, lots of others ports changed too. Look:

Namenode ports: 50470 --> 9871, 50070 --> 9870, 8020 --> 9820
Secondary NN ports: 50091 --> 9869, 50090 --> 9868
Datanode ports: 50020 --> 9867, 50010 --> 9866, 50475 --> 9865, 50075 --> 9864

Source

Solution 3:

First, check that java processes that are running using "jps". If you are in a pseudo-distributed mode you must have the following proccesses:

  • Namenode
  • Jobtracker
  • Tasktracker
  • Datanode
  • SecondaryNamenode

If you are missing any, use the restart commands:

$HADOOP_INSTALL/bin/stop-all.sh
$HADOOP_INSTALL/bin/start-all.sh

It can also be because you haven't open that port on the machine:

iptables -A INPUT -p tcp --dport 50070 -j ACCEPT

Solution 4:

  • step 1 : bin/stop-all.sh
  • step 2 : bin/hadoop namenode -format
  • step 3 : bin/start-all.sh