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

Hiveconf initiated in "fat jar" fails to retrieve configuration from hive-common jar

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Description

      Hiveconf initiated in "fat jar" assembled by spring boot maven plugin cannot access configuratiuon file, getting uri is not hierarchical (constructed URI starts with jar:  ).

      e.g.

      _jar:file:/opt/someproject/someproject.jar!/BOOT-INF/lib/hive-common-2.3.2.jar!/_

      relebant stack trace

      Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
      at java.io.File.<init>(File.java:418) ~[?:1.8.0_144]
      at org.apache.hadoop.hive.conf.HiveConf.findConfigFile(HiveConf.java:176) ~[hive-common-2.3.2.jar!/:2.3.2]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dpolonsky Danny Polonsky
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: