Skip to content

Commit

Permalink
Update kyuubi-common/src/main/scala/org/apache/kyuubi/engine/deploy/y…
Browse files Browse the repository at this point in the history
…arn/ApplicationMaster.scala
  • Loading branch information
pan3793 authored Dec 27, 2023
1 parent 2ed1d44 commit 1b0b77f
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ object ApplicationMaster extends Logging {
val buffer = new ArrayBuffer[String]()
buffer ++= confKeyValues(kyuubiConf.getAll)

val instance =
DynFields.builder().impl(currentEngineMainClass, "MODULE$").build[Object]().get(null)
DynMethods.builder("main").hiddenImpl(
currentEngineMainClass,
classOf[Array[String]]).buildChecked().invoke(instance, buffer.toArray)
val instance = DynFields.builder()
.impl(currentEngineMainClass, "MODULE$")
.build[Object].get(null)
DynMethods.builder("main")
.hiddenImpl(currentEngineMainClass, classOf[Array[String]])
.buildChecked()
.invoke(instance, buffer.toArray)

currentEngine = DynFields.builder().hiddenImpl(
currentEngineMainClass,
Expand Down

0 comments on commit 1b0b77f

Please sign in to comment.