Browse Source

KERNEL-571 fix:修改隔离驱动为hive

pull/3/head
Munin 6 years ago
parent
commit
79dbb0d7cf
  1. 1
      plugin.xml
  2. 2
      src/main/java/com/fr/plugin/dialect/classloader/ClassLoaderHandler.java

1
plugin.xml

@ -11,6 +11,7 @@
[2019-05-16]初始化。<br/>
[2019-05-20]优化逻辑。<br/>
[2019-05-30]实现一个可用的ClassLoader。<br/>
[2019-05-31]修改Mysql的key为Hive。<br/>
]]></change-notes>
<main-package>com.fr.plugin.dialect.classloader</main-package>
<extra-core>

2
src/main/java/com/fr/plugin/dialect/classloader/ClassLoaderHandler.java

@ -24,7 +24,7 @@ public class ClassLoaderHandler extends AbstractDataSourceDriverLoader {
public static final String DRIVER_LIB_DIR = "driverlib";
//demo设置为mysql为目标驱动
private static final String DRIVER_NAME_KEY = "com.mysql.jdbc.Driver";
private static final String DRIVER_NAME_KEY = "org.apache.hive.jdbc.HiveDriver";
@Focus(id = "com.fr.plugin.dialect.classloader.ClassLoaderHandler", text = "", source = Original.PLUGIN)
public boolean isInterceptAllowed(String driverName) {

Loading…
Cancel
Save