How Do I Launch `Spark-Shell` from the Command Line?

How Do I Launch `Spark-Shell` from the Command Line?

I installed java scala 2.11.6 and 7 his works but when I type spark-shell it says command not found.

9

1 Answer

The following commands should work:

cd /home/m1/workspace/spark-1.6.1/bin
./spark-shell

I see that you have other copies of spark-shell here:

/home/m1/workspace/spark-2.0.0-bin-hadoop2.6/bin/spark-shell
/home/m1/Téléchargements/spark-1.6.1/bin/spark-shell
/home/m1/Téléchargements/spark-1.6.1-bin-hadoop2.6/bin/spark‌​-shell
/home/m1/Téléchargements/spark-2.0.0-bin-hadoop2.6/bin/spark‌​-shell

and these can be opened using the same pattern I have given in the first example or even entered into your $PATH for easier access...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.