<?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: Unable to submit spark jobs from Data Nodes after enabling kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-submit-spark-jobs-from-Data-Nodes-after-enabling/m-p/185767#M147874</link>
    <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/20222/pmalla.html" nodeid="20222"&gt;@Paramesh malla&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You need to run the kinit command before running the job. For example, to do kinit with spark keyta, follow below steps&lt;/P&gt;&lt;P&gt;1) Get the principal&lt;/P&gt;&lt;PRE&gt;klist -kt /etc/security/keytabs/spark.headless.keytab&lt;/PRE&gt;&lt;P&gt;2) Do kinit&lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/security/keytabs/spark.headless.keytab &amp;lt;principal-from-1st-command&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Run the job after running the kinit command and it should not give "Invalid credentials, no valid tgt found.". Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please "Accept" the answer if this helps.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;-Aditya&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 00:24:48 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2018-07-18T00:24:48Z</dc:date>
    <item>
      <title>Unable to submit spark jobs from Data Nodes after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-submit-spark-jobs-from-Data-Nodes-after-enabling/m-p/185766#M147873</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have enabled kerberos on my cluster. followed below steps.&lt;/P&gt;&lt;P&gt;1) Installed kerberos in one node which can be accessible from all cluster nodes.&lt;/P&gt;&lt;P&gt;2) Enabled kerberos from Ambari by giving details of previously created kerberos server. &lt;/P&gt;&lt;P&gt;Every thing went fine. But when i try to run spark-submit (word count spark job) from any of data node i am getting below error.&lt;/P&gt;&lt;P&gt;"Invalid credentials, no valid tgt found."&lt;/P&gt;&lt;P&gt;I tried with all users, hdfs, spark and Yarn (sudo -u hdfs) etc. but no luck. &lt;/P&gt;&lt;P&gt;But when i run the same from master node the job is getting executed. &lt;/P&gt;&lt;P&gt;What should i do to be able to run spark/hive/any other jobs from any of the data node/edge node?&lt;/P&gt;&lt;P&gt;Please advice. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 22:51:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-submit-spark-jobs-from-Data-Nodes-after-enabling/m-p/185766#M147873</guid>
      <dc:creator>pmalla</dc:creator>
      <dc:date>2018-07-17T22:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to submit spark jobs from Data Nodes after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-submit-spark-jobs-from-Data-Nodes-after-enabling/m-p/185767#M147874</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/20222/pmalla.html" nodeid="20222"&gt;@Paramesh malla&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You need to run the kinit command before running the job. For example, to do kinit with spark keyta, follow below steps&lt;/P&gt;&lt;P&gt;1) Get the principal&lt;/P&gt;&lt;PRE&gt;klist -kt /etc/security/keytabs/spark.headless.keytab&lt;/PRE&gt;&lt;P&gt;2) Do kinit&lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/security/keytabs/spark.headless.keytab &amp;lt;principal-from-1st-command&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Run the job after running the kinit command and it should not give "Invalid credentials, no valid tgt found.". Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please "Accept" the answer if this helps.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;-Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 00:24:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-submit-spark-jobs-from-Data-Nodes-after-enabling/m-p/185767#M147874</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-07-18T00:24:48Z</dc:date>
    </item>
  </channel>
</rss>

