在使用 hadoop namenode -format 格式化 NameNode 时,提示如下错误:
SHUTDOWN_MSG: Shutting down NameNode at xxx/xxx.xxx.xxx.xxx
网上提示,需要让 hostname 和 /etc/hosts 下的 主机名 与 ip 地址对应,即 xxx 和 xxx.xxx.xxx.xxx 进行对应。在我本地两者是对应的,后来发现,在输出中有这么一句提示信息,如下图。
![](https://img-blog.csdnimg.cn/a7ca3a30d5e44c9d974c69a6cb04e8c0.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA56CB5YacVVAyVQ==,size_20,color_FFFFFF,t_70,g_se,x_16)
只要是提示 successfully formated 即可,虽然最后提示 SHUTDOWN_MSG 的信息,但是最终还是没有问题的。
![图片](https://img-blog.csdnimg.cn/img_convert/13a716090dca5688a2c8284d1eaf1221.png)