You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Ifeanyichukwu Osuji <os...@potsdam.edu> on 2010/07/20 19:06:06 UTC
including hadoop/conf directory
Hi,
I dont know how to include my hadoop/conf directory to my
classpath. Can someone help? Thanks.
Ifeanyichukwu Osuji
Re: including hadoop/conf directory
Posted by Dave Viner <da...@pobox.com>.
Try this:
# export PATH=/usr/local/pig-0.7.0/bin:$PATH
# export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
# export HADOOPDIR=/usr/local/hadoop/conf
# export PIG_PATH=/usr/local/pig-0.7.0/
# export PIG_CLASSPATH=$HADOOPDIR
# export PIG_HADOOP_VERSION=0.20.2
JAVA_HOME must match what's in the /usr/local/hadoop/conf/hadoop-env.sh.
Oddly, the $PIG_CLASSPATH must point to the *directory* in which the Hadoop
config files live. It is *not* a list of jar files as one might assume.
Dave Viner
On Tue, Jul 20, 2010 at 10:06 AM, Ifeanyichukwu Osuji <osujii191@potsdam.edu
> wrote:
>
>
>
> Hi,
> I dont know how to include my hadoop/conf directory to my
> classpath. Can someone help? Thanks.
>
>
> Ifeanyichukwu Osuji
>
>