<?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: How to convert spark dataframes into xml files? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105413#M46394</link>
    <description>&lt;P&gt;its working fine.But out put xml file saved in 10 files but I need in single file.How can we do that?&lt;/P&gt;</description>
    <pubDate>Sat, 19 Nov 2016 12:13:07 GMT</pubDate>
    <dc:creator>goudhadoop</dc:creator>
    <dc:date>2016-11-19T12:13:07Z</dc:date>
    <item>
      <title>How to convert spark dataframes into xml files?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105409#M46390</link>
      <description>&lt;P&gt;How to convert spark data frames into xml files in scala. Very large data need to change from oracle database into xml files how can we do that?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:32:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105409#M46390</guid>
      <dc:creator>goudhadoop</dc:creator>
      <dc:date>2016-11-16T09:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spark dataframes into xml files?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105410#M46391</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13696/goudhadoop.html" nodeid="13696"&gt;@Gundrathi babu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You should use this package:&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark-packages.org/package/HyukjinKwon/spark-xml" target="_blank"&gt;https://spark-packages.org/package/HyukjinKwon/spark-xml&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;val selectedData = df.select("author", "_id")
selectedData.write
    .format("com.databricks.spark.xml")
    .option("rootTag", "books")
    .option("rowTag", "book")
    .save("newbooks.xml")&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 10:06:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105410#M46391</guid>
      <dc:creator>vjain</dc:creator>
      <dc:date>2016-11-16T10:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spark dataframes into xml files?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105411#M46392</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/13696/goudhadoop.html"&gt;@Gundrathi babu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark-packages.org/package/HyukjinKwon/spark-xml" target="_blank"&gt;https://spark-packages.org/package/HyukjinKwon/spark-xml&lt;/A&gt; has been moved to databricks: &lt;A href="https://github.com/databricks/spark-xml" target="_blank"&gt;https://github.com/databricks/spark-xml&lt;/A&gt; for Spark 2.0 or for older: &lt;A href="https://github.com/databricks/spark-xml/tree/branch-0.3" target="_blank"&gt;https://github.com/databricks/spark-xml/tree/branch-0.3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should start the shell like this (check the proper version of spark-xml package):&lt;/P&gt;&lt;PRE&gt;spark-shell --packages com.databricks:spark-xml:0.1.1-s_2.10	&lt;/PRE&gt;&lt;P&gt;+++ &lt;/P&gt;&lt;P&gt;If this helped, please vote/accept best answer&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:27:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105411#M46392</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-11-17T06:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spark dataframes into xml files?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105412#M46393</link>
      <description>&lt;P&gt;Thank you staca ...its working fine.But out put xml file saved  in 10 files but I need in single file.How can we do that?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 12:12:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105412#M46393</guid>
      <dc:creator>goudhadoop</dc:creator>
      <dc:date>2016-11-19T12:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spark dataframes into xml files?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105413#M46394</link>
      <description>&lt;P&gt;its working fine.But out put xml file saved in 10 files but I need in single file.How can we do that?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 12:13:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/105413#M46394</guid>
      <dc:creator>goudhadoop</dc:creator>
      <dc:date>2016-11-19T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spark dataframes into xml files?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/293926#M46395</link>
      <description>&lt;P&gt;you can use .repartition(1)&lt;/P&gt;&lt;P&gt;DF..repartition(1) .....&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 07:10:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-spark-dataframes-into-xml-files/m-p/293926#M46395</guid>
      <dc:creator>Ciro_Fuccio</dc:creator>
      <dc:date>2020-04-14T07:10:51Z</dc:date>
    </item>
  </channel>
</rss>

