环境:hadoop2.6, zookeeper3.4.5,jdk1.7
4台服务器:
yun01-nn-01 192.168.56.11
yun01-nn-02 192.168.56.12
yun01-dn-01 192.168.56.13
yun01-dn-02 192.168.56.14
zookeeper安装在yun01-nn-02,yun01-dn-01,yun01-dn-02 上,
在yun01-nn-01上运行start-dfs.sh后,用jps查看,只有1个进程namenode,查看启动状态:
[hadoop@yun01-nn-01 conf]$/application/hadoop/hadoop/bin/hdfs haadmin -getServiceState nn1 standby ssh到yun01-nn-02上查看: [hadoop@yun01-nn-02 ~]$ /application/hadoop/hadoop/bin/hdfs haadmin -getServiceState nn2 standby
什么原因?
|