1、hadoop-daemon.sh start namenode
启动失败
查看hadoop/logs 下面的日志 出现
2017-04-11 15:35:13,860 WARN org.apache.hadoop.ipc.client:Failed to connect to server:
master/127.0.1.1:9000:retries get failed due to exceeded maximum allowed retries number:10
java.net.ConnectException:Connection refused
解决:
1.关闭所有的节点:
stop-all.sh
2.namenode格式化
hadoop namenode -format
2、修改hostname 和 ip映射,需要管理员权限
sudo vim /etc/hostname
sudo vim /etc/hosts