Parses a sequence file generated by the DiffTables utility or the DiffTablesWithCrc utility and converts the results into a format that makes the results easier to understand.

Syntax

hbase com.mapr.fs.hbase.tools.mapreduce.FormatResult 
-input <input file path>
-output <output file path> 
[-mapreduce <true|false> (default: false)]

Parameters

 

ParametersDescription
input

The path to a file or directory of files that contains the output of either the DiffTables utility or the DiffTablesWithCrc utility.

outputThe path to a file or a directory for the output. If the file or directory already exists, the utility fails. When a single sequence file is provided as input, the utility generates a single output file. When a directory of sequence files is provided as input, the utility generates a directory with output files.
mapreduce

A Boolean value that specifies whether or not to use a MapReduce program to perform the FormatResult operation. The default is not to use a MapReduce program (false).

The MapReduce program runs as MapReduce v1 job or MapReduce v2 application based on the MapReduce mode that is configured on this node. For more information, see Managing the MapReduce Mode.

Example

Formats a sequence file: 

[user@hostname ~]$ hbase com.mapr.fs.hbase.tools.mapreduce.FormatResult -input /dif1/tf4/opsForDst/opsForDst-m-00001 -output /dif1/tf4/opsForDst_single/nomr -mapreduce false
2015-03-06 18:58:56,210 INFO  [main] Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS
2015-03-06 18:58:57,492 INFO  [main] mapreduce.FormatResult: Translated sequence file maprfs:///dif1/tf4/opsForDst/opsForDst-m-00001 to text file /dif1/tf4/opsForDst_single/nomr
2015-03-06 18:58:57,527 INFO  [main] mapreduce.FormatResult: Total 1 text files created.