public interface DataSourceProvider
| Modifier and Type | Method and Description |
|---|---|
DataSource |
create(org.apache.hadoop.conf.Configuration hdpConfig) |
static String |
getMetastoreJdbcDriverUrl(org.apache.hadoop.conf.Configuration conf) |
static String |
getMetastoreJdbcPasswd(org.apache.hadoop.conf.Configuration conf) |
static String |
getMetastoreJdbcUser(org.apache.hadoop.conf.Configuration conf) |
static Properties |
getPrefixedProperties(org.apache.hadoop.conf.Configuration hdpConfig,
String factoryPrefix) |
boolean |
mayReturnClosedConnection()
BoneCp has a bug which causes closed connections to be returned to the pool
under certain conditions.
|
boolean |
supports(org.apache.hadoop.conf.Configuration configuration) |
DataSource create(org.apache.hadoop.conf.Configuration hdpConfig) throws SQLException
hdpConfig - SQLExceptionboolean mayReturnClosedConnection()
boolean supports(org.apache.hadoop.conf.Configuration configuration)
configuration - Hadoop configuration objectstatic Properties getPrefixedProperties(org.apache.hadoop.conf.Configuration hdpConfig, String factoryPrefix)
hdpConfig - static String getMetastoreJdbcUser(org.apache.hadoop.conf.Configuration conf)
static String getMetastoreJdbcPasswd(org.apache.hadoop.conf.Configuration conf) throws SQLException
SQLExceptionstatic String getMetastoreJdbcDriverUrl(org.apache.hadoop.conf.Configuration conf) throws SQLException
SQLExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.