[ 
https://issues.apache.org/jira/browse/TWILL-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189733#comment-14189733
 ] 

Alvin Wang commented on TWILL-106:
----------------------------------

Removing the FileSystem.close() makes the token from 
UserGroupInformation.getCurrentUser().getTokens() get updated properly. 
However, it's still possible that after a day, we will get the same "token 
can't be found in cache" error with a day-old token rather than the current 
token.

> HDFS delegation token is not being refreshed properly
> -----------------------------------------------------
>
>                 Key: TWILL-106
>                 URL: https://issues.apache.org/jira/browse/TWILL-106
>             Project: Apache Twill
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.4.0-incubating
>            Reporter: Poorna Chandra
>
> We have a Twill app that runs in a secure Hadoop cluster. The app starts up 
> fine, and runs for a day. I can see in logs that say secure store was updated 
> regularly. However, after a day I see exceptions that say "token 
> (HDFS_DELEGATION_TOKEN token 4287 for yarn) can't be found in cache". 
> Exception:
> -------------
> 2014-10-23T04:12:42,101Z ERROR c.c.t.TransactionManager 
> [cdap-secure120-1000.dev.continuuity.net] [tx-snapshot] 
> TransactionManager:abortService(TransactionManager.java:594) - Aborting 
> transaction manager due to: Snapshot (timestamp 1414037562088) failed due to: 
> token (HDFS_DELEGATION_TOKEN token 4287 for yarn) can't be found in cache
> org.apache.hadoop.ipc.RemoteException: token (HDFS_DELEGATION_TOKEN token 
> 4287 for yarn) can't be found in cache
>         at org.apache.hadoop.ipc.Client.call(Client.java:1347)
> ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to