simon824 commented on pull request #1119: URL: https://github.com/apache/incubator-kyuubi/pull/1119#issuecomment-926284873
> The spark internal launcher already expose the interface to comminicate with resource manager client. > > * YARN: implemented. > * Meson: implemented. > * K8s: seems has not implemented. > > [_**spark core**_] > https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/launcher/LauncherBackend.scala > > ``` > def connect(): Unit = { > val port = conf.getOption(LauncherProtocol.CONF_LAUNCHER_PORT) > .orElse(sys.env.get(LauncherProtocol.ENV_LAUNCHER_PORT)) > .map(_.toInt) > val secret = conf.getOption(LauncherProtocol.CONF_LAUNCHER_SECRET) > .orElse(sys.env.get(LauncherProtocol.ENV_LAUNCHER_SECRET)) > if (port.isDefined && secret.isDefined) { > val s = new Socket(InetAddress.getLoopbackAddress(), port.get) > connection = new BackendConnection(s) > connection.send(new Hello(secret.get, SPARK_VERSION)) > clientThread = LauncherBackend.threadFactory.newThread(connection) > clientThread.start() > _isConnected = true > } > } > ``` Is it common use in different hadoop versions? Mesos and k8s also support restful api. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
