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.Connection conn,
String table,
String... families) |
static void |
createHTableIfNeeded(org.apache.kylin.common.StorageURL hbaseUrl,
String tableName,
String... families) |
static void |
deleteTable(org.apache.hadoop.hbase.client.Connection conn,
String tableName) |
static void |
deleteTable(org.apache.kylin.common.StorageURL hbaseUrl,
String tableName) |
static org.apache.hadoop.hbase.client.Connection |
get(org.apache.kylin.common.StorageURL url) |
static ExecutorService |
getCoprocessorPool() |
static org.apache.hadoop.conf.Configuration |
getCurrentHBaseConfiguration() |
static String |
makeQualifiedPathInHBaseCluster(String inPath) |
static boolean |
tableExists(org.apache.hadoop.hbase.client.Connection conn,
String tableName) |
static boolean |
tableExists(org.apache.kylin.common.StorageURL 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.Connection get(org.apache.kylin.common.StorageURL url)
public static boolean tableExists(org.apache.hadoop.hbase.client.Connection conn,
String tableName)
throws IOException
IOExceptionpublic static boolean tableExists(org.apache.kylin.common.StorageURL hbaseUrl,
String tableName)
throws IOException
IOExceptionpublic static void createHTableIfNeeded(org.apache.kylin.common.StorageURL hbaseUrl,
String tableName,
String... families)
throws IOException
IOExceptionpublic static void deleteTable(org.apache.kylin.common.StorageURL hbaseUrl,
String tableName)
throws IOException
IOExceptionpublic static void createHTableIfNeeded(org.apache.hadoop.hbase.client.Connection conn,
String table,
String... families)
throws IOException
IOExceptionpublic static void deleteTable(org.apache.hadoop.hbase.client.Connection conn,
String tableName)
throws IOException
IOExceptionCopyright © 2014–2017 Apache Software Foundation. All rights reserved.