问题描述
我正在开发一个简单的Python Hadoop流应用程序,但需要Python3.HDInsights Hadoop集群已针对2.7.12进行了预配置.
有没有办法让它默认使用Python 3?
I am working on a simple Python Hadoop streaming app, but need Python 3. The HDInsights Hadoop cluster is preconfigured for 2.7.12.
Is there a way to make it use Python 3 by default?
在集群中也安装了Python 3.5.x,尽管我更喜欢Python 3.6或3.7.如果需要,我们的四个目的3.5.x将起作用.谢谢!
Python 3.5.x is installed in the cluster as well, though I'd prefer Python 3.6 or 3.7. Four our purposes 3.5.x would work if necessary. Thanks!
推荐答案
默认情况下,当您说Python 3时,是指默认外壳程序路径中的python吗?
When you say Python 3 by default, do you mean the python in your default shell path?
我看到Python 2是新群集上的默认设置:
I see Python 2 is default on a fresh cluster:
检查从哪个位置拨打电话:
Check what location it is getting called from:
查看其链接位置:
这篇关于HDInsight Hadoop群集中的Python 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!