Connecting to Apache Hive Metastore

Applies to: Dataedo 23.x (current) versions, Article available also for: 10.x, 24.x

Add new connection

To connect to Hive Metastore and create new documentation by clicking Add documentation and choosing Database connection.

Connection to SQL Server

On the connection screen choose Apache Hive Metastore as DBMS.

Hive Metastore selection

You need to select database engine hosting Hive Metastore:

Hive Metastore database

Connection details

Then you need to provide connection details accordingly for selected database:

Following connection example will be based on MySQL, although others databases will have similar fields required for connection:

  • Host - hostname or IP address of server on which database is available,
  • Port - port under which database is available,
  • User - username,
  • Password - password,
  • Metastore database - name of MySQL database hosting the metastore. You can expand list of databases by clicking ... button.
  • Database - name of Hive database. You can expand list of databases by clicking ... button. You will get a table of Hive databases with Database Name, Description, Catalog Name and Catalog description columns:


Obtaining all details is described in chapter How to get connection details of Hive Metastore database.

Hive MySQL conn details

How to get connection details of Hive Metastore database

You can find all required details in hive-site.xml file which contains a configuration of Hive Metastore database connection. File is located in Hive installation directory in conf catalog. In most cases it will be: /etc/hive/conf/hive-site.xml. In this file you need to look for properties:

  • javax.jdo.option.ConnectionURL
  • javax.jdo.option.ConnectionUserName
  • javax.jdo.option.ConnectionPassword

You should find all of them in configuration element of hive-site.xml file.




Once you have all the properties, you need to extract details:

  • javax.jdo.option.ConnectionUserName - copy value into username field.
  • javax.jdo.option.ConnectionPassword - copy value into password field.
  • javax.jdo.option.ConnectionURL - here you need to extract infromation from jdbc connection string which has format: jdbc:[database_engine]://[database_address]:[database_port]/[metastore_database]?others_options. Previous example of configuration uses MySQL jdbc connector, although others database engines follow convention.

In our example, collected data is:

  • database: mysql
  • host:
  • port: 3306
  • user: Hive
  • password: verySecurePassword
  • metastore_database: hive_metastore

Importing Metadata

When connection was successful Dataedo will read objects and show a list of objects found. You can choose which objects to import. You can also use advanced filter to narrow down list of objects.

Hive Objects

Confirm list of objects to import by clicking Next.

Next screen allow you to change default name of the documentation under which it will be visible in Dataedo repository.

Hive documentation name

Click Import to start the import. Once import is done, close import window with Finish button.


Your database has been imported to new documentation in the repository.

Hive documentation

Hive Metastore support

Hive Metastore support details

Found issue with this article? Comment below
Comments are only visible when the visitor has consented to statistics cookies. To see and add comments please accept statistics cookies.
There are no comments. Click here to write the first comment.