hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <>
Subject [jira] [Commented] (HIVE-3341) Making hive tests run against different MR versions
Date Tue, 14 Aug 2012 08:15:38 GMT


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 -Dtest.print.classpath=true -Dhadoop.version=2.0.0-alpha

I got the following error::

     [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/
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/
cannot find symbo\
    [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/
cannot find symbo\
    [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:
>             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:!default.jspa
For more information on JIRA, see:


View raw message