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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.2
    • None
    • Configuration
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            dpolonsky Danny Polonsky

            Dates

              Created:
              Updated:

              Slack

                Issue deployment