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-shellit says command not found.

enter image description here

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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like