[
https://issues.apache.org/jira/browse/HIVE-3341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433988#comment-13433988
]
Namit Jain commented on HIVE-3341:
----------------------------------
I tried to run some tests for hadoop 23: by following steps above::
ant clean && ant very-clean && ant package
ant test -Dhadoop.mr.rev=23 -Dtest.print.classpath=true
-Dhadoop.version=2.0.0-alpha -Dhadoop.security.version=2.0.0-alpha
I got the following error::
compile-test:
[echo] Project: ql
[javac] Compiling 59 source files to
/Users/njain/hive/hive_commit3/build/ql/test/classes
[javac]
/Users/njain/hive/hive_commit3/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java:79:
cannot find symbol
[javac] symbol : class MiniMRCluster
[javac] location: package org.apache.hadoop.mapred
[javac] import org.apache.hadoop.mapred.MiniMRCluster;
[javac] ^
[javac]
/Users/njain/hive/hive_commit3/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java:115:
cannot find symbo\
l
[javac] symbol : class MiniMRCluster
[javac] location: class org.apache.hadoop.hive.ql.QTestUtil
[javac] private MiniMRCluster mr = null;
[javac] ^
[javac]
/Users/njain/hive/hive_commit3/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java:278:
cannot find symbo\
l
[javac] symbol : class MiniMRCluster
Can you put the exact instructions of how to run a particular test for 23 ?
> Making hive tests run against different MR versions
> ---------------------------------------------------
>
> Key: HIVE-3341
> URL: https://issues.apache.org/jira/browse/HIVE-3341
> Project: Hive
> Issue Type: Bug
> Reporter: Sushanth Sowmyan
> Assignee: Sushanth Sowmyan
> Fix For: 0.10.0
>
> Attachments: HIVE-3341.patch
>
>
> After we build hive, we want to have the ability to run unit tests against
> specific hadoop versions. Currently, the classpath constructed has multiple
> hadoop jars, which makes compiling okay, but running non-deterministic.
> An example is HIVE-3156, where running against 0.23 shows issues with a
> couple of tests (which should either be shimmed out, or separated into
> directories the way it's done in the shims/ directory) - It would also be
> nice to find these issues out at test-compile time itself, rather than having
> them fail at test runtime.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira