gpt4 book ai didi

ubuntu - 无法在Hadoop中执行start-hdfs.sh

转载 作者:行者123 更新时间:2023-12-02 20:36:00 25 4
gpt4 key购买 nike

我是Hadoop的新手,并尝试按照这些教程在VMware中构建Hadoop独立服务器。
https://developer.yahoo.com/hadoop/tutorial/module2.html
https://howtoprogram.xyz/2016/11/26/install-hadoop-ubuntu-16-04-standalone-mode/

当我尝试运行start-dfs.sh时,它返回了'/ usr / bin / env:'bash':No such file or directory',但该文件确实存在。

enter image description here

这是我的hdfs-site.xml

enter image description here

这是我的系统变量。

enter image description here

尝试使用sudo ./start-dfs.sh,得到这个。但是我对消息感到困惑,因为/ sbin下没有文件夹

enter image description here

最佳答案

导致异常的原因是/ etc / environment中的环境设置

应该正确设置PATH和JAVA_HOME。设置无密码SSH也是至关重要的。

关于ubuntu - 无法在Hadoop中执行start-hdfs.sh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51097748/

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