Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is there a way to get Ticket expiration time from JAVA program using Hadoop APIs'?

avatar
Super Collaborator
 
1 ACCEPTED SOLUTION

avatar

For that you will need to get access to javax.security.auth.kerberos.KerberosTicket, the class in Hadoop UesrGroupInformation provides API to manage that, however the closest method to deal with expirations is checkTGTAndReloginFromKeytab which is likely not what you want.

View solution in original post

2 REPLIES 2

avatar

For that you will need to get access to javax.security.auth.kerberos.KerberosTicket, the class in Hadoop UesrGroupInformation provides API to manage that, however the closest method to deal with expirations is checkTGTAndReloginFromKeytab which is likely not what you want.

avatar

Looking at the source; it's almost possible to do it, but the checks are hidden in some private/protected code. It's something that could be made public -why not file a JIRA on the Apache server?