Skip to content

Commit

Permalink
Minor comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Sep 10, 2014
1 parent 6573c1d commit 6d74888
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ private[spark] class Client(
logInfo("Requesting a new application from cluster with %d NodeManagers"
.format(yarnClient.getYarnClusterMetrics.getNumNodeManagers))

// Get a new application from our RM.
// Get a new application from our RM
val newAppResponse = getNewApplication()
val appId = newAppResponse.getApplicationId()

// Verify whether the cluster has enough resources for our AM.
// Verify whether the cluster has enough resources for our AM
verifyClusterResources(newAppResponse)

// Set up the appropriate contexts to launch our AM.
// Set up the appropriate contexts to launch our AM
val containerContext = createContainerLaunchContext(newAppResponse)
val appContext = createApplicationSubmissionContext(appId, containerContext)

// Finally, submit and monitor the application.
// Finally, submit and monitor the application
logInfo(s"Submitting application ${appId.getId} to ResourceManager")
submitApplication(appContext)
appId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ private[spark] class Client(
logInfo("Requesting a new application from cluster with %d NodeManagers"
.format(yarnClient.getYarnClusterMetrics.getNumNodeManagers))

// Get a new application from our RM.
// Get a new application from our RM
val newApp = yarnClient.createApplication()
val newAppResponse = newApp.getNewApplicationResponse()
val appId = newAppResponse.getApplicationId()

// Verify whether the cluster has enough resources for our AM.
// Verify whether the cluster has enough resources for our AM
verifyClusterResources(newAppResponse)

// Set up the appropriate contexts to launch our AM.
// Set up the appropriate contexts to launch our AM
val containerContext = createContainerLaunchContext(newAppResponse)
val appContext = createApplicationSubmissionContext(newApp, containerContext)

// Finally, submit and monitor the application.
// Finally, submit and monitor the application
logInfo(s"Submitting application ${appId.getId} to ResourceManager")
yarnClient.submitApplication(appContext)
appId
Expand Down

0 comments on commit 6d74888

Please sign in to comment.