Browse Source

HDFS-11836. Ozone : add sql debug CLI to hdfs script. Contributed by Chen Liang.

Weiwei Yang 8 years ago
parent
commit
ac2d219007
1 changed files with 4 additions and 0 deletions
  1. 4 0
      hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs

+ 4 - 0
hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs

@@ -65,6 +65,7 @@ function hadoop_usage
   hadoop_add_subcommand "scm" "run the Storage Container Manager service"
   hadoop_add_subcommand "secondarynamenode" "run the DFS secondary namenode"
   hadoop_add_subcommand "snapshotDiff" "diff two snapshots of a directory or diff the current directory contents with a snapshot"
+  hadoop_add_subcommnad "sqlconvert" "convert ozone leveldb files into sqlite db file for debug purpose"
   hadoop_add_subcommand "storagepolicies" "list/get/set block storage policies"
   hadoop_add_subcommand "version" "print the version"
   hadoop_add_subcommand "zkfc" "run the ZK Failover Controller daemon"
@@ -224,6 +225,9 @@ function hdfscmd_case
     snapshotDiff)
       HADOOP_CLASSNAME=org.apache.hadoop.hdfs.tools.snapshot.SnapshotDiff
     ;;
+    sqlconvert)
+      HADOOP_CLASSNAME=org.apache.hadoop.ozone.scm.cli.SQLCLI
+    ;;
     storagepolicies)
       HADOOP_CLASSNAME=org.apache.hadoop.hdfs.tools.StoragePolicyAdmin
     ;;