Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access hadoop web UI in linux?

Tags:

linux

hadoop

I have installed Hadoop 2.7.3 as per the following tutorial Digital ocean tutorial for installing hadoop in stand-alone mode. After installing i have started start-dfs.sh but when I started I got the following output.

Starting namenodes on [localhost]
jtech@localhost's password: 
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-jtech-namenode-jtech.out
jtech@localhost's password: 
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-jtech-datanode-jtech.out
Starting secondary namenodes [0.0.0.0]
[email protected]'s password: 
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-jtech-secondarynamenode-jtech.out

But when I try to access urls from my web browser, for example, localhost:50030 or 0.0.0.0:50030 I get Unable to connect error in Firefox.

Update: Neither, did localhost:8088 did work as from the answer in the question stated in the comment.

like image 657
JavaTechnical Avatar asked Dec 21 '16 15:12

JavaTechnical


2 Answers

Following along the official Single-Node setup documentation

  1. Format the filesystem:

    $ bin/hdfs namenode -format
    
  2. Start NameNode daemon and DataNode daemon:

    $ sbin/start-dfs.sh
    
  3. Browse the web interface for the NameNode; by default it is available at:

    NameNode - http://localhost:50070/

If you don't format the namenode, it won't start

like image 56
OneCricketeer Avatar answered Nov 02 '22 23:11

OneCricketeer


Try going to the port 50070, http://localhost:50070. If that works HDFS is up and running. Since you are using > 2.2.0 there is no JobTracker. See jps and you should see

$jps
Jps
NameNode
DataNode
ResourceManager
NodeManager
JobHistoryServer

See if you can get to the resource manager http port http://localhost:8088.

like image 24
Kevin Vasko Avatar answered Nov 02 '22 23:11

Kevin Vasko