You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2014/10/27 22:56:34 UTC
[jira] [Created] (HBASE-12352) Add hbase-annotation-tests to
runtime classpath so can run hbase it tests.
stack created HBASE-12352:
-----------------------------
Summary: Add hbase-annotation-tests to runtime classpath so can run hbase it tests.
Key: HBASE-12352
URL: https://issues.apache.org/jira/browse/HBASE-12352
Project: HBase
Issue Type: Bug
Components: integration tests
Affects Versions: 0.99.2
Reporter: stack
Assignee: stack
To run integration tests, need hbase-annotation-tests on the CLASSPATH else:
{code}
[stack@c2020 hbase.git]$ HADOOP_HOME=~/hadoop-2.6.0-CRC-SNAPSHOT ~/hbase/bin/hbase --config ~/conf_hbase org.apache.hadoop.hbase.IntegrationTestRunnerWithJSONOutput
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/IntegrationTests
at org.apache.hadoop.hbase.IntegrationTestsDriver$IntegrationTestFilter.<init>(IntegrationTestsDriver.java:53)
at org.apache.hadoop.hbase.IntegrationTestsDriver.<init>(IntegrationTestsDriver.java:43)
at org.apache.hadoop.hbase.IntegrationTestRunnerWithJSONOutput.<init>(IntegrationTestRunnerWithJSONOutput.java:34)
at org.apache.hadoop.hbase.IntegrationTestRunnerWithJSONOutput.main(IntegrationTestRunnerWithJSONOutput.java:140)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.IntegrationTests
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more
{code}
Its looking for IntegrationTests which is in the annotation test jar. Let me just commit this little patch. Complain if you think it not needed:
{code}
@@ -1057,7 +1057,7 @@
<artifactId>hbase-annotations</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
- <scope>test</scope>
+ <!--Was test scope only but if we want to run hbase-it tests, need the annotations test jar-->
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)