public class RetryableJobProgressTrackerClient extends Object implements JobProgressTrackerClient
| Modifier and Type | Field and Description |
|---|---|
static IntConfOption |
RETRYABLE_JOB_PROGRESS_CLIENT_NUM_RETRIES
Conf option for number of retries
|
static IntConfOption |
RETRYABLE_JOB_PROGRESS_CLIENT_RETRY_WAIT_MS
Conf option for wait time between retries
|
| Constructor and Description |
|---|
RetryableJobProgressTrackerClient()
Default constructor.
|
RetryableJobProgressTrackerClient(GiraphConfiguration conf)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Close the connections if any
|
void |
init(GiraphConfiguration conf)
Initialize the client.
|
void |
logError(String logLine,
byte[] exByteArray)
Call this when you want to log an error line and exception
object from any mapper to command line
KryoWritableWrapper.convertFromByteArray can be used to
get exception object back
|
void |
logFailure(String reason)
Notify that job is failing
|
void |
logInfo(String logLine)
Call this when you want to log an info line from any mapper to command line
|
void |
mapperStarted()
Notify JobProgressTracker that mapper started
|
void |
sendMasterCounters(GiraphCountersThriftStruct giraphCounters)
Master should call this method after all supersteps are finished,
and send the aggregated counters to the job client
|
void |
updateMasterProgress(MasterProgress masterProgress)
Master should call this method to update its progress
|
void |
updateProgress(WorkerProgress workerProgress)
Workers should call this method to update their progress
|
public static final IntConfOption RETRYABLE_JOB_PROGRESS_CLIENT_NUM_RETRIES
public static final IntConfOption RETRYABLE_JOB_PROGRESS_CLIENT_RETRY_WAIT_MS
public RetryableJobProgressTrackerClient()
init(GiraphConfiguration).public RetryableJobProgressTrackerClient(GiraphConfiguration conf) throws ExecutionException, InterruptedException
conf - Giraph configurationExecutionExceptionInterruptedExceptionpublic void init(GiraphConfiguration conf) throws Exception
JobProgressTrackerClientinit in interface JobProgressTrackerClientconf - Job configurationExceptionpublic void cleanup()
throws IOException
JobProgressTrackerClientcleanup in interface JobProgressTrackerClientIOExceptionpublic void mapperStarted()
JobProgressTrackermapperStarted in interface JobProgressTrackerpublic void logInfo(String logLine)
JobProgressTrackerlogInfo in interface JobProgressTrackerlogLine - Line to logpublic void logError(String logLine, byte[] exByteArray)
JobProgressTrackerlogError in interface JobProgressTrackerlogLine - Line to logexByteArray - Exception byte arraypublic void logFailure(String reason)
JobProgressTrackerlogFailure in interface JobProgressTrackerreason - Reason for failurepublic void updateProgress(WorkerProgress workerProgress)
JobProgressTrackerupdateProgress in interface JobProgressTrackerworkerProgress - Progress of the workerpublic void updateMasterProgress(MasterProgress masterProgress)
JobProgressTrackerupdateMasterProgress in interface JobProgressTrackermasterProgress - Progress of the masterpublic void sendMasterCounters(GiraphCountersThriftStruct giraphCounters)
JobProgressTrackersendMasterCounters in interface JobProgressTrackergiraphCounters - Giraph-based countersCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.