找不到start-all.sh命令

时间:2018-03-25 12:23:01

标签: hadoop cloudera cloudera-quickstart-vm

我刚为hadoop安装了 Cloudera VM设置。但是当我打开命令提示符并想要使用命令'start-all.sh'启动hadoop的所有守护进程时,我收到一条错误,指出“bash:start-all.sh:command not found”。 我也试过'start-dfs.sh'但仍然给出了同样的错误。当我使用'jps'命令时,我可以看到没有任何守护进程已经启动。

2 个答案:

答案 0 :(得分:1)

You can find start-all.sh and start-dfs.sh scripts in bin or sbin folders. You can use the following command to find that. Go to hadoop installation folder and run this command.

find . -name 'start-all.sh' # Finds files having name similar to start-all.sh

Then you can specify the path to start all the daemons using bash /path/to/start-all.sh

答案 1 :(得分:1)

如果您正在使用QuickStart VM,那么启动群集的正确方法(如@ cricket_007所示)是通过在Cloudera Manager UI中重新启动它。 start-all.sh脚本不起作用,因为它们仅适用于Hadoop服务器(名称节点,数据节点,资源管理器,节点管理器...),但不适用于生态系统中的所有服务(如Hive,Impala,Spark, Oozie,Hue ......)。

您可以参考YouTube video和官方文档Starting, Stopping, Refreshing, and Restarting a Cluster

相关问题