pig-user  

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

Sean Timm
Fri, 13 Nov 2009 13:32:55 -0800

I tried that and it didn't seem to work. I'll give it another shot. Thanks.

-Sean

Thejas Nair wrote:
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