You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Kelu Tao (Jira)" <ji...@apache.org> on 2021/09/27 02:29:00 UTC

[jira] [Created] (ZEPPELIN-5540) Unexpected NPE when use hive in Flink Interpreter

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)