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>
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
相关阅读:
相关推荐
changjiang 2020-11-16
minerd 2020-10-28
WeiHHH 2020-09-23
Aleks 2020-08-19
WeiHHH 2020-08-17
飞鸿踏雪0 2020-07-26
tomli 2020-07-26
deyu 2020-07-21
strongyoung 2020-07-19
eternityzzy 2020-07-19
Elmo 2020-07-19
飞鸿踏雪0 2020-07-09
飞鸿踏雪0 2020-07-04
xieting 2020-07-04
WeiHHH 2020-06-28
genshengxiao 2020-06-26
Hhanwen 2020-06-25