<?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 HdfsBolt append data to existing file? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144499#M107081</link>
    <description>&lt;P&gt;I want to write data to new file if file not exist and append data to existing file using storm hdfs connector HdfsBolt. May I know how to do this ?
Appreciate for any suggestions. &lt;/P&gt;</description>
    <pubDate>Sat, 23 Jul 2016 23:04:49 GMT</pubDate>
    <dc:creator>jason_huewk</dc:creator>
    <dc:date>2016-07-23T23:04:49Z</dc:date>
    <item>
      <title>Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144499#M107081</link>
      <description>&lt;P&gt;I want to write data to new file if file not exist and append data to existing file using storm hdfs connector HdfsBolt. May I know how to do this ?
Appreciate for any suggestions. &lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2016 23:04:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144499#M107081</guid>
      <dc:creator>jason_huewk</dc:creator>
      <dc:date>2016-07-23T23:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144500#M107082</link>
      <description>&lt;P&gt;File on HDFS are immutable.   Hdfs bolt allows for example "After every 1,000 tuples it will sync filesystem, making that data visible to other HDFS clients. It will rotate files when they reach 5 megabytes in size."&lt;/P&gt;&lt;P&gt;So you can buffer up events until specified interval.  Take a look at my github storm code.  You will see how that is performed&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sunileman/storm-twitter-sentiment" target="_blank"&gt;https://github.com/sunileman/storm-twitter-sentiment&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2016 23:14:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144500#M107082</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-23T23:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144501#M107083</link>
      <description>&lt;P&gt;Appreciate for the advice between the file name will be  named something like ddmmyyyy-hh. I want to group the log by hourly and the event per second can be changed, so the number of tuples and file side cannot be determined. In this case how to do it?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 06:37:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144501#M107083</guid>
      <dc:creator>jason_huewk</dc:creator>
      <dc:date>2016-07-24T06:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144502#M107084</link>
      <description>&lt;P&gt;So your looking for windowing on storm.ie do somethikg based on a specificed time period.  Until recently you had to build your own windowing logic in storm by keep track of time and do some disk cache to hold events until window tome has completed.  Now the functionality comes out of the box.  Take a look at an excellent article written on how the new functionality works in storm here. &lt;A href="https://community.hortonworks.com/articles/14171/windowing-and-state-checkpointing-in-apache-storm.html" target="_blank"&gt;https://community.hortonworks.com/articles/14171/windowing-and-state-checkpointing-in-apache-storm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 06:49:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144502#M107084</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-24T06:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144503#M107085</link>
      <description>&lt;P&gt;Thank you for the advice,the new feature of windowing seem able to solve my problem but only concern is the in memory capability to hold 1 hour data , may i know any example for how to configure /do the disk cache ?&lt;/P&gt;&lt;P&gt;Between i found out some example of doing append in hdfs &lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/32339602/append-to-file-in-hdfs-cdh-5-4-5"&gt;http://stackoverflow.com/questions/32339602/append-to-file-in-hdfs-cdh-5-4-5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the CDH platform can do the append ?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 09:05:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144503#M107085</guid>
      <dc:creator>jason_huewk</dc:creator>
      <dc:date>2016-07-24T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144504#M107086</link>
      <description>&lt;P&gt; If you are concerned about memory you can persist the data to hdfs and once the window period is over recombine all persisted data and push to your hour location.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 12:29:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144504#M107086</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-24T12:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can HdfsBolt append data to existing file?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144505#M107087</link>
      <description>&lt;P&gt;Thank you for the answer&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 13:58:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-HdfsBolt-append-data-to-existing-file/m-p/144505#M107087</guid>
      <dc:creator>jason_huewk</dc:creator>
      <dc:date>2016-07-24T13:58:14Z</dc:date>
    </item>
  </channel>
</rss>

