hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Chadnov <pavelchad...@gmail.com>
Subject Re: Error running unit tests from eclipse (weird classpath issue)
Date Wed, 23 Jul 2014 03:44:07 GMT
How can I do it in eclipse. I do this in console and it works

On Tuesday, July 22, 2014, Nick Dimiduk <ndimiduk@gmail.com> wrote:

> Are you specifying a hadoop profile via eclipse? Ie, from maven,
> -Phadoop-2.
>
>
> On Tue, Jul 22, 2014 at 4:03 PM, Pavel Chadnov <pavelchadnov@gmail.com
> <javascript:_e(%7B%7D,'cvml','pavelchadnov@gmail.com');>> wrote:
>
>> Hey Guys,
>>
>>
>> I'm trying to run Hive unit tests on eclipse and have few failures. One of
>> the interesting one is throwing this exception as shown below when ran
>> from
>> eclipse, this one passes fine from the console.
>>
>>
>> java.lang.IncompatibleClassChangeError: Implementing class
>>
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>>
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>>
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>>
>> ...............
>>
>> ...............
>>
>> at java.lang.Class.forName(Class.java:190)
>>
>> at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:120)
>>
>> at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:115)
>>
>> at
>> org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:80)
>>
>> at
>> org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:254)
>>
>> at
>> org.apache.hadoop.hive.ql.exec.Utilities.getPlanPath(Utilities.java:652)
>>
>> at
>> org.apache.hadoop.hive.ql.exec.Utilities.setPlanPath(Utilities.java:641)
>>
>> at
>> org.apache.hadoop.hive.ql.exec.Utilities.setBaseWork(Utilities.java:584)
>>
>> at org.apache.hadoop.hive.ql.exec.Utilities.setMapWork(Utilities.java:575)
>>
>> at
>> org.apache.hadoop.hive.ql.exec.Utilities.setMapRedWork(Utilities.java:568)
>>
>> at
>>
>> org.apache.hadoop.hive.ql.io.TestSymlinkTextInputFormat.setUp(TestSymlinkTextInputFormat.java:84)
>>
>> at junit.framework.TestCase.runBare(TestCase.java:132)
>>
>>
>> I tried adding hadoop-shims project in the classpath by manually adding
>> them but no luck. Would really appreciate any help here.
>>
>>
>> Thanks,
>>
>> Pavel
>>
>
>

-- 
Regards,
Pavel Chadnov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message