经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 大数据/云/AI » Hadoop » 查看文章
【Hadoop】:配置出错error出现:Stop it first
来源:cnblogs  作者:Geeksongs  时间:2020/12/14 20:47:40  对本文有异议

出现的错误如下:

hadoop@mike-VirtualBox:/usr/local/hadoop/hadoop$ ./sbin/start-dfs.sh
20/12/14 20:15:06 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: namenode running as process 8844. Stop it first.
localhost: datanode running as process 9057. Stop it first.
Starting secondary namenodes [0.0.0.0]
0.0.0.0: secondarynamenode running as process 9312. Stop it first.
20/12/14 20:15:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

解决方法是首先停止启动所有的节点,使用命令行启动stop-all.sh脚本:

./sbin/stop-all.sh

然后再次重新启动start-dfs.sh脚本,如下所示:

hadoop@mike-VirtualBox:/usr/local/hadoop/hadoop$ ./sbin/start-dfs.sh
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/local/hadoop/hadoop/logs/hadoop-hadoop-namenode-mike-VirtualBox.out
localhost: starting datanode, logging to /usr/local/hadoop/hadoop/logs/hadoop-hadoop-datanode-mike-VirtualBox.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/hadoop/logs/hadoop-hadoop-secondarynamenode-mike-VirtualBox.out

这样就成功启动了!

觉得有用的哥们儿麻烦在下面点赞,关注一下呗!

原文链接:http://www.cnblogs.com/geeksongs/p/14135079.html

 友情链接:直通硅谷  直通硅谷 怎么样 mac软件下载