Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FMX committed Nov 8, 2023
1 parent f699aef commit 6049a29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object CelebornHadoopUtils extends Logging {
// If we are accessing HDFS and it has Kerberos enabled, we have to login
// from a keytab file so that we can access HDFS beyond the kerberos ticket expiration.
UserGroupInformation.setConfiguration(hadoopConf)
if ("kerberos" == hadoopConf.get("hadoop.security.authentication")) {
if ("kerberos".equals(hadoopConf.get("hadoop.security.authentication").toLowerCase)) {
val principal = conf.hdfsStorageKerberosPrincipal
.getOrElse(throw new NoSuchElementException(
CelebornConf.HDFS_STORAGE_KERBEROS_PRINCIPAL.key))
Expand Down

0 comments on commit 6049a29

Please sign in to comment.