add logger.warn for hive and impersonation

This commit is contained in:
Prabhjyot Singh 2017-04-30 00:15:19 +05:30
parent 45c90a8e2c
commit 84b5e55b28
2 changed files with 4 additions and 1 deletions

View file

@ -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*

View file

@ -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();