Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.0
-
None
-
None
Description
If we leave the positionFile parameter to default,
then the following exception is thrown when ~/.flume is not present
[We should take care of creating the default directory if not present ]
2015-08-27 09:44:30,551 (positionWriter) [ERROR - org.apache.flume.source.taildir.TaildirSource.writePosition(TaildirSource.java:312)] Failed writing positionFile
java.io.FileNotFoundException: /Users/jrufus/.flume/taildir_position.json (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
at java.io.FileWriter.<init>(FileWriter.java:90)
at org.apache.flume.source.taildir.TaildirSource.writePosition(TaildirSource.java:306)
at org.apache.flume.source.taildir.TaildirSource.access$600(TaildirSource.java:56)
at org.apache.flume.source.taildir.TaildirSource$PositionWriterRunnable.run(TaildirSource.java:298)