cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

How can we connect to the databricks managed metastore

AP
New Contributor III

Hi, I am trying to take advantage of the treasure trove of the information that metastore contains and take some actions to improve performance. In my case, the metastore is managed by databricks, we don't use external metastore.

How can I connect to the metastore and query it. I scanned the cluster logs to see some entries that has the JDBC information, but the user ID is really vague and password of course not available.

2 REPLIES 2

Prabakar
Esteemed Contributor III
Esteemed Contributor III

@AKSHAY PALLERLA​ to get the jdbc/odbc information you can get it from the cluster configuration.

In the cluster configuration page, under advanced options, you have JDBC/ODBC tab. Click on that tab and it should give you the details you are looking for.

image

AP
New Contributor III

Thanks Prabakar. I appreciate your response. However, I already have the details. Now, my question is what do I do with those details? I have the details in the following format

config=DbMetastoreConfig{host=somemetastoreprefix.mysql.database.azure.com, port=xxxx, dbName=orgnxxx, user=randomvalues@somemetastoreprefix})

DataSource Jdbc URL: jdbc:mariadb://somemetastoreprefix.mysql.database.azure.com:xxxx/orgxxx?useSSL=true&sslMode=VERIFY_CA&disableSslHostnameVerification=true&trustServerCertificate=false&serverSslCert=/databricks/common/mysql-ssl-ca-cert.crt

Specifying those in the options tab you in this case is not necessary since Databricks Run time will take care of establishing connectivity since it is a managed resource.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.