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

Refine hdfs admin classes to reuse common code

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: tools
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      As the review comment in HDFS-7323.
      In StoragePolicyAdmin and other class under org.apache.hadoop.hdfs.tools, such as CacheAdmin, CryptoAdmin. There are too many common methods (getDFS, prettifyException, getOptionDescriptionListing ...) and also inner class (HelpCommand), they are the same, it would be great if we can refine and shift them into a common place.
      This makes the code clean and can be re-used if we add new hdfs admin class in future.

        Attachments

        1. HDFS-7600.001.patch
          48 kB
          Jing Zhao
        2. HDFS-7600.000.patch
          47 kB
          Jing Zhao

          Issue Links

            Activity

              People

              • Assignee:
                jingzhao Jing Zhao
                Reporter:
                hitliuyi Yi Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: