<?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: Flume error while testing spooldir source in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229447#M64080</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13875/schandhok.html" nodeid="13875"&gt;@Shashank Chandhok&lt;/A&gt; Thanks. I was copying the files. Moving them helped. &lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 21:25:04 GMT</pubDate>
    <dc:creator>rpulluru</dc:creator>
    <dc:date>2017-06-30T21:25:04Z</dc:date>
    <item>
      <title>Flume error while testing spooldir source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229445#M64078</link>
      <description>&lt;P&gt;While testing Flume spooldir source, I am getting this error in flume logs.  &lt;/P&gt;&lt;PRE&gt;28 Jun 2017 15:06:44,560 ERROR [pool-7-thread-1] (org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run:280) - FATAL: 
Spool Directory source spooldir-source: { spoolDir: /data/src/input }: Uncaught exception in SpoolDirectorySource thread. 
Restart or reconfigure Flume to continue processing. 
java.lang.IllegalStateException: File has changed size since being read: /home/userapp/test/newfile_5_1.csv.gz 
at org.apache.flume.client.avro.ReliableSpoolingFileEventReader.retireCurrentFile(ReliableSpoolingFileEventReader.java:410) 
at org.apache.flume.client.avro.ReliableSpoolingFileEventReader.readEvents(ReliableSpoolingFileEventReader.java:326) 
at org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run(SpoolDirectorySource.java:250) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;&lt;P&gt;Any pointers?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 20:34:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229445#M64078</guid>
      <dc:creator>rpulluru</dc:creator>
      <dc:date>2017-06-30T20:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flume error while testing spooldir source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229446#M64079</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/18196/rpulluru.html"&gt;rpulluru&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This issue occurs when one of the following is true: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If a file is written to after being placed into the spooling directory, Flume will print an error to its log file and stop processing. &lt;/LI&gt;&lt;LI&gt;If a file name is reused at a later time, Flume will print an error to its log file and stop processing. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you are copying the files in your /data/src/input directory, change the operation to ‘mv’, Or you can copy the files as .tmp and then 'mv' the '.tmp' file to the same spooling directory with the actual name. Add the following line in flume.conf to ignore .tmp files in SpoolDir: &lt;/P&gt;&lt;PRE&gt;Agent1.sources.spooldir-source.ignorePattern=^.*\.tmp$&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2017 20:37:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229446#M64079</guid>
      <dc:creator>Schandhok</dc:creator>
      <dc:date>2017-06-30T20:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flume error while testing spooldir source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229447#M64080</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13875/schandhok.html" nodeid="13875"&gt;@Shashank Chandhok&lt;/A&gt; Thanks. I was copying the files. Moving them helped. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 21:25:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-error-while-testing-spooldir-source/m-p/229447#M64080</guid>
      <dc:creator>rpulluru</dc:creator>
      <dc:date>2017-06-30T21:25:04Z</dc:date>
    </item>
  </channel>
</rss>

