简体   繁体   English

Hadoop:start-dfs / start-yarn.sh:没有此类文件或目录

[英]Hadoop: start-dfs/start-yarn.sh: No such file or directory

It is giving me the two above errors despite me checking that both files exist in the directory and that hadoop has access to the folders. 尽管我检查了目录中是否存在两个文件并且hadoop可以访问文件夹,但它还是给了我上述两个错误。

I installed hadoop using the following tutorial: link 我使用以下教程安装了hadoop: 链接

Whats going wrong and how can this be fixed? 怎么了,怎么解决?

You might not have exported the path of this directory. 您可能尚未导出该目录的路径。 Try giving /entirepath/start-dfs.sh . 尝试提供/entirepath/start-dfs.sh

Also in your .bash_rc file add HADOOP_HOME=/Pathtohadoopinstallationfolder. 同样,在您的.bash_rc文件中,添加HADOOP_HOME = / Pathtohadoopinstallation文件夹。 Give the command source .bash_rc to source the bash_rc file. 提供命令source .bash_rc以获取bash_rc文件的源。

I was also getting the same error, but what I did wrong was copying the wrong path in ~/.profile file : alias hstart="/usr/local/Cellar/hadoop/2.6.0/sbin/start-dfs.sh;/usr/local/Cellar/hadoop/2.6.0/sbin/start-yarn.sh" alias hstop="/usr/local/Cellar/hadoop/2.6.0/sbin/stop-yarn.sh;/usr/local/Cellar/hadoop/2.6.0/sbin/stop-dfs.sh" 我也遇到了同样的错误,但我做错的是在〜/ .profile文件中复制错误的路径: alias hstart="/usr/local/Cellar/hadoop/2.6.0/sbin/start-dfs.sh;/usr/local/Cellar/hadoop/2.6.0/sbin/start-yarn.sh" alias hstop="/usr/local/Cellar/hadoop/2.6.0/sbin/stop-yarn.sh;/usr/local/Cellar/hadoop/2.6.0/sbin/stop-dfs.sh"

In my case it was 3.0.0, so the path should be /usr/local/Cellar/hadoop/3.0.0/sbin/start-dfs.sh;/usr/local/Cellar/hadoop/3.0.0/sbin/start-yarn.sh 在我的情况下为3.0.0,因此路径应为/usr/local/Cellar/hadoop/3.0.0/sbin/start-dfs.sh;/usr/local/Cellar/hadoop/3.0.0/sbin/start-yarn.sh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM