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

Move BlockStoragePolicy name's constants from HdfsServerConstants.java to HdfsConstants.java

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently HdfsServerConstants.java have following constants,

        String HOT_STORAGE_POLICY_NAME = "HOT";
        String WARM_STORAGE_POLICY_NAME = "WARM";
        String COLD_STORAGE_POLICY_NAME = "COLD";

      and HdfsConstants.java have the following

        public static final String MEMORY_STORAGE_POLICY_NAME = "LAZY_PERSIST";
        public static final String ALLSSD_STORAGE_POLICY_NAME = "ALL_SSD";
        public static final String ONESSD_STORAGE_POLICY_NAME = "ONE_SSD";

      It would be better to move all these to one place HdfsConstants.java, which client APIs also could access since this presents in hdfs-client module.

        Attachments

          Activity

            People

            • Assignee:
              vinayrpet Vinayakumar B
              Reporter:
              vinayrpet Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: