Skip to content

Commit

Permalink
[FLINK-15157] Make ScalaShell ensureYarnConfig() and fetchConnectionI…
Browse files Browse the repository at this point in the history
…nfo() public
  • Loading branch information
zjffdu authored and aljoscha committed Dec 10, 2019
1 parent b5d958d commit a435827
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package org.apache.flink.api.scala

import java.io._

import org.apache.flink.annotation.Internal
import org.apache.flink.client.cli.{CliFrontend, CliFrontendParser}
import org.apache.flink.client.deployment.executors.RemoteExecutor
import org.apache.flink.client.deployment.DefaultClusterClientServiceLoader
Expand Down Expand Up @@ -132,7 +133,8 @@ object FlinkShell {
}
}

private def ensureYarnConfig(config: Config) = config.yarnConfig match {

@Internal def ensureYarnConfig(config: Config) = config.yarnConfig match {
case Some(yarnConfig) => yarnConfig
case None => YarnConfig()
}
Expand Down Expand Up @@ -196,7 +198,7 @@ object FlinkShell {
println(" good bye ..")
}

private def fetchConnectionInfo(
@Internal def fetchConnectionInfo(
config: Config,
flinkConfig: Configuration): (Configuration, Option[ClusterClient[_]]) = {

Expand Down

0 comments on commit a435827

Please sign in to comment.