Github user NicoK commented on the issue:

    https://github.com/apache/flink/pull/5176
  
    @EronWright this PR originated from a user problem at 
https://lists.apache.org/thread.html/177644ad38af34fb7ae7fb12a3bfcef3a70cd70dfccb6f7008a24eb6@%3Cuser.flink.apache.org%3E
    
    And yes, this also adds the fallback to (a subdirectory in) 
`taskmanager.tmp.dirs` in case no `blob.storage.directory` was given to the 
JobManager. Given that the configuration parameter hints towards the 
TaskManager only, we should maybe rename it?
    
    Regarding 
[MAPREDUCE-6472](https://issues.apache.org/jira/browse/MAPREDUCE-6472), it 
seems this is only available from Hadoop 2.7.2 onwards. With this fix applied, 
the behaviour changes only slightly: instead of using `java.io.tmpdir` directly 
(set to `Environment.PWD/tmp`), this will use the `taskmanager.tmp.dirs` which 
is set to `Environment.LOCAL_DIRS` by 
`YarnTaskManagerRunner`/`YarnTaskExecutorRunner`.
    
    I adapted the appropriate code paths for Mesos as well. If this is not used 
yet, it will at least work in the future once the `taskmanager.tmp.dirs` 
handling is correct. Until then, the fallback of this to `java.io.tmpdir` seems 
to be working as well (if this is set appropriately by Mesos) - but this is not 
only a problem of the BLOB server parts then and is out of the scope of this PR.


---

Reply via email to