<?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 Can you create a hive table in ORC Format from SparkSQL directly in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112968#M30301</link>
    <description>&lt;P&gt;I've done so with a sqlContext.sql  ("create table...") then a sqlContext.sql("insert into")&lt;/P&gt;&lt;P&gt;but a dataframe.write.orc will produce an ORC file that cannot be seen as hive.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;What are all the ways to work with ORC from Spark?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 02:50:41 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2016-06-01T02:50:41Z</dc:date>
    <item>
      <title>Can you create a hive table in ORC Format from SparkSQL directly</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112968#M30301</link>
      <description>&lt;P&gt;I've done so with a sqlContext.sql  ("create table...") then a sqlContext.sql("insert into")&lt;/P&gt;&lt;P&gt;but a dataframe.write.orc will produce an ORC file that cannot be seen as hive.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;What are all the ways to work with ORC from Spark?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 02:50:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112968#M30301</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-06-01T02:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hive table in ORC Format from SparkSQL directly</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112969#M30302</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9304/tspann.html" nodeid="9304"&gt;@Timothy Spann&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you tried with this syntax?&lt;/P&gt;&lt;PRE&gt;var Rddtb= objHiveContext.sql("select * from sample")
val dfTable = Rddtb.toDF()
dfTable.write.format("orc").mode(SaveMode.Overwrite).saveAsTable("db1.test1")&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 02:56:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112969#M30302</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-01T02:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hive table in ORC Format from SparkSQL directly</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112970#M30303</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;   that worked for me in zeppelin and the data looks good.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 03:21:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112970#M30303</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-06-01T03:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hive table in ORC Format from SparkSQL directly</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112971#M30304</link>
      <description>&lt;P&gt;Answer to your Question "What are all the ways to work with ORC from Spark?"&lt;/P&gt;&lt;P&gt;I am using spark-sql and have created ORC table as well as other formats and found no issue.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:49:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112971#M30304</guid>
      <dc:creator>mkumar13</dc:creator>
      <dc:date>2016-06-08T15:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you create a hive table in ORC Format from SparkSQL directly</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112972#M30305</link>
      <description>&lt;P&gt;The &lt;EM&gt;Optimized Row Columnar&lt;/EM&gt; (ORC) file format provides a highly efficient way to store Hive data.&lt;/P&gt;&lt;P&gt;It just like a File to store group of rows called &lt;STRONG&gt;stripes&lt;/STRONG&gt;, along with auxiliary information in a &lt;STRONG&gt;file footer&lt;/STRONG&gt;. It just a storage format, nothing to do with ORC/Spark.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5024-orcfilelayout.png" style="width: 580px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23191i22E9DB25D03F3896/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5024-orcfilelayout.png" alt="5024-orcfilelayout.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:11:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-create-a-hive-table-in-ORC-Format-from-SparkSQL/m-p/112972#M30305</guid>
      <dc:creator>uday_vakalapudi</dc:creator>
      <dc:date>2019-08-19T11:11:56Z</dc:date>
    </item>
  </channel>
</rss>

