oozie-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Islam <misla...@yahoo.com>
Subject Re: problems with shell action, can not find executable
Date Wed, 11 Jul 2012 07:02:56 GMT
Hi Tim,
According to the documents, it should be supported in a standard way as you mentioned.=

I think you already followed the instructions provided at
http://incubator.apache.org/oozie/docs/3.2.0-=0Aincubating/docs/DG_ShellActionExtension.html#Shell_Action
"The env-var element, if present, contains the environemnt to be passed to the Shell command.
env-var
should contain only one pair of environment variable and value. If the pair contains the variable
such as $PATH, it should follow the Unix convention such as PATH=3D$PATH:mypath"

How did you invoke the executable?
Can you pls include your related wf.xml section?


Regards,
Mohammad


________________________________
From: Tim Chan <tim@chan.net>
To: oozie-users@incubator.apache.org 
Sent: Monday, July 9, 2012 11:44 AM
Subject: Re: problems with shell action, can not find executable

Thanks Mona. I was able to get it to work this way, though it is less
than ideal.

On Mon, Jul 9, 2012 at 11:08 AM, Mona Chitnis <chitnis@yahoo-inc.com> wrote:
> Hello Tim,
>
> The executable will always be looked for in the application's localized
> current working directory(in this case -
> /hdata02/hadoop/mapred/local/taskTracker/oozie/jobcache/job_201206011141_71
> 96/attempt_201206011141_7196_m_000000_0/work)
>
> Hence you should put your executable in your workflow directory. Then use
> the <file> tag to refer to it with a symbolic name if required, as shown
> here.
>
> <file>${EXEC}#${EXEC}</file> <!--Copies the executable to compute node's
> current working directory -->
>
>
> EXEC refers to your executable's path in hdfs.
> --
> Mona Chitnis
>
>
>
>
> On 7/9/12 2:51 AM, "Tim Chan" <tim@chan.net> wrote:
>
>>I'm providing:
>>
>> <env-var>PATH=/usr/local/nz/bin</env-var>
>>
>>which is where my executable is located.
>>
>>I get an error saying:
>>
>>Cannot run program "nzsql" (in directory
>>"/hdata02/hadoop/mapred/local/taskTracker/oozie/jobcache/job_201206011141_
>>7196/attempt_201206011141_7196_m_000000_0/work"):
>>java.io.IOException: error=2, No such file or directory
>>
>>The nzsql executable is located in that path I provided.
>



-- 
  Tim Chan   //  tim@chan.net   //   213.784.2523

Mime
View raw message