<?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: saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140459#M19393</link>
    <description>&lt;PRE&gt;sc.parallelize(records).toDF().write.format("orc").save("people")
&lt;/PRE&gt;&lt;P&gt;that method was refactored. There's a new way of writing ORC files. Convert your RDD to DataFrame with toDF() and then write it out as above.Try to use later versions of Spark.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_spark-guide/content/ch_orc-spark.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_spark-guide/content/ch_orc-spark.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Feb 2016 04:14:55 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-02-13T04:14:55Z</dc:date>
    <item>
      <title>saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140456#M19390</link>
      <description>&lt;P&gt;When I try Tutorial "A Lap around Apache Spark 1.3.1 with HDP 2.3" from sandbox, I encountered the problem:&lt;/P&gt;&lt;P&gt;scala&amp;gt; peopleSchemaRDD.saveAsOrcFile("people.orc") &lt;/P&gt;&lt;P&gt;&amp;lt;console&amp;gt;:41: error: value saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame
              peopleSchemaRDD.saveAsOrcFile("people.orc")
                              ^
&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 01:28:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140456#M19390</guid>
      <dc:creator>wei_yang80</dc:creator>
      <dc:date>2016-02-13T01:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140457#M19391</link>
      <description>&lt;P&gt;Are you sure that you are using the new sandbox and the Spark version is actually 1.3.1 or higher? It sounds like an error you would get in Spark 1.2&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 01:39:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140457#M19391</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-02-13T01:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140458#M19392</link>
      <description>&lt;P&gt;. &lt;A rel="user" href="https://community.cloudera.com/users/2764/wei-yang80.html" nodeid="2764"&gt;@wei yang&lt;/A&gt; Are you using Spark 1.3.1 or just the content of the tutorial? ORC support was added in Spark 1.4 (http://hortonworks.com/blog/bringing-orc-support-into-apache-spark/)&lt;/P&gt;&lt;P&gt;Try using the following command&lt;/P&gt;&lt;PRE&gt;myDataFrame.write.format("orc").save("some_name")&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Feb 2016 01:43:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140458#M19392</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-02-13T01:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140459#M19393</link>
      <description>&lt;PRE&gt;sc.parallelize(records).toDF().write.format("orc").save("people")
&lt;/PRE&gt;&lt;P&gt;that method was refactored. There's a new way of writing ORC files. Convert your RDD to DataFrame with toDF() and then write it out as above.Try to use later versions of Spark.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_spark-guide/content/ch_orc-spark.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_spark-guide/content/ch_orc-spark.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 04:14:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140459#M19393</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-13T04:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsOrcFile is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140460#M19394</link>
      <description>&lt;P&gt;I'm using Spark 1.4.1, and the command "peopleSchemaRDD.write.format("orc").save("people.orc")" works !!!&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2016 04:01:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/saveAsOrcFile-is-not-a-member-of-org-apache-spark-sql/m-p/140460#M19394</guid>
      <dc:creator>wei_yang80</dc:creator>
      <dc:date>2016-02-14T04:01:12Z</dc:date>
    </item>
  </channel>
</rss>

