Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Failed to get the response from the timeline server

Highlighted

Failed to get the response from the timeline server

New Contributor

Hi,

My team create an yarn application which can put entities to Yarn Timeline Server periodically. After we enable security with Kerberos on our cluster, our program still works fine. But when we change the yarn-site.xml as follows:

http://imgur.com/EuY6EHs

Our program cannot finish because of the Yarn Exceptions:

http://imgur.com/s8uvNME

So, what should we do to fix it?

3 REPLIES 3

Re: Failed to get the response from the timeline server

New Contributor

This is the code snapshot of your yarn Exception;

resp.getClientResponseStatus() != ClientResponse.Status.OK)

What you are providing here is not enough to determine the culprit. you could be having any type of response from 300s, 400s or 500s.

Please provide more details.

Re: Failed to get the response from the timeline server

New Contributor

This is what I get from log at DEBUG Level:

http://imgur.com/hBw4yZg

So the reason is that our token is expired, but I don't know how to renew it.

At I notice, in Tez source code, they also use TimelineClient to put entities to Yarn Timeline Server, they do not have anything to renew the token, right?

Re: Failed to get the response from the timeline server

New Contributor

Tokens are from client application to access Yarn infrastructure. Hadoop use the org.apache.hadoop.fs.DelegationTokenRenewer thread to handle such a job. It is the responsibility of all application to renew all tokens. Start a background thread/executor to renew the tokens at a regular interval.

https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/ap...