mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 06:39:43 +08:00
Merge pull request #869 from fly2best/hbase11xsqlreader-no-suit-driver-err
fix hbase11xsqlreader "No suitable driver found for jdbc:phoenix:xxx" error
This commit is contained in:
commit
f318dbfdf6
@ -34,6 +34,14 @@ import java.util.Map;
|
|||||||
public class HbaseSQLHelper {
|
public class HbaseSQLHelper {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(HbaseSQLHelper.class);
|
private static final Logger LOG = LoggerFactory.getLogger(HbaseSQLHelper.class);
|
||||||
|
|
||||||
|
static {
|
||||||
|
try {
|
||||||
|
Class.forName("org.apache.phoenix.jdbc.PhoenixDriver");
|
||||||
|
} catch (Throwable t) {
|
||||||
|
throw new RuntimeException("faild load org.apache.phoenix.jdbc.PhoenixDriver", t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static org.apache.hadoop.conf.Configuration generatePhoenixConf(HbaseSQLReaderConfig readerConfig) {
|
public static org.apache.hadoop.conf.Configuration generatePhoenixConf(HbaseSQLReaderConfig readerConfig) {
|
||||||
org.apache.hadoop.conf.Configuration conf = new org.apache.hadoop.conf.Configuration();
|
org.apache.hadoop.conf.Configuration conf = new org.apache.hadoop.conf.Configuration();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user