lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <>
Subject [jira] [Commented] (SOLR-7523) Maven test fails in solr/contrib/map-reduce
Date Mon, 11 May 2015 16:13:00 GMT


Steve Rowe commented on SOLR-7523:

Thanks for tracking this down, Jonas!  Last I tried this, I got stuck at the NoClassDefFoundError,
didn't occur to me it was a security manager issue:

org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/server/applicationhistoryservice/ApplicationHistoryWriter
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createRMApplicationHistoryWriter(
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(
	at org.apache.hadoop.service.AbstractService.init(
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(
	at org.apache.hadoop.service.AbstractService.init(
	at org.apache.solr.hadoop.hack.MiniYARNCluster$ResourceManagerWrapper.serviceStart(
	at org.apache.hadoop.service.AbstractService.start(
	at org.apache.hadoop.service.CompositeService.serviceStart(
	at org.apache.hadoop.service.AbstractService.start(
	at org.apache.solr.hadoop.hack.MiniMRClientClusterFactory.create(
	at org.apache.solr.hadoop.hack.MiniMRClientClusterFactory.create(
	at org.apache.solr.hadoop.MorphlineGoLiveMiniMRTest.setupClass(

I applied your patch on trunk, and it allowed the map-reduce contrib's tests to succeed. 
I'll try with all Lucene/Solr tests now to make sure it doesn't cause trouble elsewhere.

> Maven test fails in solr/contrib/map-reduce
> -------------------------------------------
>                 Key: SOLR-7523
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - MapReduce
>    Affects Versions: 5.1
>            Reporter: Jonas van Vliet
>            Priority: Critical
>              Labels: maven, test
>         Attachments: SOLR-7523.patch
> Maven test fails on the following package:
> solr/contrib/map-reduce/
> (seen on solr6 trunk and solr 5.x branch)
> The underlying problem seems to be that when running maven test, the java security manager
is not set. When running ant test, the security manager is set to org.apache.lucene.util.TestSecurityManager.

> The failing test is skipped while running ant test due to an assumption in org/apache/solr/hadoop/
> assumeTrue(
>         "Currently this test can only be run without the lucene test security policy
in place",
>         System.getProperty("", "").equals(""));
> In maven, the test is not skipped and fails.
> I propose aligning the ant and maven test so they use the same security manager.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message