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

    https://github.com/apache/spark/pull/6360#discussion_r31769443
  
    --- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -296,6 +284,53 @@ private[spark] class Client(
         }
     
         /**
    +     * Distribute a file to the cluster.
    +     *
    +     * @param path URI of the file to distribute.
    +     * @param resType Type of resource being distributed.
    +     * @param destName Name of the file in the distributed cache.
    +     * @param targetDir Subdirectory where to place the file.
    +     * @param appMasterOnly Whether to distribute only to the AM.
    +     * @return A 2-tuple. First item is whether the file is a "local:" 
URI. Second item is the
    +     *         localized path for non-local paths, or the input `path` for 
local paths.
    --- End diff --
    
    The second item can be null. Can you document when this is the case to 
avoid NPEs in the future if this isn't used carefully?


---
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