HADOOP-7229. Do not default to an absolute path for kinit in Kerberos auto-renewal thread. Contributed by Aaron T. Myers.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1095563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-04-20 23:53:05 +00:00
parent 3b57b151c9
commit 7d6fa858ca
3 changed files with 14 additions and 1 deletions

View File

@ -590,6 +590,9 @@ Release 0.22.0 - Unreleased
HADOOP-6898. FileSystem.copyToLocal creates files with 777 permissions.
(Aaron T. Myers via tomwhite)
HADOOP-7229. Do not default to an absolute path for kinit in Kerberos
auto-renewal thread. (Aaron T. Myers via todd)
Release 0.21.1 - Unreleased
IMPROVEMENTS

View File

@ -123,6 +123,16 @@
</description>
</property>
<property>
<name>hadoop.kerberos.kinit.command</name>
<value>kinit</value>
<description>Used to periodically renew Kerberos credentials when provided
to Hadoop. The default setting assumes that kinit is in the PATH of users
running the Hadoop client. Change this to the absolute path to kinit if this
is not the case.
</description>
</property>
<!--- logging properties -->
<property>

View File

@ -560,7 +560,7 @@ private void spawnAutoRenewalThreadForUserCreds() {
public void run() {
String cmd = conf.get("hadoop.kerberos.kinit.command",
"/usr/kerberos/bin/kinit");
"kinit");
KerberosTicket tgt = getTGT();
if (tgt == null) {
return;