Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Cannot see Hadoop UI which is running inside docker container, in browser #3625

Closed
@marzieh-ghasemi

Description

I have a Hadoop cluster of three containers on three different hosts; the details are in following: First, I install "weave net" in my three hosts (150.20.11.133,150.20.11.136,150.20.11.157) via this command:

sudo curl -L git.io/weave -o /usr/local/bin/weave
sudo chmod a+x /usr/local/bin/weave
eval $(weave env)
Then I connected three host together via weave. In fact, I ran this command in three hosts:

For example in 150.20.11.133:

Weave launch 150.20.11.136 150.20.11.157
After connecting three hosts together, I had to make SSH passwordless between Master and Workers. Therefore, I did there works: In each host:

ssh-keygen -t rsa
In master:

ssh-copy-id [email protected]
ssh-copy-id [email protected]
cat /home/user/.ssh/id_rsa.pub >> /home/user/.ssh/authorized_keys
As a result of that, I could run SSH without password from master host to slaves.

In each host, I built my Docker file which had configuration for hadoop then I ran that:

In Master:

docker run -v /home/user/.ssh:/root/.ssh --privileged -p 52222:22
-e WEAVE_CIDR=10.32.0.1/12 -ti my-hadoop
In slave1:

docker run -v /home/user/.ssh:/root/.ssh --privileged -p 52222:22
-e WEAVE_CIDR=10.32.0.2/12 -ti my-hadoop
In slave2:

docker run -v /home/user/.ssh:/root/.ssh --privileged -p 52222:22
-e WEAVE_CIDR=10.32.0.3/12 -ti my-hadoop
In each container, I ran these commands:

chmod 700 ~/.ssh/
chmod 600 ~/.ssh/*
chown -R root ~/.ssh/
chgrp -R root ~/.ssh/
chmod -R 750 /root/.ssh/authorized_keys
In master container, I ran this command to run SSH localhost:

ssh-keygen -f "/root/.ssh/known_hosts" -R localhost
Also, I started SSH service in each container node:

service ssh restart
So, I could run SSH from master container to slaves without password. For hadoop configuration, I did these works: First in master node:

hadoop namenode -format
workers had these contents in three contaiers:

[email protected]
[email protected]
core-site.xml had this contents in three containers:

fs.defaultFS hdfs://[email protected]:9000 hdfs-site.xml had these contents in three containers too: dfs.replication 1 dfs.namenode.name.dir file:/usr/local/hadoop_store/hdfs/namenode dfs.datanode.data.dir file:/usr/local/hadoop_store/hdfs/datanode Then I ran this in master container:

/opt/hadoop/sbin/start-dfs.sh
When I ran jps in each container, I received these results: In Master container:

483 SecondaryNameNode
231 NameNode
747 Jps
In each Worker:

117 DataNode
186 Jps
The problem is, I want to see Hadoop UI in browser. I run this URL, but it does not show anything:

http://10.32.0.1:8088

By the way, I have already exposed these ports in docker file:

EXPOSE 22 9000 8088 50070 50075 50030 50060

Would you please tell me how I can see Hadoop cluster UI in browser?

Any help would be appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions