mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
add logger.warn for hive and impersonation
This commit is contained in:
parent
45c90a8e2c
commit
84b5e55b28
2 changed files with 4 additions and 1 deletions
|
|
@ -538,7 +538,7 @@ When Zeppelin server is running with authentication enabled, then the interprete
|
|||
|
||||
To enable this set following:
|
||||
- `zeppelin.jdbc.auth.type` as `SIMPLE` or `KERBEROS` (if required) in the interpreter setting.
|
||||
- `{propertyKey}.proxy.user.property` as `hive.server2.proxy.user`
|
||||
- `${prefix}.proxy.user.property` as `hive.server2.proxy.user`
|
||||
Example configuration
|
||||
|
||||
*Properties*
|
||||
|
|
|
|||
|
|
@ -413,6 +413,9 @@ public class JDBCInterpreter extends Interpreter {
|
|||
basePropretiesMap.get(propertyKey).getProperty("proxy.user.property"));
|
||||
connectionUrl.insert(lastIndexOfUrl, ";" +
|
||||
basePropretiesMap.get(propertyKey).getProperty("proxy.user.property") + "=" + user + ";");
|
||||
} else if (user != null && !user.equals("anonymous") && url.contains("hive")) {
|
||||
logger.warn("User impersonation for hive has changed please refer: http://zeppelin.apache" +
|
||||
".org/docs/latest/interpreter/jdbc.html#apache-hive");
|
||||
}
|
||||
|
||||
return connectionUrl.toString();
|
||||
|
|
|
|||
Loading…
Reference in a new issue