在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

相关文章
相关标签/搜索