public class HBaseAdminClient
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
HBaseAdminClient.Operation |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
family_ |
protected java.lang.String |
key_prefix_ |
protected int |
num_splits_ |
protected HBaseAdminClient.Operation |
operation_ |
protected org.apache.hadoop.hbase.TableName |
tablename_ |
protected java.lang.String |
type_ |
| Constructor and Description |
|---|
HBaseAdminClient() |
| Modifier and Type | Method and 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() |
protected int num_splits_
protected org.apache.hadoop.hbase.TableName tablename_
protected java.lang.String family_
protected java.lang.String type_
protected java.lang.String key_prefix_
protected HBaseAdminClient.Operation operation_
public int run(java.lang.String[] args)
throws java.lang.Exception
run in interface org.apache.hadoop.util.Tooljava.lang.Exceptionprotected int run0()
throws java.io.IOException
java.io.IOExceptionprotected int disableTable()
throws java.io.IOException
java.io.IOExceptionprotected int enableTable()
throws java.io.IOException
java.io.IOExceptionprotected int dropTable()
throws java.io.IOException
java.io.IOExceptionprotected int createTable()
throws java.io.IOException
java.io.IOExceptionprotected void usage()
protected byte[][] getSplits()
public static void main(java.lang.String[] args)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.lang.Exception
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.lang.Exception