@@ -0,0 +1,987 @@
+package com.modules.metadata;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.apache.hadoop.hbase.HBaseConfiguration;%0Aimport org.apache.hadoop.hbase.client.HBaseAdmin;%0A%0Apublic class ResetDatabase %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09Log log = LogFactory.getLog(ResetDatabase.class);%0A%0A%09%09Configuration conf = HBaseConfiguration.create();%0A%09%09HBaseAdmin admin = null;%0A%0A%09%09try %7B%0A%09%09%09admin = new HBaseAdmin(conf);%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%09log.error(%22HBase Admin failed%22);%0A%09%09%7D%0A%0A%09%09try %7B%0A%0A%09%09%09admin.disableTable(MetaSchama.TB_FILE_INFO);%0A%09%09%09admin.disableTable(MetaSchama.TB_FILE_KEYWORDS);%0A%0A%09%09%09admin.deleteTable(MetaSchama.TB_FILE_INFO);%0A%09%09%09admin.deleteTable(MetaSchama.TB_FILE_KEYWORDS);%0A%0A%09%09%09log.info(%22Database Reset Successful%22);%0A%0A%09%09%7D catch (IOException e) %7B%0A%0A%09%09%09e.printStackTrace();%0A%09%09%09log.error(%22Database Reset Failed%22);%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Reset Database Added