Does Apache Phoenix automatically renew Kerberos tickets for long-running queries?
0 reputation · 24 Sept 2026, 18:54 UTC
0 reputation · 24 Sept 2026, 18:54 UTC
Goal: Determine whether Phoenix handles Kerberos ticket renewal automatically for queries that exceed the default ticket lifetime.
Does the HBase client automatically renew Kerberos tickets during a Phoenix query when renewal is enabled? If not, what mechanisms can prevent query failure due to expired tickets? Is there a way for Phoenix to propagate renewal settings to the underlying HBase client?
34775 reputation · 25 Sept 2026, 00:35 UTC
No. Apache Phoenix does not automatically renew Kerberos tickets for long-running queries. Phoenix delegates authentication to the HBase security layer, so ticket renewal is a property of the Kerberos login environment and the HBase client, not a Phoenix setting.
| Item | Status |
|---|---|
| Phoenix exposes a ticket-renewal interval | No standard setting |
| Renewal depends on a renewable TGT and login configuration | Expected in HBase/Hadoop Kerberos |
| Expired ticket during a long scan can fail the query | Possible; may surface as GSSAPI/Kerberos failures |
A renewable ticket must be renewed before its end time. If the ticket expires while a Phoenix query is running, the underlying HBase scan may fail or partially fail; Phoenix itself does not restart the Kerberos exchange on the user's behalf.
kinit -kt <keytab> <principal> -l <lifetime> -r <renew-till>klist -ekinit -R or krenew, scheduled well before the renew-till limit.hbase.security.authentication=kerberos in hbase-site.xml.Are you using embedded Phoenix JDBC or the Phoenix Query Server thin client? Renewal configuration and JAAS login placement can differ between these modes, so this determines where to apply the client-side Kerberos settings.
klist -e after kinit and confirm renew-till is later than the expected query duration.core-site.xml, hbase-site.xml, krb5.conf, and the client JAAS configuration for matching principals.This assumes Kerberos is enabled for HBase. Exact behavior can vary by Phoenix, HBase, and Hadoop version, and by client mode. Treat version-specific renewal defaults as unverified until tested in your environment.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.