-
Bug
-
Resolution: Done
-
Major
-
2.14.0.redhat-62-xx
-
None
-
None
The Camel hdfs2: component reads a normal file twice when used as a consumer endpoint in a Camel route. For example, consider this Camel route:
from("hdfs2://127.0.0.1:9000/test.txt")
.to("log:XXX?showAll=true&multiline=true")
.to("file://temp?fileName=test.txt&fileExist=Append");
This should copy the file test.txt from HDFS. However, the copied file ends up exactly twice the expected length, with the content duplicated. The log output shows that twice as many messages are read as would be expected from the file size and the chunk size (the hdfs2: component delivers one message per chunk).