在vm上设置2节点hadoop群集

bksxznpy  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(373)

我打不开 namenode:50070 然而, namenode:50030 很好用。

我在virtualbox上设置了一个2节点集群。主机操作系统是Windows7,我有两个客人都是ubuntu。一从一主。
主人 /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
tjvv9vkg

tjvv9vkg1#

看起来你的群集有问题。您的web控制台正在显示 zero 节点。确保hadoop守护进程运行正常。你能正常启动它们吗?使用 JPS 检查守护程序是否正常运行。

相关问题