<?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: User impersonation in Apache Spark2 Thrift Server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216382#M63672</link>
    <description>&lt;P&gt;Do we have any updates on this . I am seeing the same behaviour on HDP 2.6.5 also.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 22:10:45 GMT</pubDate>
    <dc:creator>lawang_mishra</dc:creator>
    <dc:date>2018-07-11T22:10:45Z</dc:date>
    <item>
      <title>User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216377#M63667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On HDP 2.6, I have configured Spark Thrift Server for Spark 1.6.x based on &lt;A target="_blank" href="https://community.hortonworks.com/articles/101418/user-impersonation-in-apache-spark-16-thrift-serve.html" rel="nofollow noopener noreferrer"&gt;community wiki&lt;/A&gt; with which I see the queries are executed as the end user, User when connects to Spark Thrift Server for Spark-1, using beeline, I see a new instance of the process getting listed under Resource Manager with end user ( YARN Process runs as end user)&lt;/P&gt;&lt;P&gt;Now I am trying to configure Spark2 Thrift Server, following the &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_spark-component-guide/content/config-sts-user-imp.html" rel="nofollow noopener noreferrer"&gt;official documentation&lt;/A&gt; .&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Added hive.server2.enable.doAs=true&lt;/LI&gt;&lt;LI&gt;Added spark.jars to classpath (dataNucleus jars)&lt;/LI&gt;&lt;LI&gt;Set the spark.master to local&lt;/LI&gt;&lt;LI&gt;Restarted Spark2 Thrift Server&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In my understanding Now,&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Queries should run as "end user" (Queries are still running as hive user)&lt;/LI&gt;&lt;LI&gt;Spark2 Thrift Server when connected with spark.master=local, should be listed under Resource Manager UI with "end user" ( I do not see it listed now)&lt;/LI&gt;&lt;LI&gt;When all the JDBC connections to STS are closed, STS application should disappear. As the STS is started in local mode and for each user/connection if not shred, queries are executed by the Spark Application Master launched on behalf of the end user.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Above all are not respected in Spark2 Thrift Server ( But with impersonation support in Spark-1 Thrift Server, above all three are working as expected).&lt;/P&gt;&lt;P&gt;Attaching the screenshots for anomalies. &lt;/P&gt;&lt;P&gt;I am not sure if I missed something here.&lt;/P&gt;&lt;P&gt;1 Queries still run as Hive.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17505-1-queries-run-as-hive.png" style="width: 1119px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16237iDD340429FB38F2F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17505-1-queries-run-as-hive.png" alt="17505-1-queries-run-as-hive.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. STS is not listed under Resource Manager&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17506-2-sts-not-listed-in-rm.png" style="width: 1619px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16238i127F69B175216588/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17506-2-sts-not-listed-in-rm.png" alt="17506-2-sts-not-listed-in-rm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Spark2 Thrift Server Still Runs As Hive User&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17507-sts-runs-as-hive-user.png" style="width: 1479px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16239i1850AEF471EAF0FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17507-sts-runs-as-hive-user.png" alt="17507-sts-runs-as-hive-user.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;&lt;P&gt;Any inputs? &lt;A rel="user" href="https://community.cloudera.com/users/145/cdraper.html" nodeid="145" target="_blank"&gt;@cdraper&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369" target="_blank"&gt;@amcbarnett&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/214/agillan.html" nodeid="214" target="_blank"&gt;@Ana Gillan&lt;/A&gt; ?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:09:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216377#M63667</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2019-08-18T03:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216378#M63668</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt;&lt;P&gt;Impersonation in Spark2 thrift is not supported yet. This could probably come in future releases. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 02:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216378#M63668</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2017-06-30T02:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216379#M63669</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10159/snemuri.html" nodeid="10159"&gt;@Sandeep Nemuri&lt;/A&gt;Thank you for the confirmation. When do we expect this fix?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:32:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216379#M63669</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2017-06-30T17:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216380#M63670</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; As of now there are no timelines. Keep an eye on future releases.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:38:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216380#M63670</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2017-06-30T17:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216381#M63671</link>
      <description>&lt;P&gt;Still not working with up to Version HDP 2.6.4.... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;         Any updates about this? Unfortunatelly there are many Spark Jira's open related to this topics. For example this one: &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/SPARK-21918" target="_blank"&gt;https://issues.apache.org/jira/browse/SPARK-21918&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards, Tom&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:39:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216381#M63671</guid>
      <dc:creator>Tom80</dc:creator>
      <dc:date>2018-06-26T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216382#M63672</link>
      <description>&lt;P&gt;Do we have any updates on this . I am seeing the same behaviour on HDP 2.6.5 also.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 22:10:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216382#M63672</guid>
      <dc:creator>lawang_mishra</dc:creator>
      <dc:date>2018-07-11T22:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216383#M63673</link>
      <description>&lt;P&gt;Any updates? please&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:57:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/216383#M63673</guid>
      <dc:creator>pkasinathan</dc:creator>
      <dc:date>2018-11-30T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/278141#M63674</link>
      <description>&lt;P&gt;I am using HDP 3.1.0 still facing issue with Spark2 Thrift server user impersonation any update on this?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:41:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/278141#M63674</guid>
      <dc:creator>Ashfaque79</dc:creator>
      <dc:date>2019-09-24T09:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: User impersonation in Apache Spark2 Thrift Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/336264#M63675</link>
      <description>&lt;P&gt;apache kyuubi is good work&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 03:00:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/User-impersonation-in-Apache-Spark2-Thrift-Server/m-p/336264#M63675</guid>
      <dc:creator>just-a-little</dc:creator>
      <dc:date>2022-02-15T03:00:35Z</dc:date>
    </item>
  </channel>
</rss>

