<?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: JDBC Driver cannot connect when using TokenCachePassPhrase property in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117286#M9905</link>
    <description>&lt;P&gt;The &lt;STRONG&gt;TokenCachePassPhrase&lt;/STRONG&gt; property is meant to secure tokens when using the token cache feature of the Databricks JDBC driver. This passphrase serves as an encryption key for storing the tokens securely in the cache.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="_1jeaq5e0 _1t7bu9h9 heading4"&gt;General Guidelines for Setting TokenCachePassPhrase:&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;This property should be set to a passphrase that you and your organization control, similar to a password.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Ensure that the same passphrase is consistently used for all connections that leverage the token cache.&lt;/LI&gt;
&lt;LI&gt;Ideally, pick a strong passphrase and do not expose it unnecessarily.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2025 04:32:08 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2025-05-01T04:32:08Z</dc:date>
    <item>
      <title>JDBC Driver cannot connect when using TokenCachePassPhrase property</title>
      <link>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117003#M9898</link>
      <description>&lt;P&gt;Hello all, I'm looking for suggestions on enabling the token cache when using browser based SSO login. I'm following the instructions found here:&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/assets/files/Databricks-JDBC-Driver-Install-and-Configuration-Guide-c0612566d2798385778d33e87581fb7b.pdf" target="_self"&gt;Databricks-JDBC-Driver-Install-and-Configuration-Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my users, I would like to enable the token cache as it provides a more seamless experience. The driver documentation suggests setting the&amp;nbsp;&lt;STRONG&gt;TokenCachePassPhrase&amp;nbsp;&lt;/STRONG&gt;property, but does not elaborate on where I can obtain such a value. So, I created my JDBC connection string like this.&lt;/P&gt;&lt;PRE&gt;jdbc:databricks://my.prefix.databricks.com:443/default;transportMode=http;ssl=1;AuthMech=11;Auth_Flow=2;&lt;BR /&gt;httpPath=/sql/1.0/warehouses/&amp;lt;WAREHOUSE_ID&amp;gt;;UseProxy=1;ProxyHost=&amp;lt;PROXY_HOST&amp;gt;;ProxyPort=&amp;lt;PROXY_PORT&amp;gt;;&lt;BR /&gt;TokenCachePassPhrase=cache;PWD=cache;EnableTokenCache=1;&lt;/PRE&gt;&lt;P&gt;However, the driver returns this following exception. When the&amp;nbsp;&lt;STRONG&gt;EnableTokenCache&amp;nbsp;&lt;/STRONG&gt;is set to 0, it connects successfully.&lt;/P&gt;&lt;PRE&gt;[Databricks][JDBCDriver](500151) Error setting/closing session: Cannot invoke "java.nio.file.attribute.AclFileAttributeView.setAcl(java.util.List)" because "&amp;lt;local6&amp;gt;" is null .&lt;BR /&gt;Cannot invoke "java.nio.file.attribute.AclFileAttributeView.setAcl(java.util.List)" because "&amp;lt;local6&amp;gt;" is null &lt;/PRE&gt;&lt;P&gt;So, can anyone elaborate on what this&amp;nbsp;&lt;STRONG&gt;TokenCachePassPhrase&amp;nbsp;&lt;/STRONG&gt;property should be set to? Is it an arbitrary value or a secret known to an administrator? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 16:09:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117003#M9898</guid>
      <dc:creator>adrianojsoares1</dc:creator>
      <dc:date>2025-04-29T16:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Driver cannot connect when using TokenCachePassPhrase property</title>
      <link>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117286#M9905</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;TokenCachePassPhrase&lt;/STRONG&gt; property is meant to secure tokens when using the token cache feature of the Databricks JDBC driver. This passphrase serves as an encryption key for storing the tokens securely in the cache.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="_1jeaq5e0 _1t7bu9h9 heading4"&gt;General Guidelines for Setting TokenCachePassPhrase:&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;This property should be set to a passphrase that you and your organization control, similar to a password.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Ensure that the same passphrase is consistently used for all connections that leverage the token cache.&lt;/LI&gt;
&lt;LI&gt;Ideally, pick a strong passphrase and do not expose it unnecessarily.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 04:32:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117286#M9905</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-05-01T04:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Driver cannot connect when using TokenCachePassPhrase property</title>
      <link>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117287#M9906</link>
      <description>&lt;P&gt;For the error encountered (&lt;CODE&gt;Cannot invoke "java.nio.file.attribute.AclFileAttributeView.setAcl(...)" because "&amp;lt;local6&amp;gt;" is null&lt;/CODE&gt;)&amp;nbsp; might be permission or file system issues where the token cache store is being accessed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When &lt;CODE&gt;EnableTokenCache=0&lt;/CODE&gt;, the token cache is disabled, which explains why the connection succeeds without issues.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 04:33:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/jdbc-driver-cannot-connect-when-using-tokencachepassphrase/m-p/117287#M9906</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-05-01T04:33:42Z</dc:date>
    </item>
  </channel>
</rss>

