hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <>
Subject [jira] [Commented] (HIVE-7998) Enhance JDBC Driver to not require class specification
Date Tue, 03 Feb 2015 21:06:35 GMT


Alexander Pivovarov commented on HIVE-7998:

Hi [~brocknoland], could you commit the patch?

> Enhance JDBC Driver to not require class specification
> ------------------------------------------------------
>                 Key: HIVE-7998
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>          Components: JDBC
>            Reporter: Prateek Rungta
>            Assignee: Alexander Pivovarov
>            Priority: Trivial
>         Attachments: HIVE-7998.1.patch
> The hotspot VM offers a way to avoid having to specify the driver class explicitly when
using the JDBC driver. 
> The DriverManager methods getConnection and getDrivers have been enhanced to support
the Java Standard Edition Service Provider mechanism. JDBC 4.0 Drivers must include the file
META-INF/services/java.sql.Driver. This file contains the name of the JDBC drivers implementation
of java.sql.Driver. For example, to load the my.sql.Driver class, the META-INF/services/java.sql.Driver
file would contain the entry: `my.sql.Driver`
> Applications no longer need to explictly load JDBC drivers using Class.forName(). Existing
programs which currently load JDBC drivers using Class.forName() will continue to work without
> via

This message was sent by Atlassian JIRA

View raw message