Sink 1 takes event from channel 1 and sent over to

This preview shows page 28 - 36 out of 48 pages.

Sink 1 “takes” event from Channel 1 and sent over to Source 2. Source 2 “puts” and “commits” event to Channel 2. Source 2 sends success to Sink 1. Sink 1 commits the “take” to the channel – which in turn, deletes the event. Conclusion: Event is available at least one channel at any point in time. This can be scaled to any number of nodes.
Image of page 28

Subscribe to view the full document.

Flume Channels Memory Channel Recommended if data loss due to crashes are ok File Channel Recommended channel. JDBC Channel
Image of page 29
Memory Channel Events stored on heap Limited capacity No persistence after a system/process crash Very fast 3 config parameters: capacity: Maximum # of events that can be in the channel transactionCapacity: Maximum # of events in one txn. keepAlive: how long to wait to take an event
Image of page 30

Subscribe to view the full document.

File Channel Events stored in WAL, on disk Persistent High performance More disks better performance Highly scalable just throw more disks at it.
Image of page 31
FileChannel Events stored in multiple log files, on disk Pointers (log id + offset) to events stored in in-memory queue Queue = current state of the channel
Image of page 32

Subscribe to view the full document.

Image of page 33
File Channel 34 Queue periodically synced to disk - checkpoint On channel restart checkpoint is mmap-ed. Actions(put/take/commit/rollback) that happened after last checkpoint - replayed from log files Queue now in same state as it was when channel was stopped ready for action!
Image of page 34

Subscribe to view the full document.

Image of page 35
Image of page 36
  • Spring '16
  • dncj ncnd
  • English Channel, DISC, Sink, Deep diving, Hbase Sink

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern