I have created a database in HIVE using command CREATE DATABASE FIRST_DB; and a database is created.
Then I created a few tables in to it and it was working find. Directory named FIRST_DB.db is created in my hdfs warehouse location. Then I quit my HIVE shell.
Next day when I started my HIVE and tried to connect using command USE FIRST_DB; then it gave an error:
SemanticException [error 10072] :database does not exist FIRST_DB
but when I checked into my hdfs the FIRST_DB.db is present and tables under that is also present. Please help me to set this database permanently even after I quit HIVE session. Let me know if there is any configuration I missed.