hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15053) Beeline#addlocaldriver - reduce classpath scanning
Date Wed, 26 Oct 2016 20:13:58 GMT

     [ https://issues.apache.org/jira/browse/HIVE-15053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zoltan Haindrich updated HIVE-15053:
------------------------------------
    Attachment: HIVE-15053.1.patch

patch#1 depends on the "fix" of the beelineargparser test

removed {{ClassNameCompleter}} and the beeline code which used it; replaced it with {{ServiceLoader}}
usage.

DummyDriver test is now 'auto-loadable' - because of this HiveTestUtils is now a bit more
complicated.

> 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
>            Assignee: Zoltan Haindrich
>         Attachments: HIVE-15053.1.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
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)

Mime
View raw message