1. HADOOP集群:使用第4章的Hadoop集群
2. 下载pig-0.15.0.tar.gz,解压到/usr/local目录下。
tar –zxvf pig-0.15.0.tar.gz -C /usr/local
3. 配置环境变量:
export PIG_HOME=/usr/local/pig-0.15.0
export PATH=$PIG_HOME/bin:$PATH
整体如下:
export HADOOP_HOME=/usr/local/hadoop-2.6.4
export PATH=$HADOOP_HOME/bin/:$PATH:/usr/java/jdk1.7.0_80/bin
export PIG_HOME=/usr/local/pig-0.15.0
export PATH=$HIVE_HOME/bin:$PIG_HOME/bin:$PATH
export JAVA_HOME="/usr/java/jdk1.7.0_80"
4. 替换$HADOOP_HOME/share/hadoop/yarn/lib下的jline*.jar为/usr/local/pig-0.15.0/jline-1.0.jar
5. 执行启动命令:pig
2. 下载pig-0.15.0.tar.gz,解压到/usr/local目录下。
tar –zxvf pig-0.15.0.tar.gz -C /usr/local
3. 配置环境变量:
export PIG_HOME=/usr/local/pig-0.15.0
export PATH=$PIG_HOME/bin:$PATH
整体如下:
export HADOOP_HOME=/usr/local/hadoop-2.6.4
export PATH=$HADOOP_HOME/bin/:$PATH:/usr/java/jdk1.7.0_80/bin
export PIG_HOME=/usr/local/pig-0.15.0
export PATH=$HIVE_HOME/bin:$PIG_HOME/bin:$PATH
export JAVA_HOME="/usr/java/jdk1.7.0_80"
4. 替换$HADOOP_HOME/share/hadoop/yarn/lib下的jline*.jar为/usr/local/pig-0.15.0/jline-1.0.jar
5. 执行启动命令:pig