The following is the code for administrative tasks such as creating tables, deleting tables, enabling tables, and so on:
import java.io.IOException; import java.util.Collection; import org.apache.hadoop.hbase.MasterNotRunningException; import org.apache.hadoop.hbase.ZooKeeperConnectionException; import org.apache.hadoop.hbase.client.HBaseAdmin; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.ClusterStatus; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HServerInfo; import org.apache.hadoop.hbase.HTableDescriptor; public class hbaseAdminCodeExample { private Configuration conf = null; HBaseAdmin admin = null; public hbaseAdminCodeExample(){ } public static void main(String[] args) throws IOException { for(int i = 0; i < args.length; i++) { ...