Configuring Databricks internal hive metastore with Unravel
This topic provides instructions to configure the Databricks internal hive metastore with Unravel.
Prerequisites
You must have admin privileges for Databricks workspace.
Enable Web Terminal access for the workspace. This is needed only once for getting the internal hive metastore details. To enable Web terminal access, do the following:
In your Databricks workspace, click Settings > Admin Console > Workspace Settings.
Click the Web Terminal toggle.
To configure the Databricks internal hive metastore with Unravel, do the following:
Create a single-node cluster on Databricks and start it. This cluster is needed only once and can be deleted after you get the internal hive metastore configurations.
After the cluster is started launch a web terminal for that cluster. On the Cluster page, click the Apps tab and then click Launch Web Terminal.
After launching the web terminal, using a vi editor, open the
/databricks/hive/conf/hive-site.xml
file.Copy the values of the following properties from the above file and create a temporary
.txt
or.prop
file.Following is a sample of such a file:
javax.jdo.option.ConnectionURL=jdbc:mariadb://<db_instance_name>:3306/organizationxxxxxxxxxx?useSSL=true&enabledSslProtocolSuites=TLSv1,TLSv1.1,TLSv1.2&serverSslCert=/tmp/mysql-ssl-ca-cert.crt javax.jdo.option.ConnectionDriverName=org.mariadb.jdbc.Driver javax.jdo.option.ConnectionUserName=XXXxxxXXXXX4UXXXXXXXxxxxXXXX javax.jdo.option.ConnectionPassword=XXXxxxXXXXX4UXXXXXXXxxxxXXXX
Ensure to change the path of the SSL certificate in the JDBC URL to the path of the Unravel node where the SSL certificate is downloaded.
Note
SSL certificate for Azure Databricks can be downloaded from here.
Using a terminal, from the installation directory, where Unravel binaries are installed, run the following command to import the temporary properties file that you have created.
<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
Ensure to stop Unravel.
<Unravel installation directory>/unravel/manager config stop
Apply the changes.
<Unravel installation directory>/unravel/manager config apply
Start Unravel.
<Unravel installation directory>/unravel/manager start