gpt4 book ai didi

hadoop - Hadoop start-all.sh错误

转载 作者:行者123 更新时间:2023-12-02 20:24:58 27 4
gpt4 key购买 nike

基本上,当我使用./start-all.sh命令启动hadoop时,我遇到了一些问题。

我看过Hadoop cluster setup - java.net.ConnectException: Connection refused

There are 0 datanode(s) running and no node(s) are excluded in this operation

当我运行./start-all.sh时,我得到

  WARNING: Attempting to start all Apache Hadoop daemons as snagaraj in 10 
seconds.
WARNING: This is not a recommended production deployment configuration.
WARNING: Use CTRL-C to abort.
Starting namenodes on [localhost]
pdsh@greg: localhost: ssh exited with exit code 1
Starting datanodes
Starting secondary namenodes [greg.bcmdc.bcm.edu]
Starting resourcemanager
Starting nodemanagers

当我运行使用Hadoop / HDFS的python脚本时出现错误
  org.apache.hadoop.ipc.RemoteException(java.io.IOException): File 
/user/data/...._COPYING_ could only be written to 0 of the
1 minReplication nodes. There are 0 datanode(s) running and 0 node(s)
are excluded in this operation.

我曾尝试使用hdfs namenode -format重新格式化namenode,但这无济于事。

我的xml文件上的配置似乎正确,并且我到JAVA_HOME的路径正确。我很高兴根据需要提供信息。

最佳答案

执行:在masternode或namenode服务器中的ssh localhost。

如果能够连接,则上述问题将得到解决。

关于hadoop - Hadoop start-all.sh错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57417885/

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