java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig

Stack Overflow | IWonderHow | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    unable to bring up spark 2.1.0 manually on HDP 2.5.3

    Stack Overflow | 1 month ago | IWonderHow
    java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
  2. 0

    {noformat} michal@mr-0xd1:~/tmp/sparkling-water-2.1.0$ bin/sparkling-shell --master yarn-client --conf hadoop.yarn.timeline-service.enabled=false ----- Spark master (MASTER) : yarn-client Spark home (SPARK_HOME) : /home/michal/tmp/spark-2.1.0-bin-hadoop2.6 H2O build version : 3.10.3.2 (tverberg) Spark build version : 2.1.0 Scala version : 2.11 ---- Warning: Ignoring non-spark config property: hadoop.yarn.timeline-service.enabled=false Warning: Master yarn-client is deprecated since 2.0. Please use master "yarn" with specified deploy mode instead. Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel). 17/03/07 18:03:43 WARN spark.SparkContext: Support for Java 7 is deprecated as of Spark 2.0.0 17/03/07 18:03:43 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 17/03/07 18:03:45 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded. java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig at org.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient(TimelineClient.java:45) at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceInit(YarnClientImpl.java:163) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:151) at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:56) at org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:156) at org.apache.spark.SparkContext.<init>(SparkContext.scala:509) at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2313) at org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:868) at org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:860) at scala.Option.getOrElse(Option.scala:121) at org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:860) at org.apache.spark.repl.Main$.createSparkSession(Main.scala:95) ... 47 elided Caused by: java.lang.ClassNotFoundException: com.sun.jersey.api.client.config.ClientConfig {noformat}

    JIRA | 2 weeks ago | Michal Malohlava
    java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
  3. 0
    samebug tip
    Change the queue name to hadoop
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    spark-shell error : No FileSystem for scheme: wasb - Hortonworks

    hortonworks.com | 7 months ago
    org.apache.hadoop.service.ServiceStateException: java.io.IOException: No FileSystem for scheme: wasb
  6. 0

    Spark on Yarn client run with errors

    Stack Overflow | 4 months ago | cherah30
    org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master. at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.waitForApplicatio (YarnClientSchedulerBackend.scala:85)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      com/sun/jersey/api/client/config/ClientConfig

      at org.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient()
    2. hadoop-yarn-client
      YarnClientImpl.serviceInit
      1. org.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient(TimelineClient.java:55)
      2. org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.createTimelineClient(YarnClientImpl.java:181)
      3. org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceInit(YarnClientImpl.java:168)
      3 frames
    3. Hadoop
      AbstractService.init
      1. org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      1 frame
    4. Spark Project YARN Stable API
      Client.submitApplication
      1. org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:151)
      1 frame
    5. Spark
      SparkContext$.getOrCreate
      1. org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:56)
      2. org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:156)
      3. org.apache.spark.SparkContext.<init>(SparkContext.scala:509)
      4. org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2313)
      4 frames
    6. Spark Project SQL
      SparkSession$Builder$$anonfun$6.apply
      1. org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:868)
      2. org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:860)
      2 frames
    7. Scala
      Option.getOrElse
      1. scala.Option.getOrElse(Option.scala:121)
      1 frame
    8. Spark Project SQL
      SparkSession$Builder.getOrCreate
      1. org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:860)
      1 frame
    9. Spark REPL
      Main$.createSparkSession
      1. org.apache.spark.repl.Main$.createSparkSession(Main.scala:95)
      1 frame