"Exception: Python in worker has different version xx than that in driver xxx
来源:互联网 发布:杭州妙聚网络并购失败 编辑:程序博客网 时间:2024/06/05 02:52
即问题原因是pyspark的python环境与driver也就是主节点的python环境版本不一致
spark-submit提交程序,如若还是这个问题
在python代码中添加
import osos.environ['PYSPARK_PYTHON']='/usr/local/bin/pythonXXX'
即可运行
也可以在/etc/spark/conf/spark-env.sh中添加如下代码,就无需在python代码中添加环境变量了
export PYSPARK_PYTHON=/usr/bin/pythonexport PYSPARK_DRIVER_PYTHON=/usr/bin/python
阅读全文
0 0
- "Exception: Python in worker has different version xx than that in driver xxx
- Exception: Python in worker has different version 2.7 than that in driver 3.5, PySpark cannot run wi
- xcode编译警告: XXX has different visibility (default) in lib.a and (hidden) in xx.o
- CFBundleVersion in the Info.plist file must contain a higher version than that of the previously uploaded version.
- CFBundleVersion in the Info.plist file must contain a higher version than that of the previously upl
- CFBundleVersion in the Info.plist file must contain a higher version than that of the previously upl
- Different types Server in Python
- Python Built-in Exception
- has unsupported major or minor version numbers, which are greater than those found in the Java Runti
- 编译错误-----Kconfig之'endmenu' in different file than 'menu'
- 编译错误-----Kconfig之'endmenu' in different file than 'menu'
- First-chance exception in xxx.exe...异常
- How do I set the driver's python version in spark?
- "typeinfo for XXX::xxx", referenced from:typeinfo for xxx::xxx > in xx.o
- Simplified Exception Identification in Python
- warning C4742: '...'has different alignment in '...' :4 and 1
- Llinux 如何解决XXX defined in DSO /libXXX.so.XX
- Duplicate property mapping of xxx found in xx 解决办法
- 2017西安交大ACM小学期数论 [完全平方数]
- [leetcode]5. Longest Palindromic Substring(Java)
- tp3.2中背景图加文字线上不好使解决方案(上传文字库)
- CallKit iOS 教程
- 包装类注意的地方
- "Exception: Python in worker has different version xx than that in driver xxx
- MySQLdb ImportError: libmysqlclient.so.18解决方法
- ie 浏览器下选择文件夹
- arcgis 泰森多边形
- 二进制流做缩略图
- unity用vectrosity插件画一条3D的线
- spring mvc事务注解
- spring MVC配置详解
- Java 将文件转换写入byte[]