Why does ./sbin/start-master.sh give “Error: Could not find or load main class org.apache.spark.launcher.Main”?… here is a solution to the problem.
Why does ./sbin/start-master.sh give “Error: Could not find or load main class org.apache.spark.launcher.Main”?
I’m a newbie.
I install spark-1.5.2-bin-without-hadoop.tgz on a single node.
I’m done configuring.
When I want to start my master node with the following command, it shows me an error. Please help me.
Command : ./sbin/start-master.sh
starting org.apache.spark.deploy.master.Master, logging to /usr/local/spark/sbin/.. /logs/spark-jalaj-org.apache.spark.deploy.master.Master-1-CIPL367.out
failed to launch org.apache.spark.deploy.master.Master:
Error: Could not find or load main class org.apache.spark.launcher.Main
full log in /usr/local/spark/sbin/.. /logs/spark-jalaj-org.apache.spark.deploy.master.Master-1-CIPL367.out
Solution
Thank you for your comments.
I have reinstalled spark 1.5.2 and it worked for me.
The previous problem was with the spark-1.5.2.tar file.
So I downloaded the new tar file for spark 1.5.2 and reinstalled spark, and now it works.