我无法打开namenode:50070
,但是namenode:50030
工作正常。
我在VirtualBox上设置了一个2节点集群。主机操作系统是Windows 7,我有2位客人都是ubuntu。 1个奴隶和1个主人。
主人/etc/hosts
:
127.0.0.1 localhost
192.168.1.124 namenode
192.168.1.125 slave1
主人/etc/network/interfaces
:
auto lo
iface lo inet loopback
auto eth2
iface eth2 inet static
address 192.168.1.124
netmask 255.255.255.0
奴隶/etc/hosts
:
127.0.0.1 localhost
192.168.1.124 namenode
192.168.1.125 slave1
奴隶/etc/network/interfaces
:
auto lo
iface lo inet loopback
auto eth3
iface eth3 inet static
address 192.168.1.125
netmask 255.255.255.0
为什么我无法打开50070
?
当我做netstat -ar
n:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
此输出显示我的节点确实已启动。不是吗?
sudo /usr/local/hadoop/bin/start-all.sh
[sudo] password for hadoop:
starting namenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-namenode-namenode.out
192.168.1.124: starting datanode, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-datanode-namenode.out
192.168.1.125: starting datanode, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-datanode-slave1.out
namenode: starting secondarynamenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-secondarynamenode-namenode.out
starting jobtracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-jobtracker-namenode.out
192.168.1.125: starting tasktracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-tasktracker-slave1.out
192.168.1.124: starting tasktracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-root-tasktracker-namenode.out
答案 0 :(得分:1)
您的群集看起来有些问题。您的Web控制台显示zero
个节点。确保您的Hadoop守护进程正常运行。你能够正确启动它们吗?使用JPS
检查守护进程是否正常运行。