@@ -0,0 +1,929 @@
+package com.gs.dao.impl.hbase;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.hadoop.hbase.HColumnDescriptor;%0Aimport org.apache.hadoop.hbase.HTableDescriptor;%0Aimport org.apache.hadoop.hbase.ZooKeeperConnectionException;%0Aimport org.apache.hadoop.hbase.client.HBaseAdmin;%0A%0Apublic final class HBaseCleaner %7B%0A%09public static void main(String%5B%5D args) throws ZooKeeperConnectionException, IOException %7B%0A%09%09clean();%0A%09%7D%0A%09%0A%09private static void clean() throws IOException%7B%0A%09%09HBaseAdmin admin = new HBaseAdmin(HBasePool.getInstance().getConf());%0A%09%09admin.disableTable(%22page%22);%0A%09%09admin.deleteTable(%22page%22);%0A%09%09HTableDescriptor tableDescriptor = new HTableDescriptor(%22page%22);  %0A        tableDescriptor.addFamily(new HColumnDescriptor(%22content%22));  %0A        tableDescriptor.addFamily(new HColumnDescriptor(%22title%22));  %0A        tableDescriptor.addFamily(new HColumnDescriptor(%22url%22));  %0A%09%09admin.createTable(tableDescriptor);%0A%09%09admin.close();%0A%09%7D%0A%7D%0A

add a HBase cleaner