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

Refine hdfs admin classes to reuse common code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • tools
    • None
    • 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.000.patch
          47 kB
          Jing Zhao
        2. HDFS-7600.001.patch
          48 kB
          Jing Zhao

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: