You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "QQ853695231 (via GitHub)" <gi...@apache.org> on 2023/12/20 07:53:25 UTC

[I] run jar file occur errors [incubator-streampark]

QQ853695231 opened a new issue, #3415:
URL: https://github.com/apache/incubator-streampark/issues/3415

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### Java Version
   
   1.8
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.1.2
   
   ### Flink Version
   
   1.18
   
   ### deploy mode
   
   remote
   
   ### What happened
   
   afterI build user mvn package to build a jar,then upload the jar file from flink web ui and run the jar with program args ,everything works fine, but ,when I using streampark to deploy the jar, when start the job occur errors then the job executed faild
   ![error](https://github.com/apache/incubator-streampark/assets/22435948/4e7f53b4-cb38-442d-9a76-4b4bc28f72c2)
   
   
   
   ### Error Exception
   
   ```log
   2023-12-20 15:40:50
   org.apache.flink.runtime.JobException: Recovery is suppressed by FixedDelayRestartBackoffTimeStrategy(maxNumberRestartAttempts=3, backoffTimeMS=10000)
   	at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:176)
   	at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:107)
   	at org.apache.flink.runtime.scheduler.DefaultScheduler.recordTaskFailure(DefaultScheduler.java:285)
   	at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:276)
   	at org.apache.flink.runtime.scheduler.DefaultScheduler.onTaskFailed(DefaultScheduler.java:269)
   	at org.apache.flink.runtime.scheduler.SchedulerBase.onTaskExecutionStateUpdate(SchedulerBase.java:764)
   	at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:741)
   	at org.apache.flink.runtime.scheduler.SchedulerNG.updateTaskExecutionState(SchedulerNG.java:83)
   	at org.apache.flink.runtime.jobmaster.JobMaster.updateTaskExecutionState(JobMaster.java:488)
   	at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
   	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.lambda$handleRpcInvocation$1(PekkoRpcActor.java:309)
   	at org.apache.flink.runtime.concurrent.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:83)
   	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.handleRpcInvocation(PekkoRpcActor.java:307)
   	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.handleRpcMessage(PekkoRpcActor.java:222)
   	at org.apache.flink.runtime.rpc.pekko.FencedPekkoRpcActor.handleRpcMessage(FencedPekkoRpcActor.java:85)
   	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.handleMessage(PekkoRpcActor.java:168)
   	at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33)
   	at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29)
   	at scala.PartialFunction.applyOrElse(PartialFunction.scala:127)
   	at scala.PartialFunction.applyOrElse$(PartialFunction.scala:126)
   	at org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29)
   	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:175)
   	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:176)
   	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:176)
   	at org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547)
   	at org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545)
   	at org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229)
   	at org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590)
   	at org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557)
   	at org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280)
   	at org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241)
   	at org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253)
   	at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
   	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
   	at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
   	at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
   	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
   Caused by: org.apache.flink.streaming.runtime.tasks.StreamTaskException: Cannot load user class: ch.qos.logback.classic.Logger
   ClassLoader info: URL ClassLoader:
       file: '/tmp/tm_172.28.0.3:34324-5814de/blobStorage/job_7a601317017cefa8151ae5d39b6e0ce3/blob_p-33357b0bab638739eb4d0e3d50644f6f8452b1cd-f30da00962fab2bb6dd200f03f1f0142' (valid JAR)
   Class not resolvable through given classloader.
   	at org.apache.flink.streaming.api.graph.StreamConfig.getStreamOperatorFactory(StreamConfig.java:397)
   	at org.apache.flink.streaming.runtime.tasks.OperatorChain.<init>(OperatorChain.java:169)
   	at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.<init>(RegularOperatorChain.java:60)
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:707)
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:693)
   	at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:953)
   	at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:922)
   	at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:746)
   	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:562)
   	at java.base/java.lang.Thread.run(Unknown Source)
   Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.Logger
   	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
   	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
   	at org.apache.flink.util.FlinkUserCodeClassLoader.loadClassWithoutExceptionHandling(FlinkUserCodeClassLoader.java:67)
   	at org.apache.flink.util.ChildFirstClassLoader.loadClassWithoutExceptionHandling(ChildFirstClassLoader.java:65)
   	at org.apache.flink.util.FlinkUserCodeClassLoader.loadClass(FlinkUserCodeClassLoader.java:51)
   	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
   	at org.apache.flink.util.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.loadClass(FlinkUserCodeClassLoaders.java:192)
   	at java.base/java.lang.Class.forName0(Native Method)
   	at java.base/java.lang.Class.forName(Unknown Source)
   	at org.apache.flink.util.InstantiationUtil$ClassLoaderObjectInputStream.resolveClass(InstantiationUtil.java:78)
   	at java.base/java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readClassDesc(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readObject0(Unknown Source)
   	at java.base/java.io.ObjectInputStream.defaultReadFields(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readSerialData(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readObject0(Unknown Source)
   	at java.base/java.io.ObjectInputStream.defaultReadFields(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readSerialData(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readObject0(Unknown Source)
   	at java.base/java.io.ObjectInputStream.defaultReadFields(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readSerialData(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readObject0(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readObject(Unknown Source)
   	at java.base/java.io.ObjectInputStream.readObject(Unknown Source)
   	at org.apache.flink.util.InstantiationUtil.deserializeObject(InstantiationUtil.java:539)
   	at org.apache.flink.util.InstantiationUtil.deserializeObject(InstantiationUtil.java:527)
   	at org.apache.flink.util.InstantiationUtil.readObjectFromConfig(InstantiationUtil.java:481)
   	at org.apache.flink.streaming.api.graph.StreamConfig.getStreamOperatorFactory(StreamConfig.java:383)
   	... 9 more
   ```
   
   
   ### Screenshots
   
   ![error](https://github.com/apache/incubator-streampark/assets/22435948/b47d2f58-d20a-4e74-872a-c43395d670df)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] run jar file occur errors [incubator-streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #3415:
URL: https://github.com/apache/incubator-streampark/issues/3415#issuecomment-1867791074

   See the log information. The built jar is invalid. You can re-create the job and try the release process.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] run jar file occur errors [incubator-streampark]

Posted by "QQ853695231 (via GitHub)" <gi...@apache.org>.
QQ853695231 commented on issue #3415:
URL: https://github.com/apache/incubator-streampark/issues/3415#issuecomment-1874771254

   我在flink的lib目录下添加了一些jar包,就是日志里面提示缺少的类所在的jar包,然后重启flink,再构建就成功了


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] run jar file occur errors [incubator-streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #3415:
URL: https://github.com/apache/incubator-streampark/issues/3415#issuecomment-1876343719

   resolved


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] run jar file occur errors [incubator-streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys closed issue #3415: run jar file occur errors
URL: https://github.com/apache/incubator-streampark/issues/3415


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org