简体   繁体   中英

How can I run my dse spark app with python on a server while closing my terminal?

this is my submit command and I don't know how to run it in the background with my terminal window closed:

dse spark-submit --master spark://master:7077 --executor-memory 2G --total-executor-cores 2 --packages org.apache.spark:spark-streaming-kafka_2.10:1.4.1 --jars /spark-streaming-kafka_2.10-1.4.1.jar /sparktest.py

You have several options, the first is to use a terminal session manager like https://tmux.github.io/ or https://www.gnu.org/software/screen/ which will keep the terminal alive when you disconnect

Another is to use http://linux.die.net/man/1/nohup before your command

尝试在命令末尾添加“&”:

spark-submit --master spark://master:7077 --executor-memory 2G --total-executor-cores 2 --packages org.apache.spark:spark-streaming-kafka_2.10:1.4.1 --jars /spark-streaming-kafka_2.10-1.4.1.jar /sparktest.py &

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM