Github user tgravescs commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18978#discussion_r134037811
  
    --- Diff: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
 ---
    @@ -422,6 +440,35 @@ private[spark] class ApplicationMaster(
           YarnSchedulerBackend.ENDPOINT_NAME)
       }
     
    +  /**
    +   * Create an [[RpcEndpoint]] that communicates with the client.
    +   *
    +   * @return A reference to the application master's RPC endpoint.
    +   */
    +  private def runClientAMEndpoint(
    +       port: Int,
    +       driverRef: RpcEndpointRef,
    +       securityManager: SecurityManager): RpcEndpointRef = {
    +    val serversparkConf = new SparkConf()
    +    serversparkConf.set("spark.rpc.connectionUsingTokens", "true")
    +
    +    val amRpcEnv =
    +      RpcEnv.create(ApplicationMaster.SYSTEM_NAME, Utils.localHostName(), 
port, serversparkConf,
    +        securityManager)
    +    clientToAMPort = amRpcEnv.address.port
    +
    +    val clientAMEndpoint =
    +      amRpcEnv.setupEndpoint(ApplicationMaster.ENDPOINT_NAME,
    +        new ClientToAMEndpoint(amRpcEnv, driverRef, securityManager))
    +    clientAMEndpoint
    +  }
    +
    +  /** RpcEndpoint class for ClientToAM */
    +  private[spark] class ClientToAMEndpoint(
    +      override val rpcEnv: RpcEnv, driverRef: RpcEndpointRef, 
securityManager: SecurityManager)
    +    extends RpcEndpoint with Logging {
    +  }
    --- End diff --
    
    Add comment empty for now on purpose until we implement command that uses it


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to