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

    https://github.com/apache/spark/pull/21734#discussion_r201271407
  
    --- Diff: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnSparkHadoopUtil.scala
 ---
    @@ -193,8 +193,7 @@ object YarnSparkHadoopUtil {
           sparkConf: SparkConf,
           hadoopConf: Configuration): Set[FileSystem] = {
         val filesystemsToAccess = sparkConf.get(FILESYSTEMS_TO_ACCESS)
    -      .map(new Path(_).getFileSystem(hadoopConf))
    -      .toSet
    +    val isRequestAllDelegationTokens = filesystemsToAccess.isEmpty
    --- End diff --
    
    The fetch delegation token is inherently heavy. It took `22 seconds` to get 
5 tokens:
    
![image](https://user-images.githubusercontent.com/5399861/42500208-349c797a-8463-11e8-879a-c8b728d20c07.png)



---

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

Reply via email to