You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Adam Szita (JIRA)" <ji...@apache.org> on 2016/12/08 11:03:58 UTC
[jira] [Commented] (PIG-5074) Build broken when hadoopversion=20 in
branch 0.16
[ https://issues.apache.org/jira/browse/PIG-5074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15731856#comment-15731856 ]
Adam Szita commented on PIG-5074:
---------------------------------
Build was broken because org.apache.commons/commons-collections4 is only used in hadoop23 ivy config.
I believe the least intrusive fix is to use the Guava library for the same purpose (we already depend on Guava in all configs).
The patch ([^PIG-5074.patch]) is also cherry-pickable to trunk (although hadoop20 will be removed there) if we want to deviate less between branches.
[~daijy] can you please take a quick look?
> Build broken when hadoopversion=20 in branch 0.16
> -------------------------------------------------
>
> Key: PIG-5074
> URL: https://issues.apache.org/jira/browse/PIG-5074
> Project: Pig
> Issue Type: Bug
> Components: build
> Affects Versions: 0.16.1
> Reporter: Adam Szita
> Assignee: Adam Szita
> Fix For: 0.16.1
>
> Attachments: PIG-5074.patch
>
>
> Came across this issue:
> {code}
> ant -Dhadoopversion=20 jar pigunit-jar
> {code}
> {code}
> compile-test:
> [echo] *** Building Test Sources ***
> [echo] *** To compile with all warnings enabled, supply -Dall.warnings=1 on command line ***
> [echo] *** Else, you will only be warned about deprecations ***
> [javac] Compiling 47 source files to /Users/szita/shadow/CDH/pig/build/test/classes
> [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
> [javac] /Users/szita/shadow/CDH/pig/test/org/apache/pig/impl/builtin/TestHiveUDTF.java:20: error: package org.apache.commons.collections4 does not exist
> [javac] import org.apache.commons.collections4.IteratorUtils;
> [javac] ^
> [javac] /Users/szita/shadow/CDH/pig/test/org/apache/pig/impl/builtin/TestHiveUDTF.java:66: error: cannot find symbol
> [javac] List<Tuple> out = IteratorUtils.toList(result);
> [javac] ^
> [javac] symbol: variable IteratorUtils
> [javac] location: class TestHiveUDTF
> [javac] /Users/szita/shadow/CDH/pig/test/org/apache/pig/impl/builtin/TestHiveUDTF.java:88: error: cannot find symbol
> [javac] List<Tuple> out = IteratorUtils.toList(result);
> [javac] ^
> [javac] symbol: variable IteratorUtils
> [javac] location: class TestHiveUDTF
> [javac] /Users/szita/shadow/CDH/pig/test/org/apache/pig/impl/builtin/TestHiveUDTF.java:110: error: cannot find symbol
> [javac] List<Tuple> out = IteratorUtils.toList(result);
> [javac] ^
> [javac] symbol: variable IteratorUtils
> [javac] location: class TestHiveUDTF
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 4 errors
> [javac] 1 warning
> BUILD FAILED
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)