Apache Flume Tools

There are two event validation tools for the events available.

  1. File channel integrity tool
  2. Event Validator tool

File channel integrity tool -

This tool verifies the reliability of individual events in the file channel and removes any corrupted events. It can be run as follows:

$bin/flume-ng tool --conf ./conf FCINTEGRITYTOOL -l ./datadir

datadir - Specifies the comma separated list of data directory to be verified.

Below are the lists of options available -

Option NameDescription
h/helpDisplays help
l/dataDirsComma-separated list of data directories

Event Validator tool -

This tool is designed to validate File Channel Events in a manner specific to the application. It applies user provider validation logic to each event and discards any events that do not conform to this logic.

The tool can be run as follows:

$bin/flume-ng tool --conf ./conf FCINTEGRITYTOOL -l ./datadir -e 
			org.apache.flume.MyEventValidator -DmaxSize 2000

datadir - Specifies the comma separated list of data directory to be verified.

Below are the lists of options available -

Option NameDescription
h/helpDisplays help
l/dataDirsComma-separated list of data directories
e/eventValidatorFully Qualified Name of Event Validator Implementation