public class HBaseConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTABLE_UUID_TAG |
static String |
JOB_NAMENODES_TOKEN_RENEWAL_EXCLUDE |
| Constructor and Description |
|---|
HBaseConnection() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHBaseClusterNNHAConfiguration(org.apache.hadoop.conf.Configuration conf) |
static void |
clearConnCache() |
static void |
createHTableIfNeeded(org.apache.hadoop.hbase.client.HConnection conn,
String table,
String... families) |
static void |
createHTableIfNeeded(String hbaseUrl,
String tableName,
String... families) |
static void |
deleteTable(org.apache.hadoop.hbase.client.HConnection conn,
String tableName) |
static void |
deleteTable(String hbaseUrl,
String tableName) |
static org.apache.hadoop.hbase.client.HConnection |
get(String url) |
static ExecutorService |
getCoprocessorPool() |
static org.apache.hadoop.conf.Configuration |
getCurrentHBaseConfiguration() |
static String |
makeQualifiedPathInHBaseCluster(String path) |
static boolean |
tableExists(org.apache.hadoop.hbase.client.HConnection conn,
String tableName) |
static boolean |
tableExists(String hbaseUrl,
String tableName) |
public static final String HTABLE_UUID_TAG
public static final String JOB_NAMENODES_TOKEN_RENEWAL_EXCLUDE
public static ExecutorService getCoprocessorPool()
public static void clearConnCache()
public static org.apache.hadoop.conf.Configuration getCurrentHBaseConfiguration()
public static void addHBaseClusterNNHAConfiguration(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.hbase.client.HConnection get(String url)
public static boolean tableExists(org.apache.hadoop.hbase.client.HConnection conn,
String tableName)
throws IOException
IOExceptionpublic static boolean tableExists(String hbaseUrl, String tableName) throws IOException
IOExceptionpublic static void createHTableIfNeeded(String hbaseUrl, String tableName, String... families) throws IOException
IOExceptionpublic static void deleteTable(String hbaseUrl, String tableName) throws IOException
IOExceptionpublic static void createHTableIfNeeded(org.apache.hadoop.hbase.client.HConnection conn,
String table,
String... families)
throws IOException
IOExceptionpublic static void deleteTable(org.apache.hadoop.hbase.client.HConnection conn,
String tableName)
throws IOException
IOExceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.