<?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>article Talend Spark Stream Kerberos enabled Job not working with error IllegalStateException: Expected SaslMessage not have SASL enabled in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Talend-Spark-Stream-Kerberos-enabled-Job-not-working-with-error/ta-p/2524112</link>
    <description>&lt;P&gt;A Talend Spark Stream Job configured with Yarn cluster mode and Kerberos enabled is encountering issues and failing to execute, presenting the following errors:&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;YarnClusterScheduler- Lost executor 3 on me-worker1.xxx.co.id: Unable to create executor due to Unable to register with external shuffle server due to : java.lang.IllegalStateException: Expected SaslMessage, received something else (maybe your client does not have SASL enabled?)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;jaas.conf content =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Client {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.sun.security.auth.module.Krb5LoginModule required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;useKeyTab=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;keyTab="/tmp/adm.keytab"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;principal="cld_adm@XXX.CO.ID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doNotPrompt=true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KafkaClient {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.sun.security.auth.module.Krb5LoginModule required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;useKeyTab=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;keyTab="/tmp/adm.keytab"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;principal="cld_adm@XXX.CO.ID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doNotPrompt=true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The external shuffle service within YARN is configured to mandate SASL authentication; however, the Spark executor is either improperly configured to use SASL or is transmitting an incompatible message.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Common causes includes: &lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;The absence or inaccuracy of SASL configuration in either spark-defaults.conf or YARN's configuration file (yarn-site.xml). &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A version discrepancy between Spark and YARN, where the shuffle service necessitates a particular SASL protocol unsupported by the Spark client. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Improper security configurations, including the omission of Kerberos credentials or incorrect settings for spark.authenticate and associated properties.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;This error results in the executor's failure to register with the shuffle service, prompting the YarnClusterScheduler to mark it as lost.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Ensure that the external shuffle service is enabled, and that the SASL settings are in accordance with YARN's configurations:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;spark.authenticate true
( #not necessary 
spark.network.crypto.enabled true
spark.network.crypto.saslFallback true
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Talend Data Integration" id="qlik_TalendDataIntegration"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 15 Jul 2025 01:38:21 GMT</pubDate>
    <dc:creator>wei_guo</dc:creator>
    <dc:date>2025-07-15T01:38:21Z</dc:date>
    <item>
      <title>Talend Spark Stream Kerberos enabled Job not working with error IllegalStateException: Expected SaslMessage not have SASL enabled</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Talend-Spark-Stream-Kerberos-enabled-Job-not-working-with-error/ta-p/2524112</link>
      <description>&lt;P&gt;A Talend Spark Stream Job configured with Yarn cluster mode and Kerberos enabled is encountering issues and failing to execute, presenting the following errors:&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;YarnClusterScheduler- Lost executor 3 on me-worker1.xxx.co.id: Unable to create executor due to Unable to register with external shuffle server due to : java.lang.IllegalStateException: Expected SaslMessage, received something else (maybe your client does not have SASL enabled?)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;jaas.conf content =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Client {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.sun.security.auth.module.Krb5LoginModule required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;useKeyTab=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;keyTab="/tmp/adm.keytab"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;principal="cld_adm@XXX.CO.ID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doNotPrompt=true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KafkaClient {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.sun.security.auth.module.Krb5LoginModule required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;useKeyTab=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;keyTab="/tmp/adm.keytab"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;principal="cld_adm@XXX.CO.ID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doNotPrompt=true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The external shuffle service within YARN is configured to mandate SASL authentication; however, the Spark executor is either improperly configured to use SASL or is transmitting an incompatible message.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Common causes includes: &lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;The absence or inaccuracy of SASL configuration in either spark-defaults.conf or YARN's configuration file (yarn-site.xml). &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A version discrepancy between Spark and YARN, where the shuffle service necessitates a particular SASL protocol unsupported by the Spark client. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Improper security configurations, including the omission of Kerberos credentials or incorrect settings for spark.authenticate and associated properties.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;This error results in the executor's failure to register with the shuffle service, prompting the YarnClusterScheduler to mark it as lost.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Ensure that the external shuffle service is enabled, and that the SASL settings are in accordance with YARN's configurations:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;spark.authenticate true
( #not necessary 
spark.network.crypto.enabled true
spark.network.crypto.saslFallback true
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Talend Data Integration" id="qlik_TalendDataIntegration"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 15 Jul 2025 01:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Talend-Spark-Stream-Kerberos-enabled-Job-not-working-with-error/ta-p/2524112</guid>
      <dc:creator>wei_guo</dc:creator>
      <dc:date>2025-07-15T01:38:21Z</dc:date>
    </item>
  </channel>
</rss>

