How can I do it in eclipse. I do this in console and it works

On Tuesday, July 22, 2014, Nick Dimiduk <ndimi...@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 <pavelchad...@gmail.com
> <javascript:_e(%7B%7D,'cvml','pavelchad...@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

Reply via email to