[
https://issues.apache.org/jira/browse/HIVE-15053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15609340#comment-15609340
]
Zoltan Haindrich commented on HIVE-15053:
-----------------------------------------
auto-loading capable jdbc drivers:
* hive:
since: HIVE-7998, the hive jdbc driver is capable of this
* ojdbc
looks like it contains it:
http://www.java2s.com/Code/Jar/o/Downloadojdbc6jar.htm
* postgres
seem ok too:
http://www.java2s.com/Code/Jar/p/Downloadpostgresql83603jdbc4jar.htm
* mysql
also ok
http://www.java2s.com/Code/Jar/m/Downloadmysqlconnectorjava5117binjar.htm
so I guess it will be ok to rely on the ServiceLoader method for
{{java.sql.Driver}}
> Beeline#addlocaldriver - reduce classpath scanning
> --------------------------------------------------
>
> Key: HIVE-15053
> URL: https://issues.apache.org/jira/browse/HIVE-15053
> Project: Hive
> Issue Type: Improvement
> Reporter: Zoltan Haindrich
>
> There is a classpath scanning machinery inside {{ClassNameCompleter}}.
> I think the sole purpose of these things is to scan for jdbc drivers...(but
> not entirely sure)
> if it is indeed looking for jdbc drivers..then possibly this can be removed
> without any issues because modern jdbc drivers usually advertise their driver
> as a service-loadable class for {{java.sql.Driver}}
> http://www.onjava.com/2006/08/02/jjdbc-4-enhancements-in-java-se-6.html
> Auto-Loading of JDBC Driver
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)