Support Questions
Find answers, ask questions, and share your expertise

Oozie capture error message in Shell action

Highlighted

Oozie capture error message in Shell action

I am using Shell action to call Spark code. I have used Shell action as I was getting kerberos error in the Spark action. I am unable to capture the actual error message in oozie when the code fails. Instead, I am getting generic error message as below.

Oozie EL Function: ${wf:errorMessage(wf:lastErrorNode())}

Error Message: Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]

Is there any way to capture the underlying error message while using Shell action?

4 REPLIES 4
Highlighted

Re: Oozie capture error message in Shell action

Contributor

Shell action's stdout and stderr output are redirected to the Oozie Launcher map-reduce job task STDOUT that runs the shell command. You could redirect STDERR to STDOUT and use the capture-output element of shell action.

Highlighted

Re: Oozie capture error message in Shell action

Ok, In order to capture the STDOUT, it should be in name=value format right?

Highlighted

Re: Oozie capture error message in Shell action

Super Guru
@Ramasamy Karuppannan

Did you check launcher logs? If not then can you please check it, I believe it should give you more information about an error.

Refer this to see launcher logs.

Highlighted

Re: Oozie capture error message in Shell action

New Contributor

Hi,

I can't run an "mkdir" script via oozie.

Following the log details as mentionned in the reference. Any Help please.log.txt