Central Repository location where Hive stores all the Schemas [Column names, Data types, etc.] are called ‘Metastore’ (Derby). It stores metadata for Hive tables (like their schema and location) and partitions in a relational database. It provides client access to this information by using metastore service API.
By default, Hive uses
a built-in Derby SQL server.
Now when you run your
Hive query and you are using the default Derby database, you will find that
your current directory now contains a new sub-directory, metastore_db.
The default value of
this property is jdbc:derby:;databaseName=metastore_db;create=true. This value specifies that you will be using the embedded
Derby as your Hive metastore, and the location of the metastore is metastore_db.
We can also configure
the directory for the Hive to store table information. By default, the location
of the warehouse is file:///user/hive/warehouse and we can also use the hive-site.xml file for the local or remote metastore.
MySQL
server à Metastore
(Hive table schema details) where most of the projects use.