Skip to content

Commit

Permalink
[27845] Fixed the way Spark determines Hive’s security configuration (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorbov authored Jun 23, 2017
1 parent 6917681 commit 52b06b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ private[security] class HiveCredentialProvider extends ServiceCredentialProvider
}
}

override def credentialsRequired(hadoopConf: Configuration): Boolean = {
override def credentialsRequired(hadoopConf: Configuration): Boolean =
UserGroupInformation.isSecurityEnabled &&
hiveConf(hadoopConf).getTrimmed("hive.metastore.uris", "").nonEmpty
}
hiveConf(hadoopConf).getTrimmed("hive.metastore.uris", "").nonEmpty &&
hiveConf(hadoopConf).getBoolean("hive.metastore.sasl.enabled", false)

override def obtainCredentials(
hadoopConf: Configuration,
Expand Down

0 comments on commit 52b06b9

Please sign in to comment.