Created 01-04-2016 09:28 AM
I would like to print or read pig_home from terminal.Is there any way???
Created 01-04-2016 12:12 PM
I assume you are using HDP? In that case PIG_HOME is set when executing the pig command. If you cat /usr/bin/pig you can find the line export PIG_HOME=${PIG_HOME:-/usr/hdp/2.3.2.0-2950/pig}. So you could run this manually.
Created 01-04-2016 12:12 PM
I assume you are using HDP? In that case PIG_HOME is set when executing the pig command. If you cat /usr/bin/pig you can find the line export PIG_HOME=${PIG_HOME:-/usr/hdp/2.3.2.0-2950/pig}. So you could run this manually.
Created 01-04-2016 02:15 PM
Thank you.Yeah,The script setting the environmental variable and then executing pig script in $PIG_HOME like
exec /usr/hdp/2.2.8.0-3150/pig/bin/pig.distro "$@"