<?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>question Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/384833#M245506</link>
    <description>&lt;P&gt;Hello everyone. I need some help.&lt;/P&gt;&lt;P&gt;I am currently working on a Proof of Concept (POC) for building a platform for a client, which is why I am unable to open a case and am asking my question here in this community.&lt;/P&gt;&lt;P&gt;We are using spark3 and kudu, and there seems to be a problem. MIT Kerberos is set up, and I'm working in a CM7.10.1, CDP7.1.7sp2 environment.&lt;/P&gt;&lt;P&gt;It's a Spark On YARN environment, and I'm executing commands like this:&lt;/P&gt;&lt;DIV class="sc-fPgHrj deUvXm"&gt;&lt;DIV class="sc-gEvEer sc-jJcwTH jLCDa-D hrFkHc"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;spark-submit --master yarn --deploy-mode cluster \&lt;/SPAN&gt;--keytab /etc/security/keytabs/user1.keytab \
--principal user1@example.com \
&lt;SPAN&gt;--jars /opt/cloudera/parcels/CDH/lib/kudu/kudu-spark3_2&lt;/SPAN&gt;&lt;SPAN&gt;.12&lt;/SPAN&gt;&lt;SPAN&gt;.jar \&lt;/SPAN&gt;....&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The spark application runs normally on YARN and operates, but an error occurs when the Kerberos ticket is renewed after 7 days. Since the spark application restarts once by default, I think it will be completely killed after 14 days, but for now, it's still running after restarting.&lt;/P&gt;&lt;H5&gt;Spark error&lt;/H5&gt;&lt;PRE&gt;org.apache.kudu.client.NonRecoverableException: cannot re-acquire authentication token after 5 attempts (couldn't find a valid master in (m01.example.com:7051, m02.example.com:7051, m03.example.com:7051) exception&lt;/PRE&gt;&lt;H5&gt;Kudu master warning&lt;/H5&gt;&lt;PRE&gt;Unauthorized connection attempt: Server Connection negotiation failed: Server connection from 123.123.123.123:42026: token expired. &lt;BR /&gt;&lt;BR /&gt;Failed RPC negotiation trace: {&lt;BR /&gt;.....&lt;BR /&gt;&lt;SPAN&gt;Negotiation complete: network error: Server connection negotiation failed: Server connection &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;123.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;42026&lt;/SPAN&gt;&lt;SPAN&gt;: BlockingRecv error: recv &lt;/SPAN&gt;&lt;SPAN&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; EOF &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;123.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;42026&lt;/SPAN&gt;&lt;SPAN&gt; (error &lt;/SPAN&gt;&lt;SPAN&gt;108&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see any warnings or issues in the krb5kdc.log. It seems like the related error was resolved in Apache Kudu version 1.5, but I am using CDP7.1.7sp2, Apache kudu 1.15 version. Please help me. Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 13:08:00 GMT</pubDate>
    <dc:creator>yjbyun</dc:creator>
    <dc:date>2024-03-11T13:08:00Z</dc:date>
    <item>
      <title>Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/384833#M245506</link>
      <description>&lt;P&gt;Hello everyone. I need some help.&lt;/P&gt;&lt;P&gt;I am currently working on a Proof of Concept (POC) for building a platform for a client, which is why I am unable to open a case and am asking my question here in this community.&lt;/P&gt;&lt;P&gt;We are using spark3 and kudu, and there seems to be a problem. MIT Kerberos is set up, and I'm working in a CM7.10.1, CDP7.1.7sp2 environment.&lt;/P&gt;&lt;P&gt;It's a Spark On YARN environment, and I'm executing commands like this:&lt;/P&gt;&lt;DIV class="sc-fPgHrj deUvXm"&gt;&lt;DIV class="sc-gEvEer sc-jJcwTH jLCDa-D hrFkHc"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;spark-submit --master yarn --deploy-mode cluster \&lt;/SPAN&gt;--keytab /etc/security/keytabs/user1.keytab \
--principal user1@example.com \
&lt;SPAN&gt;--jars /opt/cloudera/parcels/CDH/lib/kudu/kudu-spark3_2&lt;/SPAN&gt;&lt;SPAN&gt;.12&lt;/SPAN&gt;&lt;SPAN&gt;.jar \&lt;/SPAN&gt;....&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The spark application runs normally on YARN and operates, but an error occurs when the Kerberos ticket is renewed after 7 days. Since the spark application restarts once by default, I think it will be completely killed after 14 days, but for now, it's still running after restarting.&lt;/P&gt;&lt;H5&gt;Spark error&lt;/H5&gt;&lt;PRE&gt;org.apache.kudu.client.NonRecoverableException: cannot re-acquire authentication token after 5 attempts (couldn't find a valid master in (m01.example.com:7051, m02.example.com:7051, m03.example.com:7051) exception&lt;/PRE&gt;&lt;H5&gt;Kudu master warning&lt;/H5&gt;&lt;PRE&gt;Unauthorized connection attempt: Server Connection negotiation failed: Server connection from 123.123.123.123:42026: token expired. &lt;BR /&gt;&lt;BR /&gt;Failed RPC negotiation trace: {&lt;BR /&gt;.....&lt;BR /&gt;&lt;SPAN&gt;Negotiation complete: network error: Server connection negotiation failed: Server connection &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;123.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;42026&lt;/SPAN&gt;&lt;SPAN&gt;: BlockingRecv error: recv &lt;/SPAN&gt;&lt;SPAN&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; EOF &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;123.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;.123&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;42026&lt;/SPAN&gt;&lt;SPAN&gt; (error &lt;/SPAN&gt;&lt;SPAN&gt;108&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see any warnings or issues in the krb5kdc.log. It seems like the related error was resolved in Apache Kudu version 1.5, but I am using CDP7.1.7sp2, Apache kudu 1.15 version. Please help me. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 13:08:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/384833#M245506</guid>
      <dc:creator>yjbyun</dc:creator>
      <dc:date>2024-03-11T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/384858#M245522</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/94389"&gt;@yjbyun&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Spark experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22324"&gt;@Bharati&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67146"&gt;@jagadeesan&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:04:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/384858#M245522</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-03-11T20:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/405279#M252442</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have exactly the same issue with our structured streaming jobs. We are trying to consume data from Kafka and write it to the Kudu, but when the job exceed 7 days we are getting same errors.&amp;nbsp; Did someone find solution for this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 10:54:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/405279#M252442</guid>
      <dc:creator>jaris</dc:creator>
      <dc:date>2025-04-02T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/405642#M252495</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22324"&gt;@Bharati&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67146"&gt;@jagadeesan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/40384"&gt;@smdas&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28743"&gt;@Gopinath&lt;/a&gt;&amp;nbsp;Hi! Do youhave some insights here? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 20:32:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/405642#M252495</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2025-04-07T20:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/405700#M252504</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This looks to be due to a known issue we have in Kudu "KUDU-2679" which is unresolved, the best option available is to increase the length of time during which the auth tokens are valid. There is a property for this, and I recommend increasing its value from the default of 7 days up to 90 days (which you can later reduce to the expected timeframe of these jobs running if needed). You will also need to unlock experimental properties if you have not already. CM &amp;gt; Kudu &amp;gt; Configuration &amp;gt; Kudu Master Advanced Configuration Snippet (Safety Valve) for gflagfile: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--unlock_experimental_flags &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--authn_token_validity_seconds=7776000&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 17:25:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/405700#M252504</guid>
      <dc:creator>rsanchez</dc:creator>
      <dc:date>2025-04-08T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos-Enabled Cluster: Spark and Kudu Ticket Renewal Issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/406483#M252543</link>
      <description>&lt;P&gt;Thanks for sharing this workaround &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95096"&gt;@rsanchez&lt;/a&gt;&amp;nbsp;. In the docs we found that is not recommended to use experimental flags, but at this moment seems no other solution is available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering why there isn't possibility to use JAAS configuration to authenticate against Kudu with Spark, as it is with Java client for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 10:49:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-Enabled-Cluster-Spark-and-Kudu-Ticket-Renewal-Issue/m-p/406483#M252543</guid>
      <dc:creator>jaris</dc:creator>
      <dc:date>2025-04-16T10:49:58Z</dc:date>
    </item>
  </channel>
</rss>

