Kelu Tao created ZEPPELIN-5540:
----------------------------------
Summary: Unexpected NPE when use hive in Flink Interpreter
Key: ZEPPELIN-5540
URL: https://issues.apache.org/jira/browse/ZEPPELIN-5540
Project: Zeppelin
Issue Type: Bug
Components: flink
Reporter: Kelu Tao
When we use hive catalog in flink, the failed exception message is not expected.
In method `registerHiveCatalog`, when the env 'HIVE_CONF_DIR' is not set, we
expected the exception `InterpreterException("HIVE_CONF_DIR is not
specified")`. But before this code scope, it will throw a NPE in line 492,
because of `properties.getOrDefault("HIVE_CONF_DIR",
System.getenv("HIVE_CONF_DIR"))` is null.
The solution is straightforward: remove the `.toString`
--
This message was sent by Atlassian Jira
(v8.3.4#803005)