You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "weiliang hao (Jira)" <ji...@apache.org> on 2022/11/16 11:38:00 UTC
[jira] [Commented] (SPARK-41160) An error is reported when submitting a task to the yarn that enabled the timeline service
[ https://issues.apache.org/jira/browse/SPARK-41160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634788#comment-17634788 ]
weiliang hao commented on SPARK-41160:
--------------------------------------
I will try to fix it. Depends on jersey-client:1.19 when initializing TimelineClient
> An error is reported when submitting a task to the yarn that enabled the timeline service
> -----------------------------------------------------------------------------------------
>
> Key: SPARK-41160
> URL: https://issues.apache.org/jira/browse/SPARK-41160
> Project: Spark
> Issue Type: Bug
> Components: YARN
> Affects Versions: 3.0.0
> Reporter: weiliang hao
> Priority: Major
>
> java8、hadoop2、spark3.3.1
> {code:java}
> $SPARK_HOME/bin/spark-submit \
> --class org.apache.spark.examples.SparkPi \
> --master yarn \
> --deploy-mode cluster \
> $SPARK_HOME/examples/jars/spark-examples*.jar 10 {code}
> The following errors were reported when submitting tasks to yarn with timeline service enabled:
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
> at org.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient(TimelineClient.java:55)
> at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.createTimelineClient(YarnClientImpl.java:181)
> at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceInit(YarnClientImpl.java:168)
> at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:191)
> at org.apache.spark.deploy.yarn.Client.run(Client.scala:1327)
> at org.apache.spark.deploy.yarn.YarnClusterApplication.start(Client.scala:1764)
> at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:958)
> at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
> at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
> at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
> at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1046)
> at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1055)
> at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> Caused by: java.lang.ClassNotFoundException: com.sun.jersey.api.client.config.ClientConfig
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> ... 14 more {code}
> hadoop yarn-site.xml:
> {code:java}
> ...
> <property>
> <name>yarn.timeline-service.enabled</name>
> <value>true</value>
> </property>
> ...{code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org