[ 
https://issues.apache.org/jira/browse/OOZIE-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704408#comment-16704408
 ] 

Andras Salamon commented on OOZIE-3390:
---------------------------------------

[~kmarton] I think {{ShellContentWriter}} should only print out the content of 
the script (if it's short enough) but it should not execute the script again. 
Instead you might use {{command -v}} (see: 
[https://github.com/koalaman/shellcheck/wiki/SC2230] ) to find the absolute 
path of the command.

>  shell action's stderr contains a bogus error message (since 5.0.0)
> -------------------------------------------------------------------
>
>                 Key: OOZIE-3390
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3390
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: 5.1.0
>            Reporter: Attila Sasvari
>            Assignee: Julia Kinga Marton
>            Priority: Blocker
>             Fix For: 5.1.0
>
>         Attachments: OOZIE-3390-001.patch, OOZIE-3390-002.patch
>
>
> Shell action's stderr contains an error message about path.
> I executed shell action example to test Oozie 5.1 rc1, the job finished with 
> success, but stderr of the job contained "Path echo doesn't appear to exist".
> https://github.com/apache/oozie/blob/27e4bf1688a6a7750b9c8454de5021337696fd61/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/ShellContentWriter.java#L91
> {code}
>                 writeLine(errorStream, "Path " + filename + " doesn't appear 
> to exist");
> {code}
> The problem is that we ignore the PATH of the process.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to