Skip to content

Commit 84b5e55

Browse files
add logger.warn for hive and impersonation
1 parent 45c90a8 commit 84b5e55

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/interpreter/jdbc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ When Zeppelin server is running with authentication enabled, then the interprete
538538

539539
To enable this set following:
540540
- `zeppelin.jdbc.auth.type` as `SIMPLE` or `KERBEROS` (if required) in the interpreter setting.
541-
- `{propertyKey}.proxy.user.property` as `hive.server2.proxy.user`
541+
- `${prefix}.proxy.user.property` as `hive.server2.proxy.user`
542542
Example configuration
543543

544544
*Properties*

jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ private String appendProxyUserToURL(String url, String user, String propertyKey)
413413
basePropretiesMap.get(propertyKey).getProperty("proxy.user.property"));
414414
connectionUrl.insert(lastIndexOfUrl, ";" +
415415
basePropretiesMap.get(propertyKey).getProperty("proxy.user.property") + "=" + user + ";");
416+
} else if (user != null && !user.equals("anonymous") && url.contains("hive")) {
417+
logger.warn("User impersonation for hive has changed please refer: http://zeppelin.apache" +
418+
".org/docs/latest/interpreter/jdbc.html#apache-hive");
416419
}
417420

418421
return connectionUrl.toString();

0 commit comments

Comments
 (0)