hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Dimiduk <ndimi...@gmail.com>
Subject Re: Error running unit tests from eclipse (weird classpath issue)
Date Wed, 23 Jul 2014 01:03:24 GMT
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>
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
>

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