Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6581 Write to single replica in memory
  3. HDFS-7170

DFSOutputStream should query policies from NameNode

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • HDFS-6581
    • None
    • hdfs-client
    • None

    Description

      DFSOutputStream creates the default policy suite locally to determine whether the LAZY_PERSIST policy is set on a file so it can pass the appropriate flag to DataNode via writeBlock. It should query the policies from the NameNode. Per feedback from jingzhao on HDFS-7159.

      Additionally DFSOutputStream gets the effective policy on the file, it should get the local storage policy since effective policy is subject to change. We may need to extend HdfsFileStatus to expose it.

      DFSClient will probably need to cache policies since we can't take the overhead of an additional RPC call to NameNode per create/append.

      Attachments

        Activity

          People

            arp Arpit Agarwal
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: