Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> Re: Find current db we r using in Hive


Copy link to this message
-
Re: Find current db we r using in Hive
Sai,

I do not think there is any command to show the current db in Hive. One
alternative for you is to set a property so that the current database is
shown as part of the prompt:

set hive.cli.print.current.db=true;

This one shows your current db as part of your hive prompt.

Regards,
Ramki.
On Fri, Mar 8, 2013 at 11:13 AM, Sai Sai <[EMAIL PROTECTED]> wrote:

> Just wondering if there is any command in Hive which will show us the
> current db we r using similar to pwd in Unix.
> Thanks
> Sai
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB