Jupyter notebook 是通过 anaconda 在 Windows 10 上安装的。 我想直接从笔记本运行 pyspark。为此,我使用了以下两条说明:
set PYSPARK_DRIVER_PYTHON=jupyter
set PYSPARK_DRIVER_PYTHON_OPTS=notebook
但是当我在命令行中输入:pyspark
时,我得到的错误信息是:
'jupyter' is not recognized as an internal or external command
我找不到它的正确路径,因为当我通过 Open file location
搜索它时,它会将我带到 anaconda python 位置而不是 jupyter notebook。
有什么帮助吗?
注意:当我打开 anaconda cmd 并执行上面的命令时,我可以运行 pyspark 但在关闭 cmd 并再次打开它后,它不再运行了