I've written a very simple python script for testing my spark streaming idea, and plan to run it on my local machine to mess around a little bit. Here is the command line:
spark-submit spark_streaming.py localhost 9999
But the terminal threw me an error:
Error executing Jupyter command '<the/spark_streaming.py/file/path>': [Errno 2] No such file or directory
I have no idea why this would happen, and I'm sure the .py file does exist.
EDIT: there's no issue running it with python
instead of spark-submit
And also, the lines added in the .bashrc file:
export PATH="/usr/local/spark/bin:$PATH"
export PYSPARK_DRIVER_PYTHON=jupyter
export PYSPARK_DRIVER_PYTHON_OPTS='notebook'
export SPARK_LOCAL_IP=localhost