共计 1148 个字符,预计需要花费 3 分钟才能阅读完成。
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
相关阅读:
Pig 安装与配置教程 http://www.linuxidc.com/Linux/2013-04/82785.htm
Pig 安装部署及 MapReduce 模式下测试 http://www.linuxidc.com/Linux/2013-04/82786.htm
Pig 安装及本地模式测试, 体验 http://www.linuxidc.com/Linux/2013-04/82783.htm
Pig 的安装配置与基本使用 http://www.linuxidc.com/Linux/2013-02/79928.htm
Hadoop Pig 进阶语法 http://www.linuxidc.com/Linux/2013-02/79462.htm
Hadoop 搭建教程学习笔记 http://www.linuxidc.com/Linux/2013-03/81669.htm
更多 Hadoop 相关信息见 Hadoop 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=13
正文完
星哥玩云-微信公众号