cd /home/hduser2/
tar -xvf pig-0.13.0.tar.gz
mv pig-0.13.0 pig
Set the java home and pig install directory
hduser2@bala:~$ sudo gedit /etc/profile
export PIG_INSTALL=/home/hduser2/pig0130
export PATH=$PATH:$PIG_INSTALL/bin
export JAVA_HOME=/usr/lib/jvm/java-6-oracle
export PIG_CLASSPATH=/home/hduser2/hadoop111/conf/
hduser2@bala:~$ source /etc/profile
logout from ubuntu and login again
hduser2@bala:~$ pig
Warning: $HADOOP_HOME is deprecated.
14/08/26 07:40:47 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
14/08/26 07:40:47 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
14/08/26 07:40:47 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType
2014-08-26 07:40:47,060 [main] INFO org.apache.pig.Main - Apache Pig version 0.13.0 (r1606446) compiled Jun 29 2014, 02:29:34
2014-08-26 07:40:47,061 [main] INFO org.apache.pig.Main - Logging error messages to: /home/hduser2/pig_1409019047060.log
2014-08-26 07:40:47,083 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /home/hduser2/.pigbootup not found
2014-08-26 07:40:47,205 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://localhost:54310
2014-08-26 07:40:47,392 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: localhost:54311
grunt>
tar -xvf pig-0.13.0.tar.gz
mv pig-0.13.0 pig
Set the java home and pig install directory
hduser2@bala:~$ sudo gedit /etc/profile
export PATH=$PATH:$PIG_INSTALL/bin
export JAVA_HOME=/usr/lib/jvm/java-6-oracle
export PIG_CLASSPATH=/home/hduser2/hadoop111/conf/
hduser2@bala:~$ source /etc/profile
logout from ubuntu and login again
hduser2@bala:~$ pig
Warning: $HADOOP_HOME is deprecated.
14/08/26 07:40:47 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
14/08/26 07:40:47 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
14/08/26 07:40:47 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType
2014-08-26 07:40:47,060 [main] INFO org.apache.pig.Main - Apache Pig version 0.13.0 (r1606446) compiled Jun 29 2014, 02:29:34
2014-08-26 07:40:47,061 [main] INFO org.apache.pig.Main - Logging error messages to: /home/hduser2/pig_1409019047060.log
2014-08-26 07:40:47,083 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /home/hduser2/.pigbootup not found
2014-08-26 07:40:47,205 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://localhost:54310
2014-08-26 07:40:47,392 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: localhost:54311
grunt>
No comments:
Post a Comment