1

I have just installed Cloudera VM setup for hadoop. But when I open the command prompt and want to start all daemons for hadoop using command 'start-all.sh' , I get an error stating "bash : start-all.sh: command not found". I have tried 'start-dfs.sh' too yet still gives the same error. When I use 'jps' command, I can see that none of the daemons have been started.

tk421
  • 5,775
  • 6
  • 23
  • 34
Lonewolf08
  • 31
  • 1
  • 4

2 Answers2

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

pkgajulapalli
  • 1,066
  • 3
  • 20
  • 44
1

If you're using the QuickStart VM then the right way to start the cluster (as @cricket_007 hinted) is by restarting it in the Cloudera Manager UI. The start-all.sh scripts will not work since those only apply to the Hadoop servers (Name Node, Data Node, Resource Manager, Node Manager ...) but not all the services in the ecosystem (like Hive, Impala, Spark, Oozie, Hue ...).

You can refer to the YouTube video and the official documentation Starting, Stopping, Refreshing, and Restarting a Cluster

tk421
  • 5,775
  • 6
  • 23
  • 34