hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Veksler <ma...@vekslers.org>
Subject Running JUnit with eclipse on a fresh checkout of hive trunk fails with NPE
Date Sun, 29 Aug 2010 09:08:34 GMT
Hi,

Trying to checkout some hive code here.
Ubuntu 64bit, Java 1.6 64bit, Eclipse 3.6.

For the following chain of events:
maxim@maxim-desktop:~/workspace$ svn co
http://svn.apache.org/repos/asf/hadoop/hive/trunk hadoop-hive-trunk
maxim@maxim-desktop:~/workspace$ cd hadoop-hive-trunk
maxim@maxim-desktop:~/workspace/hadoop-hive-trunk$ ant tar
maxim@maxim-desktop:~/workspace/hadoop-hive-trunk$ ant eclipse-files

>> Import new project in eclipse
>> Right click on hadoop-hive-trunk > Run As > JUnit Test

I get the following error:
java.lang.NullPointerException
 at
org.apache.hadoop.hive.ql.exec.TestExecDriver.<clinit>(TestExecDriver.java:102)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at junit.framework.TestSuite.createTest(TestSuite.java:131)
 at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.<init>(TestSuite.java:75)
 at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at junit.framework.TestSuite.createTest(TestSuite.java:131)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
 at junit.framework.TestSuite.<init>(TestSuite.java:75)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
 at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: Encountered throwable
 at
org.apache.hadoop.hive.ql.exec.TestExecDriver.<clinit>(TestExecDriver.java:127)
... 13 more


What am I doing wrong? I would like to be able to run the hive unit test to
play a bit with the code.

Thank you,
Maxim.

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