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
Attachments
Issue Links
- relates to
-
HDFS-7323 Move the get/setStoragePolicy commands out from dfsadmin
- Closed