24.安装pig

1.系统版本信息

OS:Debian-7.9
Jdk:1.8.0_131
hadoop:2.8.1
zookeeper:3.4.9
hbase:1.3.1

主机信息

192.168.74.128  master
192.168.74.132  slave-2
192.168.74.133  slave-3
192.168.74.134  slave-4

2.只在主机master上安装Pig

A:下载pig-0.16.0.tar.gz,wget https://mirrors.tuna.tsinghua.edu.cn/apache/pig/pig-0.16.0/pig-0.16.0.tar.gz

镜像地址:https://mirrors.tuna.tsinghua.edu.cn/apache/pig/

B:解压移动到指定文件夹

tar zxvf pig-0.16.0.tar.gz 
mv pig-0.16.0 /home/hadoop/opt/

C:配置环境变量

sudo vim /etc/profile
export PIG_INSTALL=/home/hadoop/opt/pig-0.16.0
export PIG_CLASSPATH=${HADOOP_HOME}/etc/hadoop
export HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export PATH=$PATH:$PIG_INSTALL/bin

#立即生效
source /etc/profile

D:启动pig

/home/hadoop/opt/pig-0.16.0/bin

#启动 pig

#退出
quit

 

posted @ 2017-08-29 19:01  桃源仙居  阅读(76)  评论(0编辑  收藏  举报