<?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 Re: Spark History Server kerberos error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23412#M4288</link>
    <description>&lt;P&gt;petibonvm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also had this issue in CDH 5.1.x.&amp;nbsp; My advice would be to upgrade to CM/CDH 5.3 and use Spark on YARN.&amp;nbsp; If that is not currently possible, the following work around is posted in the &lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-1-x/Cloudera-Manager-Release-Notes/cm5rn_known_issues.html"&gt;CM 5.1.x Release Notes&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;The Spark History Server does not start when Kerberos authentication is enabled.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="body conbody"&gt;&lt;P class="p"&gt;The Spark History Server does not start when managed by a Cloudera Manager 5.1 instance when Kerberos authentication is enabled.&lt;/P&gt;&lt;DIV class="p"&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;OL&gt;&lt;LI&gt;Go to the Spark service.&lt;/LI&gt;&lt;LI&gt;Expand the &lt;SPAN class="ph menucascade"&gt;&lt;SPAN class="ph uicontrol"&gt;History Server Default Group&lt;/SPAN&gt; &amp;gt; &lt;SPAN class="ph uicontrol"&gt;Advanced&lt;/SPAN&gt;&lt;/SPAN&gt; category.&lt;/LI&gt;&lt;LI&gt;Add the following configuration to the &lt;STRONG&gt;History Server Environment Advanced Configuration Snippet&lt;/STRONG&gt; property:&lt;PRE&gt;SPARK_HISTORY_OPTS=-Dspark.history.kerberos.enabled=true \
-Dspark.history.kerberos.principal=&lt;EM&gt;principal&lt;/EM&gt; \
-Dspark.history.kerberos.keytab=&lt;EM&gt;keytab&lt;/EM&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;where &lt;EM&gt;principal&lt;/EM&gt; is the name of the Kerberos principal to use for the History Server, and &lt;EM&gt;keytab&lt;/EM&gt; is the path to the principal's keytab file on the local filesystem of the host running the History Server.&lt;/DIV&gt;&lt;DIV class="p"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p"&gt;Regards,&lt;/DIV&gt;&lt;DIV class="p"&gt;Chad&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 07 Jan 2015 23:29:05 GMT</pubDate>
    <dc:creator>CZezula</dc:creator>
    <dc:date>2015-01-07T23:29:05Z</dc:date>
    <item>
      <title>Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23095#M4283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since kerberos is activated, spark history server doesn't start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;9:33:47.771 AM&lt;/TD&gt;&lt;TD&gt;WARN&lt;/TD&gt;&lt;TD&gt;org.apache.hadoop.ipc.Client&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate ailed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9:33:47.771 AM&lt;/TD&gt;&lt;TD&gt;WARN&lt;/TD&gt;&lt;TD&gt;org.apache.hadoop.security.UserGroupInformation&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;PriviledgedActionException as:spark (auth:KERBEROS) cause:java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All other services are OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone has already had the same error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:16:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23095#M4283</guid>
      <dc:creator>petibonvm</dc:creator>
      <dc:date>2022-09-16T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23153#M4284</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you using spark on yarn or standalone spark? Note that standalone spark doesn't work with Kerberos.&lt;BR /&gt;&lt;BR /&gt;Which version of CM are you using? Which version of CDH?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darren</description>
      <pubDate>Mon, 29 Dec 2014 23:05:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23153#M4284</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2014-12-29T23:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23294#M4285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CDH 5.1.2 is used, so we have only one version of spark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 09:32:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23294#M4285</guid>
      <dc:creator>petibonvm</dc:creator>
      <dc:date>2015-01-05T09:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23315#M4286</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Your CDH version is 5.1.2. What is the Cloudera Manager version? Note that these can be different numbers.&lt;BR /&gt;&lt;BR /&gt;Cloudera Manager allows you to add either Spark on YARN and Standalone Spark. These aren't different versions of the Spark binaries, they're different ways to deploy spark. In Cloudera Manager, these two are different service types. Which service type did you install? If you aren't sure which you are using, look at the Instances tab for your spark service. If you have any Master or Worker roles, then you're using Standalone Spark.&lt;BR /&gt;&lt;BR /&gt;Are you using Spark on YARN or Standalone Spark?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darren</description>
      <pubDate>Mon, 05 Jan 2015 19:40:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23315#M4286</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2015-01-05T19:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23334#M4287</link>
      <description>&lt;P&gt;Hi Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My CM is 5.1.2 and i'm using Standalone spark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 05:24:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23334#M4287</guid>
      <dc:creator>petibonvm</dc:creator>
      <dc:date>2015-01-06T05:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23412#M4288</link>
      <description>&lt;P&gt;petibonvm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also had this issue in CDH 5.1.x.&amp;nbsp; My advice would be to upgrade to CM/CDH 5.3 and use Spark on YARN.&amp;nbsp; If that is not currently possible, the following work around is posted in the &lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v5-1-x/Cloudera-Manager-Release-Notes/cm5rn_known_issues.html"&gt;CM 5.1.x Release Notes&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;The Spark History Server does not start when Kerberos authentication is enabled.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="body conbody"&gt;&lt;P class="p"&gt;The Spark History Server does not start when managed by a Cloudera Manager 5.1 instance when Kerberos authentication is enabled.&lt;/P&gt;&lt;DIV class="p"&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;OL&gt;&lt;LI&gt;Go to the Spark service.&lt;/LI&gt;&lt;LI&gt;Expand the &lt;SPAN class="ph menucascade"&gt;&lt;SPAN class="ph uicontrol"&gt;History Server Default Group&lt;/SPAN&gt; &amp;gt; &lt;SPAN class="ph uicontrol"&gt;Advanced&lt;/SPAN&gt;&lt;/SPAN&gt; category.&lt;/LI&gt;&lt;LI&gt;Add the following configuration to the &lt;STRONG&gt;History Server Environment Advanced Configuration Snippet&lt;/STRONG&gt; property:&lt;PRE&gt;SPARK_HISTORY_OPTS=-Dspark.history.kerberos.enabled=true \
-Dspark.history.kerberos.principal=&lt;EM&gt;principal&lt;/EM&gt; \
-Dspark.history.kerberos.keytab=&lt;EM&gt;keytab&lt;/EM&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;where &lt;EM&gt;principal&lt;/EM&gt; is the name of the Kerberos principal to use for the History Server, and &lt;EM&gt;keytab&lt;/EM&gt; is the path to the principal's keytab file on the local filesystem of the host running the History Server.&lt;/DIV&gt;&lt;DIV class="p"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p"&gt;Regards,&lt;/DIV&gt;&lt;DIV class="p"&gt;Chad&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jan 2015 23:29:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23412#M4288</guid>
      <dc:creator>CZezula</dc:creator>
      <dc:date>2015-01-07T23:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spark History Server kerberos error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23453#M4289</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have upgraded into CDH 5.3 and spark history server (via yarn) was successfully started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:51:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-History-Server-kerberos-error/m-p/23453#M4289</guid>
      <dc:creator>petibonvm</dc:creator>
      <dc:date>2015-01-08T14:51:05Z</dc:date>
    </item>
  </channel>
</rss>

