Python使用spark时出現版本不同的错误
来源:互联网 发布:惠州狼雨seo 编辑:程序博客网 时间:2024/05/16 14:19
异常描述:
Exception: Python in worker has different version 2.7 than that in driver 3.4, PySpark cannot run with different minor versions.Please check environment variables PYSPARK_PYTHON and PYSPARK_DRIVER_PYTHON are correctly set.
问题解决:
import osos.environ["PYSPARK_PYTHON"]="/usr/bin/python3"
指向想要的python版本的路径即可
阅读全文
0 0
- Python使用spark时出現版本不同的错误
- TIdUDPServer使用时版本不同的错误
- [python]如何使用virtualenvwrapper切换 不同版本的python?
- [python]如何使用virtualenvwrapper切换不同版本的python?
- 不同python版本在使用pyserial的一些使用区别
- 如何使用virtualenvwrapper切换不同版本的python
- 使用virtualenv 常见基于不同版本python的独立环境
- MSXML的不同版本使用
- gcc版本不同导致的编译错误?
- TensorFlow不同版本引起的错误
- TensorFlow不同版本引起的错误
- TensorFlow不同版本引起的错误
- TensorFlow不同版本引起的错误
- 运行python版本的Spark程序
- 几种不同版本的python
- python 不同版本之间的print
- anaconda 安装不同版本的python 模块
- Python 2.7版本与3.6的不同
- php获取指定的时间戳
- python 中 self的相关总结
- 面试题–总结知识点
- Linux进阶之 tail 命令
- [Chrome] Google Chrome 浏览器快捷键
- Python使用spark时出現版本不同的错误
- socket通讯工具类
- ORACLE的char、nchar、varchar、varchar2、nvarchar2的区别
- redis安装配置
- 流星效果
- Android开源框架GreenDao3.0使用纪要
- 断点续传下载原理实现
- (转)在Fragment中OnActivityResult方法中接收Activity中返回的值
- Unity3D工程优化(2017版)