您的位置:首页 > 运维架构

Hadoop Pig 安装

2013-11-25 15:32 225 查看
1 从http://pig.apache.org/ 下载安装包
2 解压
tar xvf pig-0.12.0.tar.gz

3 配置环境变量
export PIG_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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: