java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.service.ServiceTimelineClientImpl@Public
@Evolving
public abstract class TimelineClient
extends org.apache.hadoop.service.CompositeService
implements java.io.Flushable
TimelineV2Client for ATS V2 interface.| Modifier | Constructor | Description |
|---|---|---|
protected |
TimelineClient(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) |
Cancel a timeline delegation token.
|
static TimelineClient |
createTimelineClient() |
Creates an instance of the timeline v.1.x client.
|
abstract org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> |
getDelegationToken(java.lang.String renewer) |
Get a delegation token so as to be able to talk to the timeline server in a
secure way.
|
abstract void |
putDomain(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain) |
Send the information of a domain to the timeline server.
|
abstract void |
putDomain(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain) |
Send the information of a domain to the timeline server.
|
abstract org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse |
putEntities(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId groupId,
org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities) |
Send the information of a number of conceptual entities to the timeline
server.
|
abstract org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse |
putEntities(org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities) |
Send the information of a number of conceptual entities to the timeline
server.
|
abstract long |
renewDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) |
Renew a timeline delegation token.
|
addIfService, addService, getServices, removeService, serviceInit, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@Public public static TimelineClient createTimelineClient()
UserGroupInformation.doAs(java.security.PrivilegedAction<T>) another user to construct and initialize
a timeline client if the following operations are supposed to be conducted
by that user.@Public
public abstract org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse putEntities(org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities to the timeline server. It is a blocking API. The method will not return until it gets the response from the timeline server.
entities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalid@Public
public abstract org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse putEntities(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId groupId,
org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities to the timeline server. It is a blocking API. The method will not return until it gets the response from the timeline server. This API is only for timeline service v1.5
appAttemptId - ApplicationAttemptIdgroupId - TimelineEntityGroupIdentities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalid@Public
public abstract void putDomain(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a domain to the timeline server. It is a blocking API. The method will not return until it gets the response from the timeline server.
domain - an TimelineDomain objectjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.@Public
public abstract void putDomain(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a domain to the timeline server. It is a blocking API. The method will not return until it gets the response from the timeline server. This API is only for timeline service v1.5
domain - an TimelineDomain objectappAttemptId - ApplicationAttemptIdjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.@Public public abstract org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> getDelegationToken(java.lang.String renewer) throws java.io.IOException, org.apache.hadoop.yarn.exceptions.YarnException
Get a delegation token so as to be able to talk to the timeline server in a secure way.
renewer - Address of the renewer who can renew these tokens when needed by
securely talking to the timeline serverToken) that can be used to talk to the
timeline serverjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.@Public public abstract long renewDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) throws java.io.IOException, org.apache.hadoop.yarn.exceptions.YarnException
Renew a timeline delegation token.
timelineDT - the delegation token to renewjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.@Public public abstract void cancelDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) throws java.io.IOException, org.apache.hadoop.yarn.exceptions.YarnException
Cancel a timeline delegation token.
timelineDT - the delegation token to canceljava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.