Class MRJobCounterHelper
java.lang.Object
com.linkedin.venice.hadoop.mapreduce.counter.MRJobCounterHelper
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 ClassesModifier and TypeClassDescriptionstatic classBundle counter group name and counter name in this POJO -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNamesstatic final MRJobCounterHelper.GroupAndCounterNames -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetDuplicateKeyWithDistinctCount(org.apache.hadoop.mapred.Counters counters) static longgetDuplicateKeyWithDistinctCount(org.apache.hadoop.mapred.Reporter reporter) static longgetMapperSprayAllPartitionsTriggeredCount(org.apache.hadoop.mapred.Counters counters) static longgetOutputRecordsCount(org.apache.hadoop.mapred.Counters counters) static longgetRecordTooLargeFailureCount(org.apache.hadoop.mapred.Counters counters) static longgetRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter) static longgetReducerClosedCount(org.apache.hadoop.mapred.Counters counters) static longgetRepushTtlFilterCount(org.apache.hadoop.mapred.Counters counters) static longgetTotalGzipCompressedValueSize(org.apache.hadoop.mapred.Counters counters) static longgetTotalKeySize(org.apache.hadoop.mapred.Counters counters) static longgetTotalKeySize(org.apache.hadoop.mapred.Reporter reporter) static longgetTotalPutOrDeleteRecordsCount(org.apache.hadoop.mapred.Counters counters) static longgetTotalPutOrDeleteRecordsCount(org.apache.hadoop.mapred.Reporter reporter) static longgetTotalUncompressedValueSize(org.apache.hadoop.mapred.Counters counters) static longgetTotalValueSize(org.apache.hadoop.mapred.Counters counters) static longgetTotalValueSize(org.apache.hadoop.mapred.Reporter reporter) static longgetTotalZstdWithDictCompressedValueSize(org.apache.hadoop.mapred.Counters counters) static longgetUncompressedRecordTooLargeFailureCount(org.apache.hadoop.mapred.Counters counters) static longgetUncompressedRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter) static longgetWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Counters counters) static longgetWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Reporter reporter) static voidincrDuplicateKeyWithDistinctValue(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrDuplicateKeyWithIdenticalValue(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrEmptyRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrMapperSprayAllPartitionsTriggeredCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrOutputRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrReducerClosedCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrRepushTtlFilterCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrTotalGzipCompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrTotalKeySize(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrTotalPutOrDeleteRecordCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrTotalUncompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrTotalValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrTotalZstdCompressedValueSize(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrUncompressedRecordTooLargeFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount) static voidincrWriteAclAuthorizationFailureCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-
Field Details
-
WRITE_ACL_FAILURE_GROUP_COUNTER_NAME
-
TOTAL_KEY_SIZE_GROUP_COUNTER_NAME
-
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 -
UNCOMPRESSED_RECORD_TOO_LARGE_FAILURE_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames UNCOMPRESSED_RECORD_TOO_LARGE_FAILURE_GROUP_COUNTER_NAME -
OUTPUT_RECORD_COUNT_GROUP_COUNTER_NAME
-
EMPTY_RECORD_COUNTER_NAME
-
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 -
REPUSH_TTL_FILTER_COUNT_GROUP_COUNTER_NAME
public static final MRJobCounterHelper.GroupAndCounterNames REPUSH_TTL_FILTER_COUNT_GROUP_COUNTER_NAME
-
-
Method Details
-
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) -
incrUncompressedRecordTooLargeFailureCount
public static void incrUncompressedRecordTooLargeFailureCount(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) -
getUncompressedRecordTooLargeFailureCount
public static long getUncompressedRecordTooLargeFailureCount(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) -
getUncompressedRecordTooLargeFailureCount
public static long getUncompressedRecordTooLargeFailureCount(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) -
getRepushTtlFilterCount
public static long getRepushTtlFilterCount(org.apache.hadoop.mapred.Counters counters) -
incrRepushTtlFilterCount
public static void incrRepushTtlFilterCount(org.apache.hadoop.mapred.Reporter reporter, long amount)
-