cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Hive metastore federation, internal and external unable to connect

johnnwanosike
New Contributor

I enabled the internal hive on the metastore federation using this  query command


CREATE CONNECTION IF NOT EXISTS internal-hive TYPE hive_metastore
OPTIONS (builtin true);

But I can't get a password or username to access the JDBC URL. 

6 REPLIES 6

Walter_C
Databricks Employee
Databricks Employee

Have you tried using token as username and use a valid PAT token as your password?

johnnwanosike
New Contributor

Yes, I got this error.

Access denied for user 'token'@'185.59.*****' (using password: YES)

Walter_C
Databricks Employee
Databricks Employee

Can you share with me the JDBC connection string you are running? you can remove any sensitive data if needed

johnnwanosike
New Contributor
Below is my hive configuration
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://35.239.****:3306/organization4589753****</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>root</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value></value>
</property>
 
The configure below is that of hive metastore federation I created:
 
URLDatabaseHome workspace idHostPortInternal
jdbc://35.23*.***:3306/organization45897****935
organization458975****7935
458975*****7935
35.239.**.***
3306
true

I tried using Dbeaver to connect but it failed also

Walter_C
Databricks Employee
Databricks Employee

Oh ok, so you are connecting from Databricks cluster to MySQL, on this case the username and password needs to be the one for the MySQL database

 

johnnwanosike
New Contributor

Not really, what I want to achieve is connecting to an external hive but I do want to configure the external hive on our server to be able to interact with the Databricks cluster in such a way that I could have access to thrift protocol.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group