阿帕奇星火:如何使用pyspark与Python 3 [英] Apache Spark: How to use pyspark with Python 3
本文介绍了阿帕奇星火:如何使用pyspark与Python 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我建立星火1.4从GH发展的主人,构建经过精细了。但是,当我做了斌/ pyspark
我下载的是Python 2.7.9版本。我怎样才能改变呢?
I built Spark 1.4 from the GH development master, and the build went through fine. But when I do a bin/pyspark
I get the Python 2.7.9 version. How can I change this?
推荐答案
只需设置环境变量:
出口PYSPARK_PYTHON = python3
柜面你想这种变化是永久性的加入这一行pyspark脚本
incase you want this change to be permanent add this line to pyspark script
这篇关于阿帕奇星火:如何使用pyspark与Python 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文