lucene-dev mailing list archives

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

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

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:

{noformat}
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/server/applicationhistoryservice/ApplicationHistoryWriter
	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)
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createRMApplicationHistoryWriter(ResourceManager.java:357)
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:468)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:989)
	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:255)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.solr.hadoop.hack.MiniYARNCluster$ResourceManagerWrapper.serviceStart(MiniYARNCluster.java:200)
	at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
	at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:120)
	at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
	at org.apache.solr.hadoop.hack.MiniMRClientClusterFactory.create(MiniMRClientClusterFactory.java:83)
	at org.apache.solr.hadoop.hack.MiniMRClientClusterFactory.create(MiniMRClientClusterFactory.java:39)
	at org.apache.solr.hadoop.MorphlineGoLiveMiniMRTest.setupClass(MorphlineGoLiveMiniMRTest.java:191)
{noformat}

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: https://issues.apache.org/jira/browse/SOLR-7523
>             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/MorphlineBasicMiniMRTest.java:
> assumeTrue(
>         "Currently this test can only be run without the lucene test security policy
in place",
>         System.getProperty("java.security.manager", "").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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message