website page counter

Show Databases In Hive

Best image references website

Show Databases In Hive. The database creates in a default location of the hive warehouse. There is a workaround for this.

Hive Database Commands Hadoop Online Tutorials
Hive Database Commands Hadoop Online Tutorials from hadooptutorial.info

To list out the databases in hive warehouse enter the command show databases. Unfortunately there is no way to know which database is in use currently selected in hive shell. One option is to always use use database command to be sure every time you need to check the working database.

Msck repair table or alter table recover partitions show databases schemas tables.

Before you proceed make sure you have hiveserver2 started and connected to hive using beeline. Before you proceed make sure you have hiveserver2 started and connected to hive using beeline. In is an optional keyword in show. You can use hive cli property to show the existing database on the hive cli.

close