Giter Club home page Giter Club logo

Comments (5)

tagomoris avatar tagomoris commented on May 24, 2024

Once you specify flush_interval, time_slice_wait is ignored, and your chunk will be flushed after flush_interval(1 hour by your configuration) from chunk generation. (this is fluentd's normal behavior.)
So you should wait to see whether chunk object is successfully flushed or not until 20:57 for last chunk file.

Do you understand this behavior?

from fluent-plugin-webhdfs.

wbchn avatar wbchn commented on May 24, 2024

I know it, even using flush_interval with default setting(default is 60s), the file buffer of last hour do not upload until 10 minute in new hour, like this:
write a data(1) at 8:56, and the buffer file(buffer-2015052808.xxxx) lower than 1G at 8:59:59

the data(1) in buffer flush data to hdfs until 9:11.

how about upload the buffer before new buffer using? I means flush data to hdfs in real time(less than 1min) and split file into 1G size.

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on May 24, 2024

Are you willing to write data per 1GB or per 1minute, right?
If so, you should configure like this:

  • append false
  • path /path/to/dir/filename-including-minute.%Y%m%d_%H%M.${hostname}.${chunk_id}.log
  • buffer_chunk_limit 1g
  • time_slice_wait 1m

If you wanna split files per hour with per-minute flush, you should enable append.

from fluent-plugin-webhdfs.

wbchn avatar wbchn commented on May 24, 2024

Sorry, I made a mistake. As you said above, just add config time_slice_wait 1m, the file will write into per hour with max size limit 1G.

The buffer(like data(1) which i referred) will flush to hdfs at 9:01

Thank you very much.

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on May 24, 2024

Good to hear that 😄

from fluent-plugin-webhdfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.