You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/04/05 01:40:56 UTC

[jira] [Commented] (HIVE-3717) Hive won't compile with -Dhadoop.mr.rev=20S

    [ https://issues.apache.org/jira/browse/HIVE-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13623048#comment-13623048 ] 

Hudson commented on HIVE-3717:
------------------------------

Integrated in Hive-trunk-hadoop2 #138 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/138/])
    HIVE-3717 : Hive wont compile with -Dhadoop.mr.rev=20S (Gunther Hagleitner via Ashutosh Chauhan) (Revision 1455560)

     Result = FAILURE
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1455560
Files : 
* /hive/trunk/build.properties
* /hive/trunk/ql/src/test/queries/clientpositive/archive_excludeHadoop20.q
* /hive/trunk/ql/src/test/queries/clientpositive/auto_join14.q
* /hive/trunk/ql/src/test/queries/clientpositive/auto_join14_hadoop20.q
* /hive/trunk/ql/src/test/queries/clientpositive/ctas.q
* /hive/trunk/ql/src/test/queries/clientpositive/ctas_hadoop20.q
* /hive/trunk/ql/src/test/queries/clientpositive/input12.q
* /hive/trunk/ql/src/test/queries/clientpositive/input12_hadoop20.q
* /hive/trunk/ql/src/test/queries/clientpositive/join14.q
* /hive/trunk/ql/src/test/queries/clientpositive/join14_hadoop20.q
* /hive/trunk/ql/src/test/results/clientpositive/auto_join14.q.out
* /hive/trunk/ql/src/test/results/clientpositive/auto_join14_hadoop20.q.out
* /hive/trunk/ql/src/test/results/clientpositive/ctas_hadoop20.q.out
* /hive/trunk/ql/src/test/results/clientpositive/input12.q.out
* /hive/trunk/ql/src/test/results/clientpositive/input12_hadoop20.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join14.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join14_hadoop20.q.out

                
> Hive won't compile with -Dhadoop.mr.rev=20S
> -------------------------------------------
>
>                 Key: HIVE-3717
>                 URL: https://issues.apache.org/jira/browse/HIVE-3717
>             Project: Hive
>          Issue Type: Bug
>          Components: Build Infrastructure, Shims
>    Affects Versions: 0.10.0
>            Reporter: Gunther Hagleitner
>            Assignee: Gunther Hagleitner
>             Fix For: 0.11.0
>
>         Attachments: HIVE-3717.1-1410543.txt, HIVE-3717.2.patch, HIVE-3717.3.patch, HIVE-3717.4.patch, HIVE-3717.5.patch
>
>
> ant -Dhadoop.mr.rev=20S clean package
> fails with: 
> {noformat}
> compile:
>      [echo] Project: ql
>     [javac] Compiling 744 source files to /root/hive/build/ql/classes
>     [javac] /root/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java:67: cannot find symbol
>     [javac] symbol  : variable ALLOW_UNQUOTED_CONTROL_CHARS
>     [javac] location: class org.codehaus.jackson.JsonParser.Feature
>     [javac]     JSON_FACTORY.enable(Feature.ALLOW_UNQUOTED_CONTROL_CHARS);
>     [javac]                                ^
>     [javac] /root/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java:158: cannot find symbol
>     [javac] symbol  : method writeValueAsString(java.lang.Object)
>     [javac] location: class org.codehaus.jackson.map.ObjectMapper
>     [javac]         result.set(MAPPER.writeValueAsString(extractObject));
>     [javac]                          ^
>     [javac] /root/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java:59: cannot find symbol
>     [javac] symbol  : variable ALLOW_UNQUOTED_CONTROL_CHARS
>     [javac] location: class org.codehaus.jackson.JsonParser.Feature
>     [javac]     JSON_FACTORY.enable(Feature.ALLOW_UNQUOTED_CONTROL_CHARS);
>     [javac]                                ^
>     [javac] /root/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java:189: cannot find symbol
>     [javac] symbol  : method writeValueAsString(java.lang.Object)
>     [javac] location: class org.codehaus.jackson.map.ObjectMapper
>     [javac]           retCols[i].set(MAPPER.writeValueAsString(extractObject));
>     [javac]                                ^
>     [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
> {noformat}
> According to https://issues.apache.org/jira/browse/HADOOP-7470 hadoop 1.x has been upgraded to jackson 1.8.8 but the POM file still specifies jackson 1.0.1 which doesn't work for hive (doesn't have the ALLOW_UNQUOTED_CONTROL_CHARS).
> The POM for hadoop 2.0.0-alpha (-Dhadoop.mr.rev=23) has the right dependency, hadoop 0.20.2 (-Dhadoop.mr.rev=20) doesn't depend on jackson.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira