[ https://issues.apache.org/jira/browse/PIG-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059605#comment-14059605 ]
Jonathan Eagles commented on PIG-3892: -------------------------------------- [~daijy], after this checkin for bin/pig script, now HADOOP_VERSION is always 1 since HADOOP_CORE_JAR is never zero length string. Perhaps a file exists check is in order. What do you think? {code} 296 HADOOP_CORE_JAR=`echo ${HADOOP_HOME}/hadoop-core*.jar` 297 298 if [ -z "$HADOOP_CORE_JAR" ]; then 299 HADOOP_VERSION=2 300 else 301 HADOOP_VERSION=1 302 fi {code} > Pig distribution for hadoop 2 > ----------------------------- > > Key: PIG-3892 > URL: https://issues.apache.org/jira/browse/PIG-3892 > Project: Pig > Issue Type: Bug > Components: build > Reporter: Daniel Dai > Assignee: Daniel Dai > Fix For: 0.13.0, 0.14.0 > > Attachments: PIG-3892-1.patch, PIG-3892-2.patch, PIG-3892-3.patch, > PIG-3892-4.patch > > > Currently Pig distribution only bundle pig.jar for Hadoop 1. For Hadoop 2 > users they need to compile again using -Dhadoopversion=23 flag. That is a > quite confusing process. We need to make Pig work with Hadoop 2 out of box. I > am thinking two approaches: > 1. Bundle both pig-h1.jar and pig-h2.jar in distribution, and bin/pig will > chose the right pig.jar to run > 2. Make two Pig distributions for Hadoop 1 and Hadoop > Any opinion? -- This message was sent by Atlassian JIRA (v6.2#6252)