When using the HDFS2
producer without a split strategy, then the file output
stream is by default closed after the write. However you may want to keep the stream open,
and only explicitly close the stream later. For that you can use the header
HdfsConstants.HDFS_CLOSE (value = "
CamelHdfsClose") to control
this. Setting this value to a boolean allows you to explicit control whether the stream
should be closed or not.
Notice this does not apply if you use a split strategy, as there are various strategies that can control when the stream is closed.