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
- SQLException
boolean 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
SQLException
static String getMetastoreJdbcDriverUrl(org.apache.hadoop.conf.Configuration conf) throws SQLException
SQLException
Copyright © 2022 The Apache Software Foundation. All rights reserved.