hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12352) Add hbase-annotation-tests to runtime classpath so can run hbase it tests.
Date Tue, 28 Oct 2014 00:51:34 GMT

    [ https://issues.apache.org/jira/browse/HBASE-12352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14186147#comment-14186147
] 

Hudson commented on HBASE-12352:
--------------------------------

FAILURE: Integrated in HBase-1.0 #370 (See [https://builds.apache.org/job/HBase-1.0/370/])
HBASE-12352 Add hbase-annotation-tests to runtime classpath so can run hbase it tests; ADDENDUM
(stack: rev 1d2c4bca562a258c1288c1efdbe007b4a161903e)
* pom.xml
* hbase-assembly/src/main/assembly/components.xml


> 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
>             Fix For: 2.0.0, 0.99.2
>
>         Attachments: 12352.addendum.txt
>
>
> 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)

Mime
View raw message