HADOOP-15966. Hadoop Kerberos broken on macos as java.security.krb5.realm is reset.

Contributed by Steve Loughran
This commit is contained in:
Steve Loughran 2018-12-04 15:35:43 +00:00
parent 7274115d57
commit db2d8b01c6
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0

View File

@ -96,19 +96,6 @@
# section as to why.... # section as to why....
export HADOOP_OS_TYPE=${HADOOP_OS_TYPE:-$(uname -s)} export HADOOP_OS_TYPE=${HADOOP_OS_TYPE:-$(uname -s)}
# Under certain conditions, Java on OS X will throw SCDynamicStore errors
# in the system logs.
# See HADOOP-8719 for more information. If one needs Kerberos
# support on OS X, one will want to change/remove this extra bit.
case ${HADOOP_OS_TYPE} in
Darwin*)
export HADOOP_OPTS="${HADOOP_OPTS} -Djava.security.krb5.realm= "
export HADOOP_OPTS="${HADOOP_OPTS} -Djava.security.krb5.kdc= "
export HADOOP_OPTS="${HADOOP_OPTS} -Djava.security.krb5.conf= "
;;
esac
# Extra Java runtime options for some Hadoop commands # Extra Java runtime options for some Hadoop commands
# and clients (i.e., hdfs dfs -blah). These get appended to HADOOP_OPTS for # and clients (i.e., hdfs dfs -blah). These get appended to HADOOP_OPTS for
# such commands. In most cases, # this should be left empty and # such commands. In most cases, # this should be left empty and