Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13988

Allow for Creating Temporary Files

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.2.0
    • None
    • hdfs, hdfs-client
    • 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

          Activity

            People

              Unassigned Unassigned
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: