java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.service.Service@Private @Evolving public class TimelineClientImpl extends TimelineClient
| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.security.UserGroupInformation |
authUgi |
|
protected java.lang.String |
doAsUser |
|
protected org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token |
token |
| Constructor | Description |
|---|---|
TimelineClientImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) |
Cancel a timeline delegation token.
|
protected TimelineConnector |
createTimelineConnector() |
|
protected TimelineWriter |
createTimelineWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.UserGroupInformation ugi,
com.sun.jersey.api.client.Client webClient,
java.net.URI uri) |
|
void |
flush() |
|
TimelineConnector |
getConnector() |
|
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.
|
org.apache.hadoop.security.UserGroupInformation |
getUgi() |
|
void |
initFIPSIfNeeded(org.apache.hadoop.conf.Configuration conf) |
|
static void |
main(java.lang.String[] argv) |
|
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.
|
void |
putDomain(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain) |
Send the information of a domain to the timeline server.
|
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.
|
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.
|
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) |
Renew a timeline delegation token.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
|
void |
setTimelineWriter(TimelineWriter writer) |
|
java.lang.String |
toString() |
createTimelineClientaddIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@VisibleForTesting protected org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token token
@VisibleForTesting protected org.apache.hadoop.security.UserGroupInformation authUgi
@VisibleForTesting protected java.lang.String doAsUser
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServicejava.lang.Exception@VisibleForTesting protected TimelineConnector createTimelineConnector()
protected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected TimelineWriter createTimelineWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.UserGroupInformation ugi, com.sun.jersey.api.client.Client webClient, java.net.URI uri) throws java.io.IOException
java.io.IOExceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic void initFIPSIfNeeded(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
java.lang.Exceptionpublic 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
TimelineClientSend 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.
putEntities in class TimelineCliententities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic void putDomain(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
TimelineClientSend 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.
putDomain in class TimelineClientdomain - an TimelineDomain objectjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.public org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> getDelegationToken(java.lang.String renewer) throws java.io.IOException, org.apache.hadoop.yarn.exceptions.YarnException
TimelineClientGet a delegation token so as to be able to talk to the timeline server in a secure way.
getDelegationToken in class TimelineClientrenewer - 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 long renewDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) throws java.io.IOException, org.apache.hadoop.yarn.exceptions.YarnException
TimelineClientRenew a timeline delegation token.
renewDelegationToken in class TimelineClienttimelineDT - the delegation token to renewjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.public void cancelDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) throws java.io.IOException, org.apache.hadoop.yarn.exceptions.YarnException
TimelineClientCancel a timeline delegation token.
cancelDelegationToken in class TimelineClienttimelineDT - the delegation token to canceljava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.public java.lang.String toString()
toString in class org.apache.hadoop.service.AbstractServicepublic static void main(java.lang.String[] argv)
throws java.lang.Exception
java.lang.Exception@VisibleForTesting @Private public org.apache.hadoop.security.UserGroupInformation getUgi()
public 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
TimelineClientSend 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
putEntities in class TimelineClientappAttemptId - ApplicationAttemptIdgroupId - TimelineEntityGroupIdentities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic 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
TimelineClientSend 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
putDomain in class TimelineClientappAttemptId - ApplicationAttemptIddomain - an TimelineDomain objectjava.io.IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.@Private @VisibleForTesting public void setTimelineWriter(TimelineWriter writer)
@Private @VisibleForTesting public TimelineConnector getConnector()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.