<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33306#M24327</link>
    <description>&lt;P&gt;DBFS support for SQL is still not available and we have a feature request for this. So using the init script won't help. You need to get the jar from Maven for now.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 10:52:04 GMT</pubDate>
    <dc:creator>Prabakar</dc:creator>
    <dc:date>2021-12-14T10:52:04Z</dc:date>
    <item>
      <title>SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33304#M24325</link>
      <description>&lt;P&gt;Using Azure databricks, I have set up SQL Endpoint with the connection details that match with global init script. I am able to browse tables from regular cluster in Data Engineering module but i get below error when trying a query using SQL Endpoint&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;on the schema browser left pane error : - Failed to load Databases list.&lt;/P&gt;&lt;P&gt;on the query results pane error:-&lt;/P&gt;&lt;P&gt;Error running query&lt;/P&gt;&lt;P&gt;org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL end point settings are as below - (user id and passwd are in azure key vault)&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;spark.sql.hive.metastore.* true&lt;/P&gt;&lt;P&gt;spark.hadoop.fs.azure.account.auth.type.&amp;lt;storage_acct&amp;gt;.&lt;A href="http://dfs.core.windows.net/" alt="http://dfs.core.windows.net/" target="_blank"&gt;dfs.core.windows.net&lt;/A&gt;&amp;nbsp;OAuth&lt;/P&gt;&lt;P&gt;spark.hadoop.fs.azure.account.oauth.provider.type.&amp;lt;storage_acct&amp;gt;.&lt;A href="http://dfs.core.windows.net/" alt="http://dfs.core.windows.net/" target="_blank"&gt;dfs.core.windows.net&lt;/A&gt;&amp;nbsp;org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider&lt;/P&gt;&lt;P&gt;spark.hadoop.fs.azure.account.oauth2.client.id.&amp;lt;storage_acct&amp;gt;.&lt;A href="http://dfs.core.windows.net/" alt="http://dfs.core.windows.net/" target="_blank"&gt;dfs.core.windows.net&lt;/A&gt;&amp;nbsp;{{secrets/&amp;lt;secret_scope&amp;gt;/client-id}}&lt;/P&gt;&lt;P&gt;spark.hadoop.fs.azure.account.oauth2.client.secret.&amp;lt;storage_acct&amp;gt;.&lt;A href="http://dfs.core.windows.net/" alt="http://dfs.core.windows.net/" target="_blank"&gt;dfs.core.windows.net&lt;/A&gt;&amp;nbsp;{{secrets/&amp;lt;secret_scope&amp;gt;/client-secret}}&lt;/P&gt;&lt;P&gt;spark.hadoop.fs.azure.account.oauth2.client.endpoint.&amp;lt;storage_acct&amp;gt;.&lt;A href="http://dfs.core.windows.net/" alt="http://dfs.core.windows.net/" target="_blank"&gt;dfs.core.windows.net&lt;/A&gt;&amp;nbsp;&lt;A href="https://login.microsoftonline.com/%3Ctenant_id%3E/oauth2/token" alt="https://login.microsoftonline.com/%3Ctenant_id%3E/oauth2/token" target="_blank"&gt;https://login.microsoftonline.com/&amp;lt;tenant_id&amp;gt;/oauth2/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;spark.hadoop.javax.jdo.option.ConnectionURL jdbc://&amp;lt;sql server name&amp;gt;.&lt;A href="http://database.windows.net/" alt="http://database.windows.net/" target="_blank"&gt;database.windows.net&lt;/A&gt;:1433;database=&amp;lt;db_name&amp;gt;&lt;/P&gt;&lt;P&gt;spark.hadoop.javax.jdo.option.ConnectionUserName metastoredbuser&lt;/P&gt;&lt;P&gt;spark.hadoop.javax.jdo.option.ConnectionPassword {{secrets/&amp;lt;secret_scope&amp;gt;/metastoredbpwd}}&lt;/P&gt;&lt;P&gt;spark.hadoop.javax.jdo.option.ConnectionDriverName com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/P&gt;&lt;P&gt;spark.sql.hive.metastore.version 2.3.7&lt;/P&gt;&lt;P&gt;spark.sql.hive.metastore.jars /databricks/hive_metastore_jars/*&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 21:01:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33304#M24325</guid>
      <dc:creator>prasadvaze</dc:creator>
      <dc:date>2021-12-13T21:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33305#M24326</link>
      <description>&lt;P&gt;Hi @prasad vaze​&amp;nbsp; instead of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql.hive.metastore.jars /databricks/hive_metastore_jars/*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;please use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql.hive.metastore.jars maven&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 08:55:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33305#M24326</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-12-14T08:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33306#M24327</link>
      <description>&lt;P&gt;DBFS support for SQL is still not available and we have a feature request for this. So using the init script won't help. You need to get the jar from Maven for now.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 10:52:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33306#M24327</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-12-14T10:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33308#M24329</link>
      <description>&lt;P&gt;This worked.  But I am puzzled --  in another workspace I have downloaded the jars from maven and stored on DBFS.  And the sql end point there is SUCCESSFULLY using below   "spark.sql.hive.metastore.jars /databricks/hive_metastore_jars/*"   ..  So how is that working?  This is confusing or is it a bug? &lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 22:20:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33308#M24329</guid>
      <dc:creator>prasadvaze</dc:creator>
      <dc:date>2021-12-14T22:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33309#M24330</link>
      <description>&lt;P&gt;Is DBFS support for SQL end point coming ? when? &lt;/P&gt;&lt;P&gt;As I mentioned in previous reply i see that in one of my workspaces  using DBFS location for jars from SQL end point works but for another workspace it is not  (but using maven works).   The later workspace was created 3 days ago and the previous one was created 3 months ago. So something has changed behind the scenes for databricks SQL and I don't know where to find about upcoming changes.  What's the future guidance  ?  use maven coordinates for jars or download jars into DBFS? &lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 22:24:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33309#M24330</guid>
      <dc:creator>prasadvaze</dc:creator>
      <dc:date>2021-12-14T22:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33310#M24331</link>
      <description>&lt;P&gt;yes @Kaniz Fatma​&amp;nbsp;  but I have follow up question in this thread.&lt;/P&gt;&lt;P&gt;Thanks Prabhakar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 22:24:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33310#M24331</guid>
      <dc:creator>prasadvaze</dc:creator>
      <dc:date>2021-12-14T22:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL endpoint is unable to connect to external hive metastore ( Azure databricks)</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33311#M24332</link>
      <description>&lt;P&gt;@Prabakar Ammeappin​&amp;nbsp; @Kaniz Fatma​&amp;nbsp; Also I found out that after delta table is created in external metastore (and the table data resides in ADLS) then in the  sql end point settings I do not need to provide ADLS connection details.   I only provided metastore connection details and sql endpoint was able to query the delta table.   It is because metastore table stores  the ADLS data folder name and path of delta table ( I have yet to find out the exact table in metastore that stores delta table's ADLS folder location , if you know this then pls let me know) &lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 03:37:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-endpoint-is-unable-to-connect-to-external-hive-metastore/m-p/33311#M24332</guid>
      <dc:creator>prasadvaze</dc:creator>
      <dc:date>2021-12-20T03:37:52Z</dc:date>
    </item>
  </channel>
</rss>

