apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.3k stars 1.17k forks source link

[Bug] [LinkisManager] LM startup fails due to non-directories in the EC material directory #4692

Closed peacewong closed 1 year ago

peacewong commented 1 year ago

Search before asking

Linkis Component

linkis-computation-governance

Steps to reproduce

  1. Create a zip file touch test.zip in the dist directory of the engine Such as: linkis/lib/linkis-engineconn-plugins/spark/dist/test.zip
  2. Restart the LM service
    2023-06-21 10:12:39.944 [ERROR] [Linkis-Default-Scheduler-Thread-1       ] o.a.l.e.s.l.DefaultEngineConnBmlResourceGenerator (48) [apply] [JobId-] - Generate dir : /appcom/Install/linkis/lib/linkis-engineconn-pl
    ugins/spark/dist/test.zip error, msg : null java.lang.NullPointerException: null
        at scala.collection.mutable.ArrayOps$ofRef$.newBuilder$extension(ArrayOps.scala:190) ~[scala-library-2.11.12.jar:?]
        at scala.collection.mutable.ArrayOps$ofRef.newBuilder(ArrayOps.scala:186) ~[scala-library-2.11.12.jar:?]
        at scala.collection.TraversableLike$class.filterImpl(TraversableLike.scala:246) ~[scala-library-2.11.12.jar:?]
        at scala.collection.TraversableLike$class.filterNot(TraversableLike.scala:267) ~[scala-library-2.11.12.jar:?]
        at scala.collection.mutable.ArrayOps$ofRef.filterNot(ArrayOps.scala:186) ~[scala-library-2.11.12.jar:?]
        at org.apache.linkis.engineplugin.server.localize.DefaultEngineConnBmlResourceGenerator.org$apache$linkis$engineplugin$server$localize$DefaultEngineConnBmlResourceGenerator$$generateDir(DefaultEngineConn

Expected behavior

no error

Your environment

Anything else

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

:blush: Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive