pig-user  

Re: Is it possible to use an env variable in parameters file?

Thejas Nair
Fri, 13 Nov 2009 13:05:58 -0800

You should be able to get access to the env variable using shell commands -
Eg - UDF_PATH=`echo $LIB_DIR`;

http://wiki.apache.org/pig/ParameterSubstitution

-Thejas


On 11/13/09 1:23 PM, "Sean Timm" <tim...@aol.com> wrote:

> In the param file, I'd like to be able to do something like
> UDF_PATH='$LIB_DIR';
> 
> I know I can set it on the command line, but I'd prefer to have it read
> in via the file if possible.  Is there a way to do that?
> 
> Thanks,
> Sean