赞
踩
启动HDFS时有报错, hadoop102上没有NameNode进程
[k@hadoop102 hadoop-3.3.6]$ sbin/start-dfs.sh
Starting namenodes on [hadoop102]
Starting datanodes
localhost: mv: 无法获取'/opt/module/hadoop-3.3.6/logs/hadoop-k-datanode-hadoop102.out' 的文件状态(stat): 没有那个文件或目录
Starting secondary namenodes [hadoop104]
[k@hadoop102 hadoop-3.3.6]$ jps
15929 Jps
11711 DataNode
[k@hadoop102 hadoop-3.3.6]$ vim etc/hadoop/workers
localhost #删除改行可解决报错提示
hadoop102
hadoop103
hadoop104
重新格式化NameNode
[k@hadoop102 hadoop-3.3.6]$ rm -rf data/ logs/
[k@hadoop102 hadoop-3.3.6]$ hdfs namenode -format
[k@hadoop102 hadoop-3.3.6]$ sbin/start-dfs.sh
Starting namenodes on [hadoop102]
Starting datanodes
hadoop103: WARNING: /opt/module/hadoop-3.3.6/logs does not exist. Creating.
hadoop104: WARNING: /opt/module/hadoop-3.3.6/logs does not exist. Creating.
Starting secondary namenodes [hadoop104]
[k@hadoop102 hadoop-3.3.6]$ jps
2914 NameNode #有了√
3094 DataNode
3388 Jps
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。