hive-dev mailing list archives

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


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.
# beeline
beeline> !addlocaldriverjar /path/to/mysql-connector-java-5.1.27-bin.jar
beeline> !connect mysql://host:3306/testdb
And another is to add a customized driver.
# beeline
beeline>!addlocaldriverjar /path/to/DummyDriver-1.0-SNAPSHOT.jar
beeline>!!addlocaldrivername org.apache.dummy.DummyDrive
beeline> !connect mysql://host:3306/testdb

> Beeline add jar local to client
> -------------------------------
>                 Key: HIVE-9302
>                 URL:
>             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

View raw message