mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 06:09:04 +08:00
fix hbase11xsqlreader "No suitable driver found for jdbc:phoenix:xxx" error"
This commit is contained in:
parent
aafcac8a0b
commit
6dda19a23f
@ -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