oev

Hadoop offline edits viewer.
Details on using the utility can be found at Offline Edits Viewer Guide.

The usage is as follows:

$ hdfs oev [OPTIONS] -i INPUT_FILE -o OUTPUT_FILE
Required arguments

-i,--inputFile arg

Edits file to process, xml (case insensitive) extension means XML format, any other filename means the binary format

-o,--outputFile arg

A name for the output file.
If the specified file exists, it will be overwritten, the format of the file is determined by -p option

Optional arguments

-f,--fix-txids

Renumbers the transaction IDs in the input, so that there are no gaps or invalid transaction IDs

-h,--help

Displays usage information

-r,--recover

When reading binary edit logs, uses the recovery mode.
This allows to skip corrupt parts of the edit log

--p,--processor arg

Selects the type of processor to apply for an image file, currently supported processors are:

  • binary (native binary format that Hadoop uses);

  • xml (default, XML format);

  • stats (prints statistics about edits file).

-v,--verbose

Produces a more verbose output, prints the input and output filenames, for processors that write to a file, output their names.
For large image files this will dramatically increase the processing time (default is false)

Example:

$ hdfs oev -p xml -i edits -o edits.xml
Found a mistake? Seleсt text and press Ctrl+Enter to report it