如何在Windows虚拟环境中的Jupyter Notebook中使pyspark工作?

编程入门 行业动态 更新时间:2024-10-27 10:20:05
本文介绍了如何在Windows虚拟环境中的Jupyter Notebook中使pyspark工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我收到了可怕的异常:Java网关进程在发送其端口号之前已退出"错误,但是我已经遵循了所有可以找到的内容,但仍然无法正常工作.最糟糕的是,我发誓上周进行了此设置,但现在不知何故了.

I'm receiving the dreaded 'Exception: Java gateway process exited before sending its port number' error but I've followed everything I can find already and it's still not working. The worst thing is I swear this set up worked last week and somehow doesn't anymore.

我可以在命令行和虚拟环境之外的虚拟环境中完美运行pyspark(我正在使用Pipenv),因此这一定与Jupyter Notebook有关.有人可以在Windows上解决此问题吗?

I can run pyspark perfectly fine in the virtual env from the command line and outside of the virutal environment (I'm using Pipenv) so it must be something to do with Jupyter Notebook. Has anyone solved this problem on Windows who can help me?

推荐答案

我从这里.我的JAVA,SPARK_HOME和HADOOP_HOME环境变量已正确配置,但我添加了

I figured out a fix from here. My JAVA, SPARK_HOME, and HADOOP_HOME environment variables were configured properly but I added

PYSPARK_DRIVER_PYTHON = jupyter PYSPARK_DRIVER_PYTHON_OPTS =笔记本

PYSPARK_DRIVER_PYTHON = jupyter PYSPARK_DRIVER_PYTHON_OPTS = notebook

它现在正在工作.

更多推荐

如何在Windows虚拟环境中的Jupyter Notebook中使pyspark工作?

本文发布于:2023-11-24 12:17:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625162.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:环境   如何在   工作   Windows   Jupyter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!