文件名称:flink依赖jar包——解决NoClassDefFoundError: com/sun/jersey
文件大小:1.5MB
文件格式:ZIP
更新时间:2022-02-11 14:30:24
flink 依赖 jar包 NoClassDefFo jersey
当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
【文件预览】:
lib
----jersey-common-2.27.jar(1.09MB)
----flink-hadoop-compatibility_2.11-1.7.1.jar(77KB)
----javax.ws.rs-api-2.0.1.jar(113KB)
----jersey-core-1.9.jar(448KB)