Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9024

NullPointerException when starting webhcat server if templeton.hive.properties is not set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 1.1.0, 1.0.2
    • Component/s: WebHCat
    • Labels:
      None

      Description

      If templeton.hive.properties is not set, when starting webhcat server, the following NullPointerException is thrown and webhcat server could not start:

      Exception in thread "main" java.lang.NullPointerException
              at org.apache.hive.hcatalog.templeton.AppConfig.hiveProps(AppConfig.java:318)
              at org.apache.hive.hcatalog.templeton.AppConfig.handleHiveProperties(AppConfig.java:194)
              at org.apache.hive.hcatalog.templeton.AppConfig.init(AppConfig.java:175)
              at org.apache.hive.hcatalog.templeton.AppConfig.<init>(AppConfig.java:155)
              at org.apache.hive.hcatalog.templeton.Main.loadConfig(Main.java:96)
              at org.apache.hive.hcatalog.templeton.Main.init(Main.java:80)
              at org.apache.hive.hcatalog.templeton.Main.<init>(Main.java:75)
              at org.apache.hive.hcatalog.templeton.Main.main(Main.java:267)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:197)
      

        Attachments

        1. HIVE-9024.patch
          1 kB
          Na Yang

          Activity

            People

            • Assignee:
              nyang Na Yang
              Reporter:
              nyang Na Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: