Skip to main content


Configuring external hive metastore (Dataproc)

You can configure multiple Dataproc clusters' hive metastore for Unravel monitoring.

Copy database jar for hive metastore configuration

Ensure that the database jar file for MySQL, MariaDB, or Oracle DB is copied to the following location before you configure Hive metastore.

<Unravel installation directory>/unravel/share/java/

For example:


To configure the hive metastore, do the following:

  1. Create a .txt or .prop file containing the following properties and their corresponding values in any location that is accessible to Unravel users. Following is a sample of the file:

    hive.metastore.<Dataproc-cluster1name>.cluster.ids = <Dataproc-cluster1id>
    javax.jdo.option.<Dataproc-cluster1name>.ConnectionURL=<jdbc connection URL>
    javax.jdo.option.<Dataproc-cluster1name>.ConnectionDriverName=<jdbc driver name>
    javax.jdo.option.<Dataproc-cluster1name>.ConnectionPassword=<jdbc connection password>
    javax.jdo.option.<Dataproc-cluster1name>.ConnectionUserName=<jdbc connection username>
    javax.jdo.option.<Dataproc-cluster2name>.ConnectionURL=<jdbc connection URL>
    javax.jdo.option.<Dataproc-cluster2name>.ConnectionDriverName=<jdbc driver name>
    javax.jdo.option.<Dataproc-cluster2name>.ConnectionPassword=<jdbc connection password>
    javax.jdo.option.<Dataproc-cluster2name>.ConnectionUserName=<jdbc connection username>



    Dataproc cluster name

    Name of the Dataproc cluster.

    JDBC connection URL

    JDBC connection string for the hive metastore containing the metadata of the form: jdbc:DB_Driver://HOST:PORT/hive

    JDBC driver name

    JDBC Driver class name for the hive metastore containing the metadata

    JDBC connection password

    Password used to access the hive metastore.

    JDBC connection username

    Username used to access the hive metastore.

    For example:

  2. From the installation directory, where Unravel binaries are installed, run the following command and provide the path to the properties file.

    <Unravel installation directory>/unravel/manager config properties import <path to the properties file>
    For example:
    /opt/unravel-install/unravel/manager config properties import /opt/properties.txt
  3. Ensure to stop Unravel.

    <Unravel installation directory>/unravel/manager stop
  4. Apply the changes.

    <Unravel installation directory>/unravel/manager config apply
  5. Start Unravel.

    <Unravel installation directory>/unravel/manager start