Skip to content

Commit 5664a5e

Browse files
committed
note that UGI.renewTGT is low cost if not needed
1 parent 89c5c0d commit 5664a5e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

sections/jdk_versions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ Using internal classes is one of those "don't do this your code will be unreliab
3939
### Key things to know
4040

4141
* Hadoop is built and tested against the Oracle JDKs
42-
* Open JDK has the same classes & methods, so will behave consistently; it's tested against too.
42+
* Open JDK has the same classes and methods, so will behave consistently; it's tested against too.
4343
* It's left to the vendors of other JVMs to test their code; the patches are taken on trust.
4444
* The Kerberos internal access usually needs fixing across Java versions. This means secure Hadoop clusters absolutely require the Java versions listed on the download requirements.
45-
* Releases within a Java version may break the internals and/or the public API's behaviour.
45+
* Releases within a Java version may break the internals and/or the public API's behaviour.
4646
* If you want to see the details of Hadoop's binding, look in `org.apache.hadoop.security.authentication.util.KerberosUtil` in the `hadoop-auth` module.
4747

4848
To put it differently:

sections/ugi.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,14 @@ must be loaded in advance.
126126

127127
If security is not enabled, this is a no-op.
128128

129-
If security is enabled, this will trigger a re-login if needed (which may fail,
129+
If security is enabled, and the last login took place "long enough ago",
130+
this will trigger a re-login if needed (which may fail,
130131
of course).
131132

133+
If the last successful login was recent enough, this will be a no-op. This makes it a low
134+
cost operation to include in IPC/REST client operations so as to ensure that your
135+
tickets are up to date.
136+
132137
*Important*: If the login fails, UGI will remember this and not retry until a time
133138
limit has passed, even if other methods invoke the operation. The property
134139
`hadoop.kerberos.min.seconds.before.relogin` controls this delay; the default is 60s.

0 commit comments

Comments
 (0)