Class HBaseAdminClient

  • All Implemented Interfaces:
    org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

    public class HBaseAdminClient
    extends org.apache.hadoop.conf.Configured
    implements org.apache.hadoop.util.Tool
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int createTable()  
      protected int disableTable()  
      protected int dropTable()  
      protected int enableTable()  
      protected byte[][] getSplits()  
      static void main​(java.lang.String[] args)  
      int run​(java.lang.String[] args)  
      protected int run0()  
      protected void usage()  
      • Methods inherited from class org.apache.hadoop.conf.Configured

        getConf, setConf
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.hadoop.conf.Configurable

        getConf, setConf
    • Field Detail

      • num_splits_

        protected int num_splits_
      • tablename_

        protected org.apache.hadoop.hbase.TableName tablename_
      • family_

        protected java.lang.String family_
      • type_

        protected java.lang.String type_
      • key_prefix_

        protected java.lang.String key_prefix_
    • Constructor Detail

      • HBaseAdminClient

        public HBaseAdminClient()
    • Method Detail

      • run

        public int run​(java.lang.String[] args)
                throws java.lang.Exception
        Specified by:
        run in interface org.apache.hadoop.util.Tool
        Throws:
        java.lang.Exception
      • run0

        protected int run0()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • disableTable

        protected int disableTable()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • enableTable

        protected int enableTable()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • dropTable

        protected int dropTable()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createTable

        protected int createTable()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • usage

        protected void usage()
      • getSplits

        protected byte[][] getSplits()
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException,
                                java.lang.Exception
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.lang.Exception