yaooqinn commented on issue #24235: [SPARK-27301][Dstream]Shorten the 
FileSystem cached life cycle to the cleanup method inner scope
URL: https://github.com/apache/spark/pull/24235#issuecomment-477873419
 
 
   If without cached disabled, there will be various places to modify to deal 
with underlying file system issues which might only exists in some particular 
lower version hadoops,
   and we may do `getFileSystem` each time like this
   ```scala
   val fileSystem = path.getFileSystem(hadoopConf)
   
   
fileSystem.addDelegationTokens(UserGroupInformation.getCurrentUser.getCredentials.getAllTokens)
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to