在spark2中的shell使用python3

在spark2中的shell使用python3

spark2.0.0中的python默認使用python2,能夠經過如下兩種方式之一使用python3:
java

  • PYSPARK_PYTHON=python3 ./bin/pyspark
  • 修改~/.profile,增長 PYSPARK_PYTHON=python3

參考:http://stackoverflow.com/questions/30279783/apache-spark-how-to-use-pyspark-with-python-3
python

Author: galaxysql

Created: 2016-08-14 Sun 11:50shell

Emacs 24.5.6 (Org mode 8.2.10)apache

Validatebash

相關文章
相關標籤/搜索