Class MRClientProtocolPBClientImpl
java.lang.Object
org.apache.hadoop.mapreduce.v2.api.impl.pb.client.MRClientProtocolPBClientImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,MRClientProtocol
- Direct Known Subclasses:
HSClientProtocolPBClientImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMRClientProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionCancel an existing delegation token.voidclose()failTaskAttempt(FailTaskAttemptRequest request) Address to which the client is connectedgetCounters(GetCountersRequest request) getDiagnostics(GetDiagnosticsRequest request) getJobReport(GetJobReportRequest request) getTaskReport(GetTaskReportRequest request) getTaskReports(GetTaskReportsRequest request) killJob(KillJobRequest request) killTask(KillTaskRequest request) killTaskAttempt(KillTaskAttemptRequest request) Renew an existing delegation token.
-
Field Details
-
proxy
-
-
Constructor Details
-
MRClientProtocolPBClientImpl
public MRClientProtocolPBClientImpl() -
MRClientProtocolPBClientImpl
public MRClientProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
getConnectAddress
Description copied from interface:MRClientProtocolAddress to which the client is connected- Specified by:
getConnectAddressin interfaceMRClientProtocol- Returns:
- InetSocketAddress
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getJobReport
- Specified by:
getJobReportin interfaceMRClientProtocol- Throws:
IOException
-
getTaskReport
- Specified by:
getTaskReportin interfaceMRClientProtocol- Throws:
IOException
-
getTaskAttemptReport
public GetTaskAttemptReportResponse getTaskAttemptReport(GetTaskAttemptReportRequest request) throws IOException - Specified by:
getTaskAttemptReportin interfaceMRClientProtocol- Throws:
IOException
-
getCounters
- Specified by:
getCountersin interfaceMRClientProtocol- Throws:
IOException
-
getTaskAttemptCompletionEvents
public GetTaskAttemptCompletionEventsResponse getTaskAttemptCompletionEvents(GetTaskAttemptCompletionEventsRequest request) throws IOException - Specified by:
getTaskAttemptCompletionEventsin interfaceMRClientProtocol- Throws:
IOException
-
getTaskReports
- Specified by:
getTaskReportsin interfaceMRClientProtocol- Throws:
IOException
-
getDiagnostics
- Specified by:
getDiagnosticsin interfaceMRClientProtocol- Throws:
IOException
-
getDelegationToken
public GetDelegationTokenResponse getDelegationToken(GetDelegationTokenRequest request) throws IOException - Specified by:
getDelegationTokenin interfaceMRClientProtocol- Throws:
IOException
-
killJob
- Specified by:
killJobin interfaceMRClientProtocol- Throws:
IOException
-
killTask
- Specified by:
killTaskin interfaceMRClientProtocol- Throws:
IOException
-
killTaskAttempt
- Specified by:
killTaskAttemptin interfaceMRClientProtocol- Throws:
IOException
-
failTaskAttempt
- Specified by:
failTaskAttemptin interfaceMRClientProtocol- Throws:
IOException
-
renewDelegationToken
public RenewDelegationTokenResponse renewDelegationToken(RenewDelegationTokenRequest request) throws IOException Description copied from interface:MRClientProtocolRenew an existing delegation token.- Specified by:
renewDelegationTokenin interfaceMRClientProtocol- Parameters:
request- the delegation token to be renewed.- Returns:
- the new expiry time for the delegation token.
- Throws:
IOException
-
cancelDelegationToken
public CancelDelegationTokenResponse cancelDelegationToken(CancelDelegationTokenRequest request) throws IOException Description copied from interface:MRClientProtocolCancel an existing delegation token.- Specified by:
cancelDelegationTokenin interfaceMRClientProtocol- Parameters:
request- the delegation token to be cancelled.- Returns:
- an empty response.
- Throws:
IOException
-