You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "link3280 (via GitHub)" <gi...@apache.org> on 2023/07/29 11:09:08 UTC

[GitHub] [kyuubi] link3280 opened a new issue, #5108: [Bug] [Flink] FileNotFoundException during Flink engine bootstrap

link3280 opened a new issue, #5108:
URL: https://github.com/apache/kyuubi/issues/5108

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Describe the bug
   
   Flink engine would run a bootstrap SQL when initializing. The SQL should be run with the origin Flink configuration, instead of the one in Flink engine default context. Otherwise, the `pipeline.jars` option are not overwritten by Flink, thus it contains the paths from the Kyuub server, not the ones on the engine, which causes FileNotFoundException.
   
   This bug would not be discovered by the tests, because in the tests both the server and the engine are on the same machine.
   
   ### Affects Version(s)
   
   1.8
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   Caused by: org.apache.flink.util.FlinkException: Could not upload job files.
   	at org.apache.flink.runtime.client.ClientUtils.uploadJobGraphFiles(ClientUtils.java:86)
   	at org.apache.flink.runtime.client.ClientUtils.extractAndUploadJobGraphFiles(ClientUtils.java:62)
   	at org.apache.flink.client.deployment.application.executors.EmbeddedExecutor.lambda$submitJob$6(EmbeddedExecutor.java:177)
   	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
   	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
   	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
   	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
   	at org.apache.flink.runtime.rpc.akka.AkkaInvocationHandler.lambda$invokeRpc$1(AkkaInvocationHandler.java:267)
   	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
   	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
   	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
   	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
   	at org.apache.flink.util.concurrent.FutureUtils.doForward(FutureUtils.java:1277)
   	at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.lambda$null$1(ClassLoadingUtils.java:93)
   	at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:68)
   	at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.lambda$guardCompletionWithContextClassLoader$2(ClassLoadingUtils.java:92)
   	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
   	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
   	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
   	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
   	at org.apache.flink.runtime.concurrent.akka.AkkaFutureUtils$1.onComplete(AkkaFutureUtils.java:47)
   	at akka.dispatch.OnComplete.internal(Future.scala:300)
   	at akka.dispatch.OnComplete.internal(Future.scala:297)
   	at akka.dispatch.japi$CallbackBridge.apply(Future.scala:224)
   	at akka.dispatch.japi$CallbackBridge.apply(Future.scala:221)
   	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
   	at org.apache.flink.runtime.concurrent.akka.AkkaFutureUtils$DirectExecutionContext.execute(AkkaFutureUtils.java:65)
   	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
   	at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:288)
   	at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:288)
   	at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:288)
   	at akka.pattern.PromiseActorRef.$bang(AskSupport.scala:622)
   	at akka.pattern.PipeToSupport$PipeableFuture$$anonfun$pipeTo$1.applyOrElse(PipeToSupport.scala:24)
   	at akka.pattern.PipeToSupport$PipeableFuture$$anonfun$pipeTo$1.applyOrElse(PipeToSupport.scala:23)
   	at scala.concurrent.Future.$anonfun$andThen$1(Future.scala:536)
   	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
   	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
   	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
   	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63)
   	at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100)
   	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
   	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
   	at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100)
   	... 6 more
   Caused by: java.io.FileNotFoundException: /home/linxiaobo/kyuubi-dev/kyuubi-1.8-SNAPSHOT/externals/engines/flink/kyuubi-flink-sql-engine_2.12-1.8.0-SNAPSHOT.jar (没有那个文件或目录)
   	at java.io.FileInputStream.open0(Native Method)
   	at java.io.FileInputStream.open(FileInputStream.java:195)
   	at java.io.FileInputStream.<init>(FileInputStream.java:138)
   	at org.apache.flink.core.fs.local.LocalDataInputStream.<init>(LocalDataInputStream.java:50)
   	at org.apache.flink.core.fs.local.LocalFileSystem.open(LocalFileSystem.java:134)
   	at org.apache.flink.runtime.blob.BlobClient.uploadFile(BlobClient.java:405)
   	at org.apache.flink.runtime.client.ClientUtils.uploadUserJars(ClientUtils.java:113)
   	at org.apache.flink.runtime.client.ClientUtils.uploadAndSetUserJars(ClientUtils.java:105)
   	at org.apache.flink.runtime.client.ClientUtils.uploadJobGraphFiles(ClientUtils.java:83)
   	... 48 more
   ```
   
   
   ### Kyuubi Server Configurations
   
   _No response_
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
   - [ ] No. I cannot submit a PR at this time.


-- 
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: notifications-unsubscribe@kyuubi.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


[GitHub] [kyuubi] pan3793 closed issue #5108: [Bug] [Flink] FileNotFoundException during Flink engine bootstrap

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 closed issue #5108: [Bug] [Flink] FileNotFoundException during Flink engine bootstrap
URL: https://github.com/apache/kyuubi/issues/5108


-- 
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: notifications-unsubscribe@kyuubi.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org