Try doing a very-clean. I think you just have an old version of DN in your ivy cache and based on my experience with ivy it's cannot handle that.
On Wed, Jul 31, 2013 at 9:37 AM, <nikolaus.st...@researchgate.net> wrote: > Hi, > > When running the following command: > > ant test -Dtestcase=TestCliDriver -Dqfile=show_functions.q -Doverwrite=true > > on a clean hive-trunk checkout, I get the following failed test: > > test: > [echo] Project: ql > [junit] WARNING: multiple versions of ant detected in path for junit > [junit] jar:file:/usr/share/ant/lib/** > ant.jar!/org/apache/tools/ant/**Project.class > [junit] and jar:file:/Users/niko/Repos/** > hive-trunk/build/ivy/lib/**hadoop0.20S.shim/ant-1.6.5.** > jar!/org/apache/tools/ant/**Project.class > [junit] Hive history file=/Users/niko/Repos/hive-** > trunk/build/ql/tmp/hive_job_**log_604cbdc7-f546-4a74-bba2-** > 43f7c2885811_1343059998.txt > [junit] 2013-07-31 07:19:49.366 java[15847:1203] Unable to load realm > info from SCDynamicStore > [junit] Exception: java.lang.RuntimeException: Unable to instantiate > org.apache.hadoop.hive.**metastore.HiveMetaStoreClient > [junit] Running org.apache.hadoop.hive.cli.**TestCliDriver > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > [junit] org.apache.hadoop.hive.ql.**metadata.HiveException: > java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.* > *metastore.HiveMetaStoreClient > [junit] at org.apache.hadoop.hive.ql.** > metadata.Hive.dropTable(Hive.**java:875) > [junit] at org.apache.hadoop.hive.ql.** > metadata.Hive.dropTable(Hive.**java:851) > [junit] at org.apache.hadoop.hive.ql.** > QTestUtil.cleanUp(QTestUtil.**java:513) > [junit] at org.apache.hadoop.hive.cli.**TestCliDriver.<clinit>(** > TestCliDriver.java:48) > [junit] at java.lang.Class.forName0(**Native Method) > [junit] at java.lang.Class.forName(Class.**java:171) > [junit] at org.apache.tools.ant.taskdefs.**optional.junit.** > JUnitTestRunner.run(**JUnitTestRunner.java:373) > [junit] at org.apache.tools.ant.taskdefs.**optional.junit.** > JUnitTestRunner.launch(**JUnitTestRunner.java:1052) > [junit] at org.apache.tools.ant.taskdefs.**optional.junit.** > JUnitTestRunner.main(**JUnitTestRunner.java:906) > [junit] Caused by: java.lang.RuntimeException: Unable to instantiate > org.apache.hadoop.hive.**metastore.HiveMetaStoreClient > [junit] at org.apache.hadoop.hive.**metastore.MetaStoreUtils.** > newInstance(MetaStoreUtils.**java:1212) > [junit] at org.apache.hadoop.hive.**metastore.** > RetryingMetaStoreClient.<init>**(RetryingMetaStoreClient.java:**51) > [junit] at org.apache.hadoop.hive.**metastore.** > RetryingMetaStoreClient.**getProxy(**RetryingMetaStoreClient.java:**61) > [junit] at org.apache.hadoop.hive.ql.**metadata.Hive.** > createMetaStoreClient(Hive.**java:2357) > [junit] at org.apache.hadoop.hive.ql.**metadata.Hive.getMSC(Hive.* > *java:2368) > [junit] at org.apache.hadoop.hive.ql.** > metadata.Hive.dropTable(Hive.**java:869) > [junit] ... 8 more > [junit] Caused by: java.lang.reflect.**InvocationTargetException > [junit] at > sun.reflect.**NativeConstructorAccessorImpl.**newInstance0(Native > Method) > [junit] at sun.reflect.**NativeConstructorAccessorImpl.** > newInstance(**NativeConstructorAccessorImpl.**java:39) > [junit] at sun.reflect.**DelegatingConstructorAccessorI** > mpl.newInstance(**DelegatingConstructorAccessorI**mpl.java:27) > [junit] at java.lang.reflect.Constructor.** > newInstance(Constructor.java:**513) > [junit] at org.apache.hadoop.hive.**metastore.MetaStoreUtils.** > newInstance(MetaStoreUtils.**java:1210) > [junit] ... 13 more > [junit] Caused by: javax.jdo.**JDOFatalInternalException: Unexpected > exception caught. > [junit] NestedThrowables: > [junit] java.lang.reflect.**InvocationTargetException > [junit] at javax.jdo.JDOHelper.**invokeGetPersistenceManagerFac** > toryOnImplementation(**JDOHelper.java:1193) > [junit] at javax.jdo.JDOHelper.**getPersistenceManagerFactory(** > JDOHelper.java:808) > [junit] at javax.jdo.JDOHelper.**getPersistenceManagerFactory(** > JDOHelper.java:701) > [junit] at org.apache.hadoop.hive.**metastore.ObjectStore.getPMF(* > *ObjectStore.java:266) > [junit] at org.apache.hadoop.hive.**metastore.ObjectStore.** > getPersistenceManager(**ObjectStore.java:295) > [junit] at org.apache.hadoop.hive.**metastore.ObjectStore.** > initialize(ObjectStore.java:**228) > [junit] at org.apache.hadoop.hive.**metastore.ObjectStore.setConf( > **ObjectStore.java:203) > [junit] at org.apache.hadoop.util.**ReflectionUtils.setConf(** > ReflectionUtils.java:62) > [junit] at org.apache.hadoop.util.**ReflectionUtils.newInstance(** > ReflectionUtils.java:117) > [junit] at org.apache.hadoop.hive.**metastore.RetryingRawStore.<** > init>(RetryingRawStore.java:**62) > [junit] at org.apache.hadoop.hive.**metastore.RetryingRawStore.** > getProxy(RetryingRawStore.**java:71) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStore$** > HMSHandler.newRawStore(**HiveMetaStore.java:414) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStore$** > HMSHandler.getMS(**HiveMetaStore.java:402) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStore$** > HMSHandler.createDefaultDB(**HiveMetaStore.java:440) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStore$** > HMSHandler.init(HiveMetaStore.**java:326) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStore$** > HMSHandler.<init>(**HiveMetaStore.java:286) > [junit] at org.apache.hadoop.hive.**metastore.RetryingHMSHandler.< > **init>(RetryingHMSHandler.java:**54) > [junit] at org.apache.hadoop.hive.**metastore.RetryingHMSHandler.* > *getProxy(RetryingHMSHandler.**java:59) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStore.** > newHMSHandler(HiveMetaStore.**java:4183) > [junit] at org.apache.hadoop.hive.**metastore.HiveMetaStoreClient. > **<init>(HiveMetaStoreClient.**java:121) > [junit] ... 18 more > [junit] Caused by: java.lang.reflect.**InvocationTargetException > [junit] at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native > Method) > [junit] at sun.reflect.**NativeMethodAccessorImpl.**invoke(** > NativeMethodAccessorImpl.java:**39) > [junit] at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(** > DelegatingMethodAccessorImpl.**java:25) > [junit] at java.lang.reflect.Method.**invoke(Method.java:597) > [junit] at javax.jdo.JDOHelper$16.run(**JDOHelper.java:1965) > [junit] at java.security.**AccessController.doPrivileged(**Native > Method) > [junit] at javax.jdo.JDOHelper.invoke(**JDOHelper.java:1960) > [junit] at javax.jdo.JDOHelper.**invokeGetPersistenceManagerFac** > toryOnImplementation(**JDOHelper.java:1166) > [junit] ... 37 more > [junit] Caused by: java.lang.NoSuchFieldError: NUCLEUS_CONTEXT_LOADER > [junit] at org.datanucleus.**NucleusContext.<clinit>(** > NucleusContext.java:105) > [junit] at org.datanucleus.api.jdo.** > JDOPersistenceManagerFactory.<**init>(**JDOPersistenceManagerFactory.** > java:395) > [junit] at org.datanucleus.api.jdo.**JDOPersistenceManagerFactory. > **createPersistenceManagerFactor**y(**JDOPersistenceManagerFactory.** > java:294) > [junit] at org.datanucleus.api.jdo.**JDOPersistenceManagerFactory. > **getPersistenceManagerFactory(**JDOPersistenceManagerFactory.**java:195) > [junit] ... 45 more > [junit] Test org.apache.hadoop.hive.cli.**TestCliDriver FAILED > [for] ql: The following error occurred while executing this line: > [for] /Users/niko/Repos/hive-trunk/**build.xml:355: The following > error occurred while executing this line: > [for] /Users/niko/Repos/hive-trunk/**build-common.xml:490: Tests > failed! > > Any help would be greatly appreciated. > > Thanks, > Niko > > > > -- Apache MRUnit - Unit testing MapReduce - http://mrunit.apache.org