windows7 + pycharm 搭建spark的python开发环境,Java gateway process exited before sending the driver its port
来源:互联网 发布:物流软件app是什么意思 编辑:程序博客网 时间:2024/06/06 04:53
spark版本spark-2.1.1-bin-hadoop2.7
jdk1.8
python 3.6
参考:http://www.jianshu.com/p/5701591bfc70
测试代码:
from pyspark import SparkContext, SparkConflogFile = 'C:\\Python\\Python36\\Lib\\site-packages\\README.txt'conf = SparkConf().setMaster("local[*]").setAppName("Fisrt")sc = SparkContext(conf=conf)logData = sc.textFile(logFile).cache()numAs = logData.filter(lambda s: 'a' in s).count()numBs = logData.filter(lambda s: 'b' in s).count()print('Lines with a :%i, lines with b: %i' % (numAs, numBs))
报错:Java gateway process exited before sending the driver its port number
jdk安装到了C:\Program Files\Java下重新卸载jdk,安装到C:\Java下。
猜测:jdk路径中有空格、特殊符号都会有问题。
阅读全文
0 1
- windows7 + pycharm 搭建spark的python开发环境,Java gateway process exited before sending the driver its port
- Spark错误 Exception: Java gateway process exited before sending the driver its port number
- Exception: Java gateway process exited before sending the driver its port number
- Windows7+Pycharm搭建Spark的开发环境
- pycharm搭建python开发环境
- 使用PyCharm配置Spark的Python开发环境(基础)
- win10 64位系统下,搭建spark环境,并配置python+pycharm开发环境
- Ubuntu16.04下python+PyCharm开发环境的搭建
- java,python的spark环境搭建
- python+Django+pycharm 开发环境搭建
- Python & PyCharm & Django 搭建web开发环境
- Python & PyCharm & Django 搭建web开发环境
- Python & PyCharm & Django 搭建web开发环境
- Python & PyCharm & Django 搭建web开发环境
- spark本地java开发环境的搭建
- java开发spark应用程序的环境搭建
- python环境搭建(pycharm)
- Java开发环境搭建(Windows7)
- Springmvc笔记
- jquery:为动态加载的元素添加点击事件
- go unsafe package 的学习
- 使用mysql-proxy实现mysql的读写分离
- D
- windows7 + pycharm 搭建spark的python开发环境,Java gateway process exited before sending the driver its port
- 踩坑--异常
- API & HTTP 请求调试插件 Postman
- jsp基础知识
- laravel框架总结 -- 数据库操作
- 解决popwindow在点击退出后背景透明度不能还原的问题
- java开发工具 eclipse 安装及环境搭建
- VS2013 OpenGL超级宝典中OpenGL的配置方法
- Dockerfile详解