我无法打开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
:
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