You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2019/12/10 08:05:24 UTC
[flink] 01/04: [FLINK-15157] Make ScalaShell ensureYarnConfig() and
fetchConnectionInfo() public
This is an automated email from the ASF dual-hosted git repository.
aljoscha pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git
commit bc209522cb2cc0962cbbbd4aa00bcbee21ab835a
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Mon Dec 9 13:59:02 2019 +0100
[FLINK-15157] Make ScalaShell ensureYarnConfig() and fetchConnectionInfo() public
---
.../src/main/scala/org/apache/flink/api/scala/FlinkShell.scala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala b/flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala
index 9494502..99cc98c 100644
--- a/flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala
+++ b/flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala
@@ -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
@@ -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()
}
@@ -196,7 +198,7 @@ object FlinkShell {
println(" good bye ..")
}
- private def fetchConnectionInfo(
+ @Internal def fetchConnectionInfo(
config: Config,
flinkConfig: Configuration): (Configuration, Option[ClusterClient[_]]) = {