我想在HDP 2.2中使用Ipython和Spark,但似乎ipython僅支持從python 2.7。 我已經安裝了Spark並進行了很好的測試,但是在使用yum命令安裝ipython之後,python版本出現問題。如何使用Spark和Python更新HDP 2.2中的python 2.7
[[email protected] spark12]# ipython
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
Type "copyright", "credits" or "license" for more information.
IPython 0.13.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
IPython的單獨運行,但是當我試圖用pyspark使用它:
[[email protected] spark12]# IPYTHON=1 ./bin/pyspark
IPython requires Python 2.7+; please install python2.7 or set PYSPARK_PYTHON
我想知道如何更新蟒蛇2.6〜2.7。看來系統阻止我卸載python 2.6。我的感覺是,Python與hadoop系統集成在一起,很難單獨更新。