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:
parent
3b57b151c9
commit
7d6fa858ca
|
@ -590,6 +590,9 @@ Release 0.22.0 - Unreleased
|
||||||
HADOOP-6898. FileSystem.copyToLocal creates files with 777 permissions.
|
HADOOP-6898. FileSystem.copyToLocal creates files with 777 permissions.
|
||||||
(Aaron T. Myers via tomwhite)
|
(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
|
Release 0.21.1 - Unreleased
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -123,6 +123,16 @@
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</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 -->
|
<!--- logging properties -->
|
||||||
|
|
||||||
<property>
|
<property>
|
||||||
|
|
|
@ -560,7 +560,7 @@ public class UserGroupInformation {
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
String cmd = conf.get("hadoop.kerberos.kinit.command",
|
String cmd = conf.get("hadoop.kerberos.kinit.command",
|
||||||
"/usr/kerberos/bin/kinit");
|
"kinit");
|
||||||
KerberosTicket tgt = getTGT();
|
KerberosTicket tgt = getTGT();
|
||||||
if (tgt == null) {
|
if (tgt == null) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue