зеркало из https://github.com/Azure/aztk.git
force the runtim to use python3
This commit is contained in:
Родитель
6c8312a35a
Коммит
52f5e4355a
|
@ -60,6 +60,10 @@ def custom_app_cmd(webui_port, app_file_name):
|
|||
# kick off start-all spark command as a bg process
|
||||
'($SPARK_HOME/sbin/start-all.sh --webui-port ' + str(webui_port) + ' &)',
|
||||
|
||||
# set the runtim to python 3
|
||||
'export PYSPARK_PYTHON=/usr/bin/python3',
|
||||
'export PYSPARK_DRIVER_PYTHON=python3',
|
||||
|
||||
# execute spark-submit on the specified app
|
||||
'$SPARK_HOME/bin/spark-submit ' +
|
||||
'--master spark://${AZ_BATCH_MASTER_NODE%:*}:7077 ' +
|
||||
|
|
Загрузка…
Ссылка в новой задаче