spark2.0.0中的python默认使用python2,可以通过以下两种方式之一使用python3:

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

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

Author: galaxy

Created: 2016-08-14 Sun 11:50

Emacs 24.5.6 (Org mode 8.2.10)

Validate

 

相关文章:

  • 2021-07-02
  • 2021-10-15
  • 2021-06-29
  • 2022-12-23
  • 2021-09-18
  • 2021-07-20
  • 2022-01-29
猜你喜欢
  • 2021-05-28
  • 2021-07-07
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
相关资源
相似解决方案