gpt4 book ai didi

Hadoop关闭,如何在伪分布式模式下停止hadoop?

转载 作者:行者123 更新时间:2023-12-02 21:16:45 26 4
gpt4 key购买 nike

我尝试使用 stop-dfs.sh 杀死 hadoop 进程,但失败了。难道我必须用蛮力杀-9?

[root@trdstorm sbin]# sudo ./stop-dfs.sh
16/07/26 10:19:56 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Stopping namenodes on [localhost]
root@localhost's password:
localhost: Permission denied, please try again.
root@localhost's password:
localhost: no namenode to stop
root@localhost's password:
localhost: no datanode to stop
Stopping secondary namenodes [0.0.0.0]
root@0.0.0.0's password:
0.0.0.0: no secondarynamenode to stop --> no secondaryname to stop, from grep, it has.
16/07/26 10:20:33 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[root@trdstorm sbin]# ps -aef | grep secondary
hadoop 7406 1 0 Jul15 ? 00:09:38 /usr/java/jdk1.8.0_60/jre/bin/java -Dproc_secondarynamenode -Xmx1000m -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/usr/local/hadoop/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/local/hadoop -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,console -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/usr/local/hadoop/logs -Dhadoop.log.file=hadoop-hadoop-secondarynamenode-trdstorm.log -Dhadoop.home.dir=/usr/local/hadoop -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,RFA -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode

根 26651 26238 0 10:20 pts/2 00:00:00 grep 二级

+++++++++++++++++++++无密码ssh后+++++++++++++++++++
+++++++++++++++++++++停止hadoop进程的命令++++++++++++++++++
[hadoop@trdstorm ~]$ ssh localhost
Last login: Tue Jul 26 17:29:00 2016 from localhost
[hadoop@trdstorm ~]$ cd /usr/local/hadoop/sbin/
[hadoop@trdstorm sbin]$ sudo ./stop-all.sh
[sudo] password for hadoop:
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
16/07/26 17:32:58 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Stopping namenodes on [localhost]
root@localhost's password:
localhost: no namenode to stop
root@localhost's password:
localhost: no datanode to stop
Stopping secondary namenodes [0.0.0.0]
root@0.0.0.0's password:
0.0.0.0: no secondarynamenode to stop
16/07/26 17:33:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
stopping yarn daemons
no resourcemanager to stop
root@localhost's password:
localhost: no nodemanager to stop
no proxyserver to stop
[hadoop@trdstorm sbin]$ ps -aef | grep second
hadoop 7406 1 0 Jul15 ? 00:09:53 /usr/java/jdk1.8.0_60/jre/bin/java -Dproc_secondarynamenode -Xmx1000m -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/usr/local/hadoop/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/local/hadoop -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,console -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/usr/local/hadoop/logs -Dhadoop.log.file=hadoop-hadoop-secondarynamenode-trdstorm.log -Dhadoop.home.dir=/usr/local/hadoop -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,RFA -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode
hadoop 29825 29295 0 17:33 pts/3 00:00:00 grep second

最佳答案

停止所有服务

sudo ./stop-all.sh

关于Hadoop关闭,如何在伪分布式模式下停止hadoop?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38580161/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com