<?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: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173740#M58057</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything is from Spark-SQL only.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Mar 2017 01:01:50 GMT</pubDate>
    <dc:creator>bandarusridhar1</dc:creator>
    <dc:date>2017-03-25T01:01:50Z</dc:date>
    <item>
      <title>In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173738#M58055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With the Spark-SQL shell, kicking it off with settings along the lines of:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/spark-client/bin/spark-sql --master yarn-client --queue abc --num-executors 5 --executor-memory 10g --executor-cores 10 &lt;/PRE&gt;Running the following command to create the table with minimal configuration: &lt;PRE&gt;create table [DB].[table_name] stored as orc as select…. &lt;/PRE&gt;&lt;P&gt;Running into errors when attempting to grant select access to others for the table created in SQL Standard Authorization. Looking into it, notice:&lt;/P&gt;&lt;P&gt; Spark created table: owner: username@realm &lt;/P&gt;&lt;P&gt;Any regular Hive created table: owner: username&lt;/P&gt;&lt;P&gt;While using create table t1 as select from another table, the table t1 has owner name with the realm name included. Simple create table t1 without selecting from another table is working fine.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 22:32:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173738#M58055</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-03-24T22:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173739#M58056</link>
      <description>&lt;P&gt;Is all the interaction from Spark shell or are you using HS2 beeline in the picture as well?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 00:06:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173739#M58056</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2017-03-25T00:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173740#M58057</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything is from Spark-SQL only.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 01:01:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173740#M58057</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-03-25T01:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173741#M58058</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;&lt;A href="https://community.hortonworks.com/questions/90882/in-spark-sql-create-table-t1-as-select-from-anothe.html#"&gt;@Deepesh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Anyways this issue is confirmed as the bug, which is going to get fixed in Spark 2.1.+. Posted , so that someone can refer for future instead of spending their time.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 01:04:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173741#M58058</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-03-25T01:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173742#M58059</link>
      <description>&lt;P&gt;Can you post the Spark JIRA so that others know which issue is tracking this?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 03:29:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173742#M58059</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2017-03-25T03:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173743#M58060</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://issues.apache.org/jira/browse/SPARK-19970" target="_blank"&gt;https://issues.apache.org/jira/browse/SPARK-19970&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 04:23:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173743#M58060</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-03-29T04:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: In Spark-SQL create table t1 as select from another table, the table t1 has owner name with the realm name included</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173744#M58061</link>
      <description>&lt;P&gt;Unfortunately, spark is limited in terms of sqlstandard authorization. 
Spark isn't designed to work with hive sqlstandard authorizations due to which creating a table isn't creating default grants. &lt;/P&gt;&lt;P&gt;Here are two related JIRA's that mention the same.&lt;/P&gt;&lt;P&gt; 
&lt;A href="https://issues.apache.org/jira/browse/SPARK-8321"&gt;https://issues.apache.org/jira/browse/SPARK-8321&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/SPARK-8321"&gt;&lt;/A&gt;&lt;A href="https://issues.apache.org/jira/browse/SPARK-12008"&gt;https://issues.apache.org/jira/browse/SPARK-12008&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may create the necessary grants after table creation or 
Rely on storage based authorization i.e hdfs permissions for authorizations or 
use Ranger for hive authorizations . &lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 03:14:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Spark-SQL-create-table-t1-as-select-from-another-table/m-p/173744#M58061</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-06-03T03:14:15Z</dc:date>
    </item>
  </channel>
</rss>

