http://localhost:50070 does not work HADOOP

前端 未结 12 1319
庸人自扰
庸人自扰 2020-12-12 14:54

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.

相关标签:
12条回答
  • 2020-12-12 15:33

    if you are running and old version of Hadoop (hadoop 1.2) you got an error because http://localhost:50070/dfshealth.html does'nt exit. Check http://localhost:50070/dfshealth.jsp which works !

    0 讨论(0)
  • 2020-12-12 15:35

    If you can open the http://localhost:8088/cluster but can't open http://localhost:50070/. Maybe datanode didn't start-up or namenode didn't formate.

    Hadoop version 2.6.4

    • step 1:

    check whether your namenode has been formated, if not type:

    $ stop-all.sh
    $ /path/to/hdfs namenode -format
    $ start-all.sh
    
    • step 2:

    check your namenode tmp file path, to see in /tmp, if the namenode directory is in /tmp, you need set tmp path in core-site.xml, because every time when you reboot or start your machine, the files in /tmp will be removed, you need set a tmp dir path.

    add the following to it.

    <property>
        <name>hadoop.tmp.dir</name>
        <value>/path/to/hadoop/tmp</value>
    </property>
    
    • step 3:

    check step 2, stop hadoop and remove the namenode tmp dir in /tmp, then type /path/to/hdfs namenode -format, and start the hadoop. The is also a tmp dir in $HADOOP_HOME

    If all the above don't help, please comment below!

    0 讨论(0)
  • 2020-12-12 15:38

    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

    0 讨论(0)
  • 2020-12-12 15:42
    • step 1 : bin/stop-all.sh
    • step 2 : bin/hadoop namenode -format
    • step 3 : bin/start-all.sh
    0 讨论(0)
  • 2020-12-12 15:45

    After installing and configuring Hadoop, you can quickly run the command netstat -tulpn

    to find the ports open. In the new version of Hadoop 3.1.3 the ports are as follows:-

    localhost:8042 Hadoop, localhost:9870 HDFS, localhost:8088 YARN

    0 讨论(0)
  • 2020-12-12 15:46

    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

    0 讨论(0)
提交回复
热议问题