Last active
February 11, 2025 16:50
-
-
Save jtzero/a0114a640524bceeee4a2c3e554a259f to your computer and use it in GitHub Desktop.
Revisions
-
jtzero revised this gist
May 28, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,4 +18,4 @@ workaround: set SPARK_HOME `SPARK_HOME=/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/lib/python3.7/site-packages/pyspark PYSPARK_DRIVER_PYTHON=jupyter PYSPARK_DRIVER_PYTHON_OPTS='notebook' pyspark` finding spark home: `"$(pip show pyspark | grep 'Location: ' | sed 's/Location: //g')/pyspark"` -
jtzero revised this gist
May 27, 2020 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,4 +16,6 @@ REASON: https://github.com/apache/spark/pull/28256 workaround: set SPARK_HOME `SPARK_HOME=/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/lib/python3.7/site-packages/pyspark PYSPARK_DRIVER_PYTHON=jupyter PYSPARK_DRIVER_PYTHON_OPTS='notebook' pyspark` finding spark home: `pip show pyspark | grep 'Location: ' | sed 's/Location: //g'` -
jtzero revised this gist
May 27, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Exception: Jupyter command `jupyter-/home/jtzero/.local/share/virtualenvs/ml-PBk /home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/bin/pyspark: line 77: /bin/spark-submit: No such file or directory ``` REASON: https://github.com/apache/spark/pull/28256 workaround: set SPARK_HOME -
jtzero revised this gist
May 27, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Exception: Jupyter command `jupyter-/home/jtzero/.local/share/virtualenvs/ml-PBk /home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/bin/pyspark: line 77: /bin/spark-submit: No such file or directory ``` REASON: (https://github.com/apache/spark/pull/28256)[https://github.com/apache/spark/pull/28256] workaround: set SPARK_HOME -
jtzero revised this gist
May 27, 2020 . No changes.There are no files selected for viewing
-
jtzero renamed this gist
May 27, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jtzero created this gist
May 27, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ ``` (email_ml) jtzero:~/Documents/ml$ PYSPARK_DRIVER_PYTHON=jupyter PYSPARK_DRIVER_PYTHON_OPTS='notebook' pyspark Traceback (most recent call last): File "/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/bin/jupyter", line 8, in <module> sys.exit(main()) File "/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/lib/python3.7/site-packages/jupyter_core/command.py", line 247, in main command = _jupyter_abspath(subcommand) File "/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/lib/python3.7/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath 'Jupyter command `{}` not found.'.format(jupyter_subcommand) Exception: Jupyter command `jupyter-/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/bin/find_spark_home.py` not found. /home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/bin/pyspark: line 24: /bin/load-spark-env.sh: No such file or directory /home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/bin/pyspark: line 77: /bin/spark-submit: No such file or directory ``` https://github.com/apache/spark/pull/28256 workaround: set SPARK_HOME `SPARK_HOME=/home/jtzero/.local/share/virtualenvs/ml-PBkX3P8r/lib/python3.7/site-packages/pyspark PYSPARK_DRIVER_PYTHON=jupyter PYSPARK_DRIVER_PYTHON_OPTS='notebook' pyspark`