Class ReporterBackedMapReduceDataWriterTaskTracker
java.lang.Object
com.linkedin.venice.hadoop.mapreduce.datawriter.task.ReporterBackedMapReduceDataWriterTaskTracker
- All Implemented Interfaces:
DataWriterTaskTracker
,TaskTracker
public class ReporterBackedMapReduceDataWriterTaskTracker
extends Object
implements DataWriterTaskTracker
An interface to report and retrieve metrics related to data writer tasks during the execution of a MapReduce job.
-
Field Summary
Fields inherited from interface com.linkedin.venice.hadoop.task.TaskTracker
PROGRESS_COMPLETED, PROGRESS_NOT_SUPPORTED
-
Constructor Summary
ConstructorDescriptionReporterBackedMapReduceDataWriterTaskTracker
(org.apache.hadoop.mapred.Reporter reporter) -
Method Summary
Modifier and TypeMethodDescriptionlong
float
Get the progress of the task.long
org.apache.hadoop.mapred.Reporter
long
long
long
long
void
Report task heartbeat if the execution engine requires itvoid
trackCompressedValueSize
(int size) void
trackDuplicateKeyWithDistinctValue
(int count) void
trackDuplicateKeyWithIdenticalValue
(int count) void
void
trackGzipCompressedValueSize
(int size) void
trackKeySize
(int size) void
void
void
void
void
void
void
trackUncompressedValueSize
(int size) void
void
trackZstdCompressedValueSize
(int size) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.hadoop.task.datawriter.DataWriterTaskTracker
getOutputRecordsCount, getPartitionWriterCloseCount, getRepushTtlFilterCount, getSprayAllPartitionsCount, getTotalGzipCompressedValueSize, getTotalUncompressedValueSize, getTotalZstdCompressedValueSize
-
Constructor Details
-
ReporterBackedMapReduceDataWriterTaskTracker
public ReporterBackedMapReduceDataWriterTaskTracker(org.apache.hadoop.mapred.Reporter reporter)
-
-
Method Details
-
getReporter
public org.apache.hadoop.mapred.Reporter getReporter() -
heartbeat
public void heartbeat()Description copied from interface:TaskTracker
Report task heartbeat if the execution engine requires it- Specified by:
heartbeat
in interfaceTaskTracker
-
getProgress
public float getProgress()Description copied from interface:TaskTracker
Get the progress of the task. If the engine supports fetching the progress, progress is represented as a number between 0 and 1 (inclusive). If the engine doesn't support fetching the progress, a value of -1 is returned.- Specified by:
getProgress
in interfaceTaskTracker
-
trackSprayAllPartitions
public void trackSprayAllPartitions()- Specified by:
trackSprayAllPartitions
in interfaceDataWriterTaskTracker
-
trackEmptyRecord
public void trackEmptyRecord()- Specified by:
trackEmptyRecord
in interfaceDataWriterTaskTracker
-
trackKeySize
public void trackKeySize(int size) - Specified by:
trackKeySize
in interfaceDataWriterTaskTracker
-
trackUncompressedValueSize
public void trackUncompressedValueSize(int size) - Specified by:
trackUncompressedValueSize
in interfaceDataWriterTaskTracker
-
trackCompressedValueSize
public void trackCompressedValueSize(int size) - Specified by:
trackCompressedValueSize
in interfaceDataWriterTaskTracker
-
trackGzipCompressedValueSize
public void trackGzipCompressedValueSize(int size) - Specified by:
trackGzipCompressedValueSize
in interfaceDataWriterTaskTracker
-
trackZstdCompressedValueSize
public void trackZstdCompressedValueSize(int size) - Specified by:
trackZstdCompressedValueSize
in interfaceDataWriterTaskTracker
-
trackWriteAclAuthorizationFailure
public void trackWriteAclAuthorizationFailure()- Specified by:
trackWriteAclAuthorizationFailure
in interfaceDataWriterTaskTracker
-
trackRecordTooLargeFailure
public void trackRecordTooLargeFailure()- Specified by:
trackRecordTooLargeFailure
in interfaceDataWriterTaskTracker
-
trackRecordSentToPubSub
public void trackRecordSentToPubSub()- Specified by:
trackRecordSentToPubSub
in interfaceDataWriterTaskTracker
-
trackDuplicateKeyWithDistinctValue
public void trackDuplicateKeyWithDistinctValue(int count) - Specified by:
trackDuplicateKeyWithDistinctValue
in interfaceDataWriterTaskTracker
-
trackDuplicateKeyWithIdenticalValue
public void trackDuplicateKeyWithIdenticalValue(int count) - Specified by:
trackDuplicateKeyWithIdenticalValue
in interfaceDataWriterTaskTracker
-
trackRepushTtlFilteredRecord
public void trackRepushTtlFilteredRecord()- Specified by:
trackRepushTtlFilteredRecord
in interfaceDataWriterTaskTracker
-
trackPartitionWriterClose
public void trackPartitionWriterClose()- Specified by:
trackPartitionWriterClose
in interfaceDataWriterTaskTracker
-
trackPutOrDeleteRecord
public void trackPutOrDeleteRecord()- Specified by:
trackPutOrDeleteRecord
in interfaceDataWriterTaskTracker
-
getTotalKeySize
public long getTotalKeySize()- Specified by:
getTotalKeySize
in interfaceDataWriterTaskTracker
-
getTotalValueSize
public long getTotalValueSize()- Specified by:
getTotalValueSize
in interfaceDataWriterTaskTracker
-
getRecordTooLargeFailureCount
public long getRecordTooLargeFailureCount()- Specified by:
getRecordTooLargeFailureCount
in interfaceDataWriterTaskTracker
-
getWriteAclAuthorizationFailureCount
public long getWriteAclAuthorizationFailureCount()- Specified by:
getWriteAclAuthorizationFailureCount
in interfaceDataWriterTaskTracker
-
getDuplicateKeyWithDistinctValueCount
public long getDuplicateKeyWithDistinctValueCount()- Specified by:
getDuplicateKeyWithDistinctValueCount
in interfaceDataWriterTaskTracker
-
getTotalPutOrDeleteRecordsCount
public long getTotalPutOrDeleteRecordsCount()- Specified by:
getTotalPutOrDeleteRecordsCount
in interfaceDataWriterTaskTracker
-