Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5540

Unexpected NPE when use hive in Flink Interpreter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.1, 0.11.0
    • flink
    • None

    Description

      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`

      Attachments

        Activity

          People

            legendtkl Kelu Tao
            legendtkl Kelu Tao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m