You are trying to run "spark-shell" as a command which is not in your environment. You might want to do "./spark-shell" or try "sudo ln -s /path/to/spark-shell /usr/bin/spark-shell" and then do "spark-shell".
Thank You, Irving Duran On Sun, Jun 17, 2018 at 6:53 AM Raymond Xie <xie3208...@gmail.com> wrote: > Hello, I am doing the practice in Ubuntu now, here is the error I am > encountering: > > > rxie@ubuntu:~/Downloads/spark/bin$ spark-shell > Error: Could not find or load main class org.apache.spark.launcher.Main > > > What am I missing? > > Thank you very much. > > Java is installed. > > *------------------------------------------------* > *Sincerely yours,* > > > *Raymond* >