Integrating Apache Spark with PyCharm
2016-04-01 13:41
609 查看
参考
在
下写了一个pycharm.sh
没解决,不知道怎么回事
Create a new Python virtual environment:
Go to PyCharm -> Preferences -> Project:
On the “Project Interpreter” Line, create a new virtual environment (Click on the gear icon on the right)
Once the virtual environment is created, go to the same menu, click “More” and see a list of all project interpreters. Make sure your virtual environment is selected
Click “Show paths for the selected interpreter” button at the bottom
On the next dialog click on the “+” icon to add paths. You will need to add SPARK_HOME/python and SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip
This should set you up to run and debug.
貌似还需要把SPARK_HOME添加到PYTHONHOME下
在
/Applications/PyCharm CE.app/Contents/bin
下写了一个pycharm.sh
export PYTHONPATH=/usr/local/share/spark1626/python/:/usr/local/share/spark1626/python/lib/py4j-0.9-src.zip export SPARK_HOME=/usr/local/share/spark1626
没解决,不知道怎么回事
参考这篇评论
I have a better way:Create a new Python virtual environment:
Go to PyCharm -> Preferences -> Project:
On the “Project Interpreter” Line, create a new virtual environment (Click on the gear icon on the right)
Once the virtual environment is created, go to the same menu, click “More” and see a list of all project interpreters. Make sure your virtual environment is selected
Click “Show paths for the selected interpreter” button at the bottom
On the next dialog click on the “+” icon to add paths. You will need to add SPARK_HOME/python and SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip
This should set you up to run and debug.
貌似还需要把SPARK_HOME添加到PYTHONHOME下
相关文章推荐
- xampp集成环境配置自定义端口号虚拟主机,局域网访问apache菜鸟教程
- APMServ中Apache启动失败的原因
- Apache 2.4.x配置允许局域网访问
- 解析LAMP中Apache、php、mysql 默认安装路径
- apache+php+mysql自定义安装
- apache traffic server 编译安装
- Ubuntu+Apache+PHP+Mysql环境搭建
- [每日一学]apache camel|XSLT|SAXON
- [每日一学]apache camel|IBMWebsphere MQ header issue|MQRFH2 |MQSTR
- Apache+PHP+Mysql开发环境搭建
- Apache shiro登录成功后跳转到访问被拦截之前的路径
- Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart
- 新建maven库时,提示Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEA
- Svn+Apache服务器搭建指南
- Apache Hadoop2.6.2 小集群搭建
- Apache 403 Forbidden:You don't have permission to access / on this server.
- Apache 403 Forbidden:You don't have permission to access / on this server.
- 配置Apache支持PHP(附Apache和PHP下载链接)
- 安装xampp后apache不能启动解决方法
- Linux下Apache+mysql+PHP运行环境搭建教程