<?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: read orc table from spark in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129529#M55749</link>
    <description>&lt;P&gt;please show your code&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2017 00:22:40 GMT</pubDate>
    <dc:creator>adnanalvee</dc:creator>
    <dc:date>2017-03-03T00:22:40Z</dc:date>
    <item>
      <title>read orc table from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129528#M55748</link>
      <description>&lt;P&gt;I am trying to read hive orc table from spark sql but its showing me the error &lt;/P&gt;&lt;P&gt;Caused by: &lt;/P&gt;&lt;P&gt;java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: delta_0067044_0067143 does not start with base_&lt;/P&gt;&lt;P&gt; 
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)&lt;/P&gt;&lt;P&gt;
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
        at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:998)
        ... 104 more &lt;/P&gt;&lt;P&gt;Caused by: java.lang.IllegalArgumentException: delta_0067044_0067143 does not start with base_ &lt;/P&gt;&lt;P&gt;        at org.apache.hadoop.hive.ql.io.AcidUtils.parseBase(AcidUtils.java:144)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:43:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129528#M55748</guid>
      <dc:creator>mangeshberde478</dc:creator>
      <dc:date>2017-02-28T14:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: read orc table from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129529#M55749</link>
      <description>&lt;P&gt;please show your code&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 00:22:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129529#M55749</guid>
      <dc:creator>adnanalvee</dc:creator>
      <dc:date>2017-03-03T00:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: read orc table from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129530#M55750</link>
      <description>&lt;P&gt;Can you share moe about what version of Spark you are using?&lt;/P&gt;&lt;P&gt;HDP added support for ORC in Spark 1.4 
Please see the following article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/blog/bringing-orc-support-into-apache-spark/" target="_blank"&gt;https://hortonworks.com/blog/bringing-orc-support-into-apache-spark/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a bit of code that shows how this works:&lt;/P&gt;&lt;PRE&gt;val sqlContext =new org.apache.spark.sql.hive.HiveContext(sc)&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Mar 2017 05:27:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129530#M55750</guid>
      <dc:creator>devers1</dc:creator>
      <dc:date>2017-03-07T05:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: read orc table from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129531#M55751</link>
      <description>&lt;P&gt;From the error message it seems you are trying to read acid orc table from spark sql. There are certain limitations while reading this type of table from spark sql. &lt;/P&gt;&lt;P&gt;You can find more details in these jiras:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/SPARK-16996" target="_blank"&gt;https://issues.apache.org/jira/browse/SPARK-16996&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-15189" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-15189&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can force compaction by running "alter table compact" query before reading data from spark sql to workaround this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 06:01:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129531#M55751</guid>
      <dc:creator>jvaria</dc:creator>
      <dc:date>2017-03-07T06:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: read orc table from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129532#M55752</link>
      <description>&lt;P&gt;scala&amp;gt; val df= sqlContext.sql("SELECT * FROM orc_table limit 1")
17/03/07 13:41:03 INFO ParseDriver: Parsing command: SELECT * FROM Orc_table limit 1
17/03/07 13:41:03 INFO ParseDriver: Parse Completed
java.lang.AssertionError: assertion failed
        at scala.Predef$.assert(Predef.scala:165)
        at org.apache.spark.sql.execution.datasources.LogicalRelation$anonfun$1.apply(LogicalRelation.scala:39)
        at org.apache.spark.sql.execution.datasources.LogicalRelation$anonfun$1.apply(LogicalRelation.scala:38)
        at scala.Option.map(Option.scala:145)
        at org.apache.spark.sql.execution.datasources.LogicalRelation.&amp;lt;init&amp;gt;(LogicalRelation.scala:38)
        at org.apache.spark.sql.execution.datasources.LogicalRelation.copy(LogicalRelation.scala:31)
        at org.apache.spark.sql.hive.HiveMetastoreCatalog.org$apache$spark$sql$hive$HiveMetastoreCatalog$convertToOrcRelation(HiveMetastoreCatalog.scala:588)
        at org.apache.spark.sql.hive.HiveMetastoreCatalog$OrcConversions$anonfun$apply$2.applyOrElse(HiveMetastoreCatalog.scala:647)
        at org.apache.spark.sql.hive.HiveMetastoreCatalog$OrcConversions$anonfun$apply$2.applyOrElse(HiveMetastoreCatalog.scala:643)
        at org.apache.spark.sql.catalyst.trees.TreeNode$anonfun$transformUp$1.apply(TreeNode.scala:335)
        at org.apache.spark.sql.catalyst.trees.TreeNode$anonfun$transformUp$1.apply(TreeNode.scala:335)
        at org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:69)
        at org.apache.spark.sql.catalyst.trees.TreeNode.transformUp(TreeNode.scala:334)
        at org.apache.spark.sql.catalyst.trees.TreeNode$anonfun$5.apply(TreeNode.scala:332)
        at org.apache.spark.sql.catalyst.trees.TreeNode$anonfun$5.apply(TreeNode.scala:332)
        at org.apache.spark.sql.catalyst.trees.TreeNode$anonfun$4.apply(TreeNode.scala:281)
        at scala.collection.Iterator$anon$11.next(Iterator.scala:328)
        at scala.collection.Iterator$class.foreach(Iterator.scala:727)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
        at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
        at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:103)
        at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:47)
        at scala.collection.TraversableOnce$class.to(TraversableOnce.scala:273)
        at scala.collection.AbstractIterator.to(Iterator.scala:1157)
        at scala.collection.TraversableOnce$class.toBuffer(TraversableOnce.scala:265)
        at scala.collection.AbstractIterator.toBuffer(Iterator.scala:1157)
        at scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:252)
        at scala.collection.AbstractIterator.toArray(Iterator.scala:1157)
        at org.apache.spark.sql.catalyst.trees.TreeNode.transformChildren(TreeNode.scala:321)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 16:13:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/read-orc-table-from-spark/m-p/129532#M55752</guid>
      <dc:creator>mangeshberde478</dc:creator>
      <dc:date>2017-03-07T16:13:09Z</dc:date>
    </item>
  </channel>
</rss>

