You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhoukang (Jira)" <ji...@apache.org> on 2019/11/13 13:08:00 UTC

[jira] [Created] (SPARK-29880) Handle submit exception when target hadoop cluster is Federation

zhoukang created SPARK-29880:
--------------------------------

             Summary: Handle submit exception when target hadoop cluster is Federation
                 Key: SPARK-29880
                 URL: https://issues.apache.org/jira/browse/SPARK-29880
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core
    Affects Versions: 2.4.4
            Reporter: zhoukang


When we submit application to federation yarn cluster. Since getYarnClusterMetrics is not implemented. The submission will exit with failure.
{code:java}
def submitApplication(): ApplicationId = {
    ResourceRequestHelper.validateResources(sparkConf)

    var appId: ApplicationId = null
    try {
      launcherBackend.connect()
      yarnClient.init(hadoopConf)
      yarnClient.start()

     logInfo("Requesting a new application from cluster with %d NodeManagers"
          .format(yarnClient.getYarnClusterMetrics.getNumNodeManagers))
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org