hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rakesh rakshit <>
Subject Re: Access hive database using jdbc
Date Mon, 17 Oct 2011 10:35:43 GMT
Hi Ankit,

I am able to find that its support has been included in the latest 0.7.1
Hive API.

Please go through the HiveMetaStoreClient.getDatabase(String dbName) and
HiveMetaStoreClient.getAllTables(String dbName) methods in the new api.

Hope this may help you.


Rakesh Kumar Rakshit
Impetus Infotech(India) Pvt. Ltd.

On Mon, Oct 17, 2011 at 1:06 PM, Ankit Jain <> wrote:

> Hi all,
> I have created the database test_db in hive using command 'create database
> test_db'. Then i have created the table test_db_tb inside the database
> test_db.
> Now , I want to access those table using hive jdbc driver.
> I have used the following connection string 'jdbc:hive://
>' but it was using the hive default database
> instead of test_db. How i can specify the hive database name??
> Thanks,
> Ankit Jain

View raw message