<?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: write a  file to HDFS using Spark in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/37553#M6985</link>
    <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 05:58:21 GMT</pubDate>
    <dc:creator>manish_sharma786</dc:creator>
    <dc:date>2016-02-17T05:58:21Z</dc:date>
    <item>
      <title>write a  file to HDFS using Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/30783#M6983</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i am able to read a file from HDFS in Spark e using&lt;STRONG&gt; sc.textFile("path")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can smeone help me How to write a file in HDFS using spark&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:37:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/30783#M6983</guid>
      <dc:creator>manish_sharma786</dc:creator>
      <dc:date>2022-09-16T09:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: write a  file to HDFS using Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/30812#M6984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According documentation, you may try the saveAsTextFile method:&lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/programming-guide.html" target="_blank"&gt;http://spark.apache.org/docs/latest/programming-guide.html&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;saveAsTextFile&lt;/STRONG&gt;(&lt;I&gt;path&lt;/I&gt;)&lt;/TD&gt;&lt;TD&gt;Write the elements of the dataset as a text file (or set of text files) in a given directory in the local filesystem, HDFS or any other Hadoop-supported file system. Spark will call toString on each element to convert it to a line of text in the file.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:45:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/30812#M6984</guid>
      <dc:creator>Grg</dc:creator>
      <dc:date>2015-08-14T14:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: write a  file to HDFS using Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/37553#M6985</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:58:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/write-a-file-to-HDFS-using-Spark/m-p/37553#M6985</guid>
      <dc:creator>manish_sharma786</dc:creator>
      <dc:date>2016-02-17T05:58:21Z</dc:date>
    </item>
  </channel>
</rss>

