Subject: Re: Getting exit code of pipe()
To: Felix Cheung <felixcheun...@hotmail.com<mailto:felixcheun...@hotmail.com>>
Cc: <user@spark.apache.org<mailto:user@spark.apache.org>>
Cool that's exactly what I was looking for! Thanks!
How does one output the status into
> From: Xuchen Yao <yaoxuc...@gmail.com>
> Sent: Friday, February 10, 2017 11:18 AM
> Subject: Getting exit code of pipe()
> To: <user@spark.apache.org>
>
>
>
> Hello Community,
>
> I have the following Python code that calls an external com
u want to output the status into stdout so you could process
it individually.
_
From: Xuchen Yao <yaoxuc...@gmail.com<mailto:yaoxuc...@gmail.com>>
Sent: Friday, February 10, 2017 11:18 AM
Subject: Getting exit code of pipe()
To: <user@spark.a
Hello Community,
I have the following Python code that calls an external command:
rdd.pipe('run.sh', env=os.environ).collect()
run.sh can either exit with status 1 or 0, how could I get the exit code
from Python? Thanks!
Xuchen