Myasuka commented on issue #9007: [FLINK-13131] [Deployment / YARN] add a 
custom directory for storing configuration files and jar files for user jobs
URL: https://github.com/apache/flink/pull/9007#issuecomment-508973648
 
 
   @zhangbinzaifendou Please correct me if I am wrong, if 
`dfs.user.home.dir.prefix` has been configured to another value, e.g. 
`"/home"`. From Hadoop latest code, 
[`DistributedFileSystem`](https://github.com/apache/hadoop/blob/9c907294860a48f0d1676a31bda15795b7a6771a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java#L211)
 would return the home directory as `"/home/userxxx"` via 
[DFSUtilClient](https://github.com/apache/hadoop/blob/9c907294860a48f0d1676a31bda15795b7a6771a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java#L1006).
 In other words, there is no need for flink user to configure the staging 
folder since Hadoop could return the wanted home directory even 
`dfs.user.home.dir.prefix` changed.

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

Reply via email to