Script(s)

technology as-is

Hive : Create database in different folder

| 0 comments

When database is created in Hive, its usually saved in default folder  /user/hive/warehouse/yourdabase.db

If alternate location is needed, then

create database <yourdatabase> location  ‘/db/path/yourdatabase.db’    [single quotes]

 

Leave a Reply

Required fields are marked *.