Re: Getting exit code of pipe()

2017-02-12 Thread Felix Cheung
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

Re: Getting exit code of pipe()

2017-02-12 Thread Xuchen Yao
> 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

Re: Getting exit code of pipe()

2017-02-11 Thread Felix Cheung
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

Getting exit code of pipe()

2017-02-10 Thread Xuchen Yao
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