Class MRJobCounterHelper
- java.lang.Object
-
- com.linkedin.venice.hadoop.mapreduce.counter.MRJobCounterHelper
-
public class MRJobCounterHelper extends java.lang.Object
All MapReducer job counters (identified by a group name + a counter name) are defined here and this util class provides method to increment counters and read counters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MRJobCounterHelper.GroupAndCounterNames
Bundle counter group name and counter name in this POJO
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getDuplicateKeyWithDistinctCount(org.apache.hadoop.mapred.Counters counters)
static long
getDuplicateKeyWithDistinctCount(org.apache.hadoop.mapred.Reporter reporter)
static long
getMapperErrorDataModifiedDuringPushJobCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperInvalidInputFileCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperInvalidInputIdxCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperNumRecordsSuccessfullyProcessedCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperSchemaInconsistencyFailureCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperSprayAllPartitionsTriggeredCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperZstdDictTrainFailureCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperZstdDictTrainSkippedCount(org.apache.hadoop.mapred.Counters counters)
static long
getMapperZstdDictTrainSuccessCount(org.apache.hadoop.mapred.Counters counters)
static long
getOutputRecordsCount(org.apache.hadoop.mapred.Counters counters)
static long
getRecordTooLargeFailureCount(org.apache.hadoop.mapred.Counters counters)
static long
getRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter)
static long
getReducerClosedCount(org.apache.hadoop.mapred.Counters counters)
static long
getRepushTtlFilterCount(org.apache.hadoop.mapred.Counters counters)
static long
getTotalGzipCompressedValueSize(org.apache.hadoop.mapred.Counters counters)
static long
getTotalKeySize(org.apache.hadoop.mapred.Counters counters)
static long
getTotalKeySize(org.apache.hadoop.mapred.Reporter reporter)
static long
getTotalPutOrDeleteRecordsCount(org.apache.hadoop.mapred.Counters counters)
static long
getTotalPutOrDeleteRecordsCount(org.apache.hadoop.mapred.Reporter reporter)
static long
getTotalUncompressedValueSize(org.apache.hadoop.mapred.Counters counters)
static long
getTotalValueSize(org.apache.hadoop.mapred.Counters counters)
static long
getTotalValueSize(org.apache.hadoop.mapred.Reporter reporter)
static long
getTotalZstdWithDictCompressedValueSize(org.apache.hadoop.mapred.Counters counters)
static long
getWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Counters counters)
static long
getWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Reporter reporter)
static void
incrDuplicateKeyWithDistinctValue(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrDuplicateKeyWithIdenticalValue(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrEmptyRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperErrorDataModifiedDuringPushJobCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperInvalidInputFileCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperInvalidInputIdxCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperNumRecordsSuccessfullyProcessedCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperSchemaInconsistencyFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperSprayAllPartitionsTriggeredCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperZstdDictTrainFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperZstdDictTrainSkippedCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrMapperZstdDictTrainSuccessCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrOutputRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrReducerClosedCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrRepushTtlFilterCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrTotalGzipCompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrTotalKeySize(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrTotalPutOrDeleteRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrTotalUncompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrTotalValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrTotalZstdCompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
static void
incrWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
-
-
Field Detail
-
WRITE_ACL_FAILURE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames WRITE_ACL_FAILURE_GROUP_COUNTER_NAME
-
TOTAL_KEY_SIZE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames TOTAL_KEY_SIZE_GROUP_COUNTER_NAME
-
TOTAL_VALUE_SIZE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames TOTAL_VALUE_SIZE_GROUP_COUNTER_NAME
-
TOTAL_UNCOMPRESSED_VALUE_SIZE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames TOTAL_UNCOMPRESSED_VALUE_SIZE_GROUP_COUNTER_NAME
-
TOTAL_GZIP_COMPRESSED_VALUE_SIZE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames TOTAL_GZIP_COMPRESSED_VALUE_SIZE_GROUP_COUNTER_NAME
-
TOTAL_ZSTD_WITH_DICT_COMPRESSED_VALUE_SIZE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames TOTAL_ZSTD_WITH_DICT_COMPRESSED_VALUE_SIZE_GROUP_COUNTER_NAME
-
DUP_KEY_WITH_IDENTICAL_VALUE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames DUP_KEY_WITH_IDENTICAL_VALUE_GROUP_COUNTER_NAME
-
DUP_KEY_WITH_DISTINCT_VALUE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames DUP_KEY_WITH_DISTINCT_VALUE_GROUP_COUNTER_NAME
-
RECORD_TOO_LARGE_FAILURE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames RECORD_TOO_LARGE_FAILURE_GROUP_COUNTER_NAME
-
OUTPUT_RECORD_COUNT_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames OUTPUT_RECORD_COUNT_GROUP_COUNTER_NAME
-
EMPTY_RECORD_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames EMPTY_RECORD_COUNTER_NAME
-
REDUCER_CLOSED_COUNT_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames REDUCER_CLOSED_COUNT_GROUP_COUNTER_NAME
-
MAPPER_SPRAY_ALL_PARTITIONS_TRIGGERED_COUNT_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_SPRAY_ALL_PARTITIONS_TRIGGERED_COUNT_NAME
-
TOTAL_PUT_OR_DELETE_COUNT_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames TOTAL_PUT_OR_DELETE_COUNT_GROUP_COUNTER_NAME
-
MAPPER_ERROR_DATA_MODIFIED_DURING_PUSH_JOB_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_ERROR_DATA_MODIFIED_DURING_PUSH_JOB_GROUP_COUNTER_NAME
-
MAPPER_INVALID_INPUT_IDX_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_INVALID_INPUT_IDX_GROUP_COUNTER_NAME
-
MAPPER_INVALID_INPUT_FILE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_INVALID_INPUT_FILE_GROUP_COUNTER_NAME
-
MAPPER_SCHEMA_INCONSISTENCY_FAILURE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_SCHEMA_INCONSISTENCY_FAILURE_GROUP_COUNTER_NAME
-
MAPPER_ZSTD_DICT_TRAIN_SUCCESS_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_ZSTD_DICT_TRAIN_SUCCESS_GROUP_COUNTER_NAME
-
MAPPER_ZSTD_DICT_TRAIN_FAILURE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_ZSTD_DICT_TRAIN_FAILURE_GROUP_COUNTER_NAME
-
MAPPER_ZSTD_DICT_TRAIN_SKIPPED_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_ZSTD_DICT_TRAIN_SKIPPED_GROUP_COUNTER_NAME
-
MAPPER_NUM_RECORDS_SUCCESSFULLY_PROCESSED_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames MAPPER_NUM_RECORDS_SUCCESSFULLY_PROCESSED_GROUP_COUNTER_NAME
-
REPUSH_TTL_FILTER_COUNT_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames REPUSH_TTL_FILTER_COUNT_GROUP_COUNTER_NAME
-
-
Method Detail
-
incrReducerClosedCount
public static void incrReducerClosedCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrMapperSprayAllPartitionsTriggeredCount
public static void incrMapperSprayAllPartitionsTriggeredCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrWriteAclAuthorizationFailureCount
public static void incrWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrRecordTooLargeFailureCount
public static void incrRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrTotalKeySize
public static void incrTotalKeySize(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrTotalValueSize
public static void incrTotalValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrTotalUncompressedValueSize
public static void incrTotalUncompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrTotalGzipCompressedValueSize
public static void incrTotalGzipCompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrTotalZstdCompressedValueSize
public static void incrTotalZstdCompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrDuplicateKeyWithIdenticalValue
public static void incrDuplicateKeyWithIdenticalValue(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrDuplicateKeyWithDistinctValue
public static void incrDuplicateKeyWithDistinctValue(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrOutputRecordCount
public static void incrOutputRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrEmptyRecordCount
public static void incrEmptyRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
incrTotalPutOrDeleteRecordCount
public static void incrTotalPutOrDeleteRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getWriteAclAuthorizationFailureCount
public static long getWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Reporter reporter)
-
getDuplicateKeyWithDistinctCount
public static long getDuplicateKeyWithDistinctCount(org.apache.hadoop.mapred.Reporter reporter)
-
getRecordTooLargeFailureCount
public static long getRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter)
-
getTotalKeySize
public static long getTotalKeySize(org.apache.hadoop.mapred.Reporter reporter)
-
getTotalValueSize
public static long getTotalValueSize(org.apache.hadoop.mapred.Reporter reporter)
-
getTotalPutOrDeleteRecordsCount
public static long getTotalPutOrDeleteRecordsCount(org.apache.hadoop.mapred.Reporter reporter)
-
getReducerClosedCount
public static long getReducerClosedCount(org.apache.hadoop.mapred.Counters counters)
-
getMapperSprayAllPartitionsTriggeredCount
public static long getMapperSprayAllPartitionsTriggeredCount(org.apache.hadoop.mapred.Counters counters)
-
getOutputRecordsCount
public static long getOutputRecordsCount(org.apache.hadoop.mapred.Counters counters)
-
getWriteAclAuthorizationFailureCount
public static long getWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Counters counters)
-
getDuplicateKeyWithDistinctCount
public static long getDuplicateKeyWithDistinctCount(org.apache.hadoop.mapred.Counters counters)
-
getRecordTooLargeFailureCount
public static long getRecordTooLargeFailureCount(org.apache.hadoop.mapred.Counters counters)
-
getTotalKeySize
public static long getTotalKeySize(org.apache.hadoop.mapred.Counters counters)
-
getTotalValueSize
public static long getTotalValueSize(org.apache.hadoop.mapred.Counters counters)
-
getTotalUncompressedValueSize
public static long getTotalUncompressedValueSize(org.apache.hadoop.mapred.Counters counters)
-
getTotalGzipCompressedValueSize
public static long getTotalGzipCompressedValueSize(org.apache.hadoop.mapred.Counters counters)
-
getTotalZstdWithDictCompressedValueSize
public static long getTotalZstdWithDictCompressedValueSize(org.apache.hadoop.mapred.Counters counters)
-
getTotalPutOrDeleteRecordsCount
public static long getTotalPutOrDeleteRecordsCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperErrorDataModifiedDuringPushJobCount
public static void incrMapperErrorDataModifiedDuringPushJobCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperErrorDataModifiedDuringPushJobCount
public static long getMapperErrorDataModifiedDuringPushJobCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperInvalidInputIdxCount
public static void incrMapperInvalidInputIdxCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperInvalidInputIdxCount
public static long getMapperInvalidInputIdxCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperInvalidInputFileCount
public static void incrMapperInvalidInputFileCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperInvalidInputFileCount
public static long getMapperInvalidInputFileCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperSchemaInconsistencyFailureCount
public static void incrMapperSchemaInconsistencyFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperSchemaInconsistencyFailureCount
public static long getMapperSchemaInconsistencyFailureCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperZstdDictTrainSuccessCount
public static void incrMapperZstdDictTrainSuccessCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperZstdDictTrainSuccessCount
public static long getMapperZstdDictTrainSuccessCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperZstdDictTrainFailureCount
public static void incrMapperZstdDictTrainFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperZstdDictTrainFailureCount
public static long getMapperZstdDictTrainFailureCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperZstdDictTrainSkippedCount
public static void incrMapperZstdDictTrainSkippedCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperZstdDictTrainSkippedCount
public static long getMapperZstdDictTrainSkippedCount(org.apache.hadoop.mapred.Counters counters)
-
incrMapperNumRecordsSuccessfullyProcessedCount
public static void incrMapperNumRecordsSuccessfullyProcessedCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
getMapperNumRecordsSuccessfullyProcessedCount
public static long getMapperNumRecordsSuccessfullyProcessedCount(org.apache.hadoop.mapred.Counters counters)
-
getRepushTtlFilterCount
public static long getRepushTtlFilterCount(org.apache.hadoop.mapred.Counters counters)
-
incrRepushTtlFilterCount
public static void incrRepushTtlFilterCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
-