Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8150

camel-hdfs sending message per chunk, not per file

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      When hdfs consumer picks orinary file, it sends message per data chunk.
      Not message per file as one could expect.
      In the docs it is mentioned only in option description, which can be overlooked very easily.
      It should be explicitly written in the beginning of the component doc page .

      Option description from docs

      chunkSize 4096 When reading a normal file, this is split into chunks producing a message per chunk.

      Sample camel route (workaround could be to add ?fileExist=Append to file component)

       <camel:route id="toFile">
                  <from uri="hdfs2:localhost:8020/tmp/camel-test/"/>
                  <log message="picked up file from hdfs with name $simple{header.CamelFileName}"/>
                  <to uri="file:test-dest"/>
                  <log message="file downloaded from hadoop"/>
      </camel:route>
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              ludvicekj Josef Ludvíček
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: