HDFS-12266. Ozone : add debug cli to hdfs script. Contributed by Chen Liang.

This commit is contained in:
Xiaoyu Yao 2017-08-06 08:08:37 -07:00
parent 5ffb2508ef
commit b153dbb9b0
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,7 @@ function hadoop_usage
hadoop_add_subcommand "oiv" "apply the offline fsimage viewer to an fsimage"
hadoop_add_subcommand "oiv_legacy" "apply the offline fsimage viewer to a legacy fsimage"
hadoop_add_subcommand "oz" "command line interface for ozone"
hadoop_add_subcommand "oz_debug" "ozone debug tool, convert ozone meta data db into sqlite db"
hadoop_add_subcommand "portmap" "run a portmap service"
hadoop_add_subcommand "scm" "run the Storage Container Manager service"
hadoop_add_subcommand "secondarynamenode" "run the DFS secondary namenode"
@ -207,6 +208,9 @@ function hdfscmd_case
oz)
HADOOP_CLASSNAME=org.apache.hadoop.ozone.web.ozShell.Shell
;;
oz_debug)
HADOOP_CLASSNAME=org.apache.hadoop.ozone.scm.cli.SQLCLI
;;
portmap)
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
HADOOP_CLASSNAME=org.apache.hadoop.portmap.Portmap