当flinkonyarn模式运行时,发生如下异常信息,需要将压缩包中的4个依赖jar包放入flink安装路径下的lib目录下。
Exceptioninthread"main"java.lang.NoClassDefFoundError:com/sun/jersey/api/client/config/ClientConfigatorg.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient(TimelineClient.java:45)atorg.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceInit(YarnClientImpl.java:163)atorg.apache.hadoop.service.AbstractService.init(AbstractService.java:163)atorg.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:150)atorg.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:56)...Causedby:java.lang.ClassNotFoundException:com.sun.jersey.api.client.config.ClientConfig