Support Questions

Find answers, ask questions, and share your expertise

Override default Hive Database Path

avatar
Expert Contributor

Hi All,

I was trying to create a hive database by specifying a different location. The query got executed successfully, but I don't see the database in the specified location. Am I missing anything here?

PFA for the screenshots.

15950-screen-shot-2017-06-02-at-113454-am.png

15951-screen-shot-2017-06-02-at-113841-am.png

1 ACCEPTED SOLUTION

avatar
Expert Contributor

I found that this is how hive works when I provide (override the default ) the path.

It will use the specified path assuming the path subdirectory ex: /user/hive/warehouse/, "warehouse" folder in this case as the main DB folder and it will create all the tables underneath.

View solution in original post

11 REPLIES 11

avatar
Expert Contributor

I found that this is how hive works when I provide (override the default ) the path.

It will use the specified path assuming the path subdirectory ex: /user/hive/warehouse/, "warehouse" folder in this case as the main DB folder and it will create all the tables underneath.

avatar
Expert Contributor

when we override the path, it won't create any <dbname>.db folder, assuming that the specified path it self is the db /main folder for the mentioned database.