python调用shell的方法
import os
python_file="./test.py"
cmd="/home/spark/bin/spark-submit --master yarn --deploy-mode cluster "+python_file
os.system(cmd)
import os
python_file="./test.py"
cmd="/home/spark/bin/spark-submit --master yarn --deploy-mode cluster "+python_file
os.system(cmd)