sunchao opened a new pull request #2411: URL: https://github.com/apache/hadoop/pull/2411
In [HADOOP-15832](https://issues.apache.org/jira/browse/HADOOP-15832) we excluded org.bouncycastle from the shaded client jars but still relocate them to `org.apache.hadoop.shaded`. This caused downstream applications no longer able to use `MiniYARNCluster` from `hadoop-client-minicluster` since there is no way to bring their own org.bouncycastle test dependency. ``` Error: Caused by: sbt.ForkMain$ForkError: java.lang.ClassNotFoundException: org.apache.hadoop.shaded.org.bouncycastle.operator.OperatorCreationException Error: at java.net.URLClassLoader.findClass(URLClassLoader.java:382) Error: at java.lang.ClassLoader.loadClass(ClassLoader.java:419) Error: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) Error: at java.lang.ClassLoader.loadClass(ClassLoader.java:352) Error: at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:862) Error: at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) Error: at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:1296) Error: at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:339) Error: at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) Error: at org.apache.hadoop.yarn.server.MiniYARNCluster.initResourceManager(MiniYARNCluster.java:353) Error: at org.apache.hadoop.yarn.server.MiniYARNCluster.access$200(MiniYARNCluster.java:127) Error: at org.apache.hadoop.yarn.server.MiniYARNCluster$ResourceManagerWrapper.serviceInit(MiniYARNCluster.java:488) Error: at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) Error: at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:109) Error: at org.apache.hadoop.yarn.server.MiniYARNCluster.serviceInit(MiniYARNCluster.java:321) Error: at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) Error: at org.apache.spark.deploy.yarn.BaseYarnClusterSuite.beforeAll(BaseYarnClusterSuite.scala:94) Error: at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:212) Error: at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210) Error: at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208) Error: at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:61) Error: at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318) Error: at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513) Error: at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413) Error: at java.util.concurrent.FutureTask.run(FutureTask.java:266) Error: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) Error: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) Error: at java.lang.Thread.run(Thread.java:748) ``` This fixes the issue by excluding org.bouncycastle from relocation. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org