Skip to content

Commit

Permalink
HIVE-24159: Kafka storage handler broken in secure environment pt2: s…
Browse files Browse the repository at this point in the history
…hort-circuit on non-secure environment (#1495) (Laszlo Bodor reviewed by Ashutosh Chauhan))
  • Loading branch information
abstractdog committed Sep 21, 2020
1 parent 03d2a39 commit f9d6e84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ public URI apply(Path path) {
}

private void getKafkaCredentials(MapWork work, DAG dag, JobConf conf) {
if (!UserGroupInformation.isSecurityEnabled()){
return;
}
Token<?> tokenCheck = dag.getCredentials().getToken(KAFKA_DELEGATION_TOKEN_KEY);
if (tokenCheck != null) {
LOG.debug("Kafka credentials already added, skipping...");
Expand Down

0 comments on commit f9d6e84

Please sign in to comment.