hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ferdinand Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-9302) Beeline add jar local to client
Date Wed, 28 Jan 2015 08:10:34 GMT

    [ https://issues.apache.org/jira/browse/HIVE-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14294853#comment-14294853
] 

Ferdinand Xu commented on HIVE-9302:
------------------------------------

Sorry, I meant to. 
There are two kinds of use cases. One is to add an existing known driver like mysql driver
or postgres driver. Current supported driver are postgres and mysql.
{noformat}
# beeline
beeline> !addlocaldriverjar /path/to/mysql-connector-java-5.1.27-bin.jar
beeline> !connect mysql://host:3306/testdb
{noformat}
And another is to add a customized driver.
{noformat}
# beeline
beeline>!addlocaldriverjar /path/to/DummyDriver-1.0-SNAPSHOT.jar
beeline>!!addlocaldrivername org.apache.dummy.DummyDrive
beeline> !connect mysql://host:3306/testdb
{noformat}

> Beeline add jar local to client
> -------------------------------
>
>                 Key: HIVE-9302
>                 URL: https://issues.apache.org/jira/browse/HIVE-9302
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Brock Noland
>            Assignee: Ferdinand Xu
>         Attachments: DummyDriver-1.0-SNAPSHOT.jar, HIVE-9302.1.patch, HIVE-9302.patch,
mysql-connector-java-bin.jar, postgresql-9.3.jdbc3.jar
>
>
> At present if a beeline user uses {{add jar}} the path they give is actually on the HS2
server. It'd be great to allow beeline users to add local jars as well.
> It might be useful to do this in the jdbc driver itself.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message