hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <>
Subject [jira] [Commented] (HIVE-15053) Beeline#addlocaldriver - reduce classpath scanning
Date Wed, 27 Sep 2017 06:36:00 GMT


Zoltan Haindrich commented on HIVE-15053:

[~Ferd] if someone encounters a jdbc driver which is not service loadable the jdbc drivermanager
provides a sysprop{{-Djdbc.drivers=com.acme.jdbc.AcmeJdbcDriver}} to load additional drivers.

according to

9.2.1: \[...\] JDBC 4.0 Drivers *must* include the file META-INF/services/java.sql.Driver.\[...\]

so I guess we are safe to drop the classpath scanning.

> Beeline#addlocaldriver - reduce classpath scanning
> --------------------------------------------------
>                 Key: HIVE-15053
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>         Attachments: HIVE-15053.1.patch, HIVE-15053.1.patch, HIVE-15053.1.patch, HIVE-15053.2.patch,
> 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
> 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}}
> Auto-Loading of JDBC Driver

This message was sent by Atlassian JIRA

View raw message