Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28175

Exception when using userClassPathFirst

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0, 2.3.0
    • Fix Version/s: None
    • Component/s: Deploy
    • Labels:
      None

      Description

      We want to override the executor/driver spark version with our own spark version in a fat jar.

      Conf: 

      spark.driver.userClassPathFirst=true

      spark.executor.userClassPathFirst=true,

      Build: spark 2.3.0 

       

      Deploy: cluster mode with spark 2.0.0 installed

      We encounter the following error: 

      Exception in thread "main" org.apache.spark.SparkException: Unable to load YARN support
       at org.apache.spark.deploy.SparkHadoopUtil$.liftedTree1$1(SparkHadoopUtil.scala:392)
       at org.apache.spark.deploy.SparkHadoopUtil$.yarn$lzycompute(SparkHadoopUtil.scala:387)
       at org.apache.spark.deploy.SparkHadoopUtil$.yarn(SparkHadoopUtil.scala:387)
       at org.apache.spark.deploy.SparkHadoopUtil$.get(SparkHadoopUtil.scala:412)
       at org.apache.spark.deploy.yarn.Client.<init>(Client.scala:69)
       at org.apache.spark.deploy.yarn.Client$.main(Client.scala:1290)
       at org.apache.spark.deploy.yarn.Client.main(Client.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:606)
       at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:750)
       at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
       at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
       at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
       at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback not org.apache.hadoop.security.GroupMappingServiceProvider
       at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2273)
       at org.apache.hadoop.security.Groups.<init>(Groups.java:99)
       at org.apache.hadoop.security.Groups.<init>(Groups.java:95)
       at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:420)
       at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:324)
       at org.apache.hadoop.security.UserGroupInformation.setConfiguration(UserGroupInformation.java:352)
       at org.apache.spark.deploy.SparkHadoopUtil.<init>(SparkHadoopUtil.scala:51)
       at org.apache.spark.deploy.yarn.YarnSparkHadoopUtil.<init>(YarnSparkHadoopUtil.scala:49)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
       at java.lang.Class.newInstance(Class.java:374)
       at org.apache.spark.deploy.SparkHadoopUtil$.liftedTree1$1(SparkHadoopUtil.scala:389)
       ... 15 more
      Caused by: java.lang.RuntimeException: class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback not org.apache.hadoop.security.GroupMappingServiceProvider
       at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2267)
       ... 28 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              omni_knoght Shan Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: