改变ApacheLivy';s的Python版本

改变ApacheLivy';s的Python版本,python,apache-spark,hue,Python,Apache Spark,Hue,我已经安装了ApacheLivy。向Livy提交代码时出现此错误。如何在ApacheLivy中更改默认Python版本 Exception: Python in worker has different version 3.5 than that in driver 2.6, PySpark cannot run with different minor versions import sys print(sys.version) {'id':2,'state':'available','o

我已经安装了ApacheLivy。向Livy提交代码时出现此错误。如何在ApacheLivy中更改默认Python版本

Exception: Python in worker has different version 3.5 than that in driver 2.6, PySpark cannot run with different minor versions

import sys
print(sys.version)
{'id':2,'state':'available','output':{'data':{'text/plain': '2.6.6(r266:842921915年7月23日15:22:56)\n[GCC 4.4.7 20120313(红色 Hat 4.4.7-11)]},“状态”:“确定”,“执行计数”:2}


谢谢

我已经更改了PYSPARK_PYTHON和PYSPARK_驱动程序,仍然没有帮助。我已经更改了PYSPARK_PYTHON和PYSPARK_驱动程序,仍然没有帮助。