Hadoop Pig 安装

Hadoop Pig 安装

1 从http://pig.apache.org/ 下载安装包

2 解压
tar xvf pig-0.12.0.tar.gz
 
3 配置环境变量
exportPIG_CLASSPATH=$HADOOP_INSTALL/conf/
export PATH=$PATH:/home/nathan/hadoop/pig-0.12.0/bin
 
4 Pig 分为2中运行模式
本地运行:
nathan@Ubuntu:~$pig -x local
2013-11-25 15:10:22,779 [main] INFO org.apache.pig.Main - Apache Pig version 0.12.0 (r1529718) compiled Oct 07 2013, 12:20:14
2013-11-25 15:10:22,780 [main] INFO org.apache.pig.Main - Logging error messages to: /home/nathan/pig_1385363422777.log
2013-11-25 15:10:22,803 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /home/nathan/.pigbootup not found
2013-11-25 15:10:23,028 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:///
grunt>
 
集群运行:
nathan@ubuntu:~$ pig

 

相关阅读:

相关推荐