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

    https://github.com/apache/spark/pull/6360#discussion_r31774481
  
    --- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -548,8 +596,13 @@ private[spark] class Client(
         logInfo("Setting up container launch context for our AM")
         val appId = newAppResponse.getApplicationId
         val appStagingDir = getAppStagingDir(appId)
    -    val localResources = prepareLocalResources(appStagingDir)
         val launchEnv = setupLaunchEnv(appStagingDir)
    +    val localResources = prepareLocalResources(appStagingDir)
    +
    +    // Set the environment variables to be passed on to the executors.
    +    distCacheMgr.setDistFilesEnv(launchEnv)
    +    distCacheMgr.setDistArchivesEnv(launchEnv)
    --- End diff --
    
    From the change description:
    
    > Because the Client initialization code is a maze of implicit 
dependencies, some code needed to be moved around to make sure all needed state 
was available when the code ran.
    
    So yes, I have verified 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