Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.2.0
-
None
-
None
Description
Allow clients to create temporary files in HDFS.
FileSystem.java
public FSDataOutputStreamBuilder createFile(Path path); public FSDataOutputStreamBuilder appendFile(Path path); // New feature public FSDataOutputStreamBuilder createTempFile(Path path, TimeUnit unit, long ttl);
This would register the file with the NameNode to have a TTL. The NameNode would be responsible for deleting the files after some custom TTL. This would be helpful in the case that a MapReduce (or Spark) job fails during execution and does not properly clean up after itself.
Attachments
Issue Links
- duplicates
-
HDFS-6382 HDFS File/Directory TTL
- Open