资源简介

当flink on yarn模式运行时,发生如下异常信息,需要将压缩包中的4个依赖jar包放入flink安装路径下的lib目录下。 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: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:150) at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:56) ... Caused by: java.lang.ClassNotFoundException: com.sun.jersey.api.client.config.ClientConfig

资源截图

代码片段和文件信息

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-18 00:32  lib\
     文件      115534  2018-11-18 00:32  lib\javax.ws.rs-api-2.0.1.jar
     文件     1140395  2018-11-18 00:32  lib\jersey-common-2.27.jar
     文件      458739  2018-11-18 00:32  lib\jersey-core-1.9.jar
     文件       79221  2019-01-22 20:37  lib\flink-hadoop-compatibility_2.11-1.7.1.jar

评论

共有 条评论