English 中文(简体)
• 如何设定申请退出地位?
原标题:How to set Spark application exit status?

I m writing a spark application and run it using spark-submit shell script (using yarn-cluster/yarn-client)

正如我现在看到的那样,根据相关的收入申请决定了退税法——如果苏克塞德公司的状况是零,否则是1。

我想选择再回一条退出法,因为我的申请有某些错误。

是否可能? 从申请中收回不同的离职守则?

我尝试使用系统,但成功......

感谢。

问题回答

这种做法在客户模式中是可能的,但不是分组方式。 你们有一个分组模式的工作。

我对此的答复:question 。 应帮助您。

If you run in cluster mode, spark-submit ends immediately returning submission ID as part of json, and do not waits for the application status. After this you can query the status by

 spark-submit --status [submission ID] 

如果以当地或独立的方式运作,那么你就应当能够从公园提交进程获得这一退出法。





相关问题
trapping shell exit code

I am working on a shell script, and want to handle various exit codes that I might come across. To try things out, I am using this script: #!/bin/sh echo "Starting" trap "echo "first one"; echo "...

Command /usr/bin/codesign failed with exit code 1

I have the following error: Command /usr/bin/codesign failed with exit code 1 Here is what I already did for trying to fix this: set the bundle identifier to com.server.pgmname set the code ...

Why would waitpid in Perl return wrong exit code?

I get wrong exit code from waitpid and I can t figure out why. Could someone give me some ideas? Here what I do: I start my child process with open2 then I wait for it to finish with waitpid get ...

How do I check the exit code of a command executed by flock?

Greetings all. I m setting up a cron job to execute a bash script, and I m worried that the next one may start before the previous one ends. A little googling reveals that a popular way to address ...

热门标签