Ask Your Question

Trigger Shell Script to run python script

asked 2017-09-16 08:43:04 -0500

Vivian Y gravatar image

Trying to use streamsets pipeline to trigger to run an python scripts. I check and found that i may able to use shell scripts to trigger a python scripts. Any how, when start the pipeline, it will keep return error stating "SHELL_003 - Script return non-zero value: 127"

This usecase does not have any origin, but would like to use streamsets as a pipeline to start and stop this shell scripts.

Thank & Regards.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-09-18 10:24:47 -0500

jeff gravatar image

Did you check the log file? There should be log lines containing stderr: and stdout: that show the standard error and output streams from your process. That should give some clue as to what went wrong in the script, such that it returned an error status.

edit flag offensive delete link more

answered 2017-10-03 20:16:48 -0500

mstang gravatar image

The shell scripts need to return an exit code 0 so that streamsets knows they completed successfully. Looks like your script returned 127 instead. What you want in your code is something like sys.exit(0) if your script ran correctly.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-16 08:43:04 -0500

Seen: 431 times

Last updated: Oct 03 '17