You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/07/10 17:40:00 UTC

[jira] [Work logged] (HIVE-23700) HiveConf static initialization fails when JAR URI is opaque

     [ https://issues.apache.org/jira/browse/HIVE-23700?focusedWorklogId=457273&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-457273 ]

ASF GitHub Bot logged work on HIVE-23700:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Jul/20 17:39
            Start Date: 10/Jul/20 17:39
    Worklog Time Spent: 10m 
      Work Description: uptycs-anudeep opened a new pull request #1240:
URL: https://github.com/apache/hive/pull/1240


   ## NOTICE
   
   Please create an issue in ASF JIRA before opening a pull request,
   and you need to set the title of the pull request which starts with
   the corresponding JIRA issue number. (e.g. HIVE-XXXXX: Fix a typo in YYY)
   For more details, please see https://cwiki.apache.org/confluence/display/Hive/HowToContribute
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 457273)
    Remaining Estimate: 119h 20m  (was: 119.5h)
            Time Spent: 40m  (was: 0.5h)

> HiveConf static initialization fails when JAR URI is opaque
> -----------------------------------------------------------
>
>                 Key: HIVE-23700
>                 URL: https://issues.apache.org/jira/browse/HIVE-23700
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 2.3.7
>            Reporter: Francisco Guerrero
>            Assignee: Francisco Guerrero
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: HIVE-23700.1.patch
>
>   Original Estimate: 120h
>          Time Spent: 40m
>  Remaining Estimate: 119h 20m
>
> HiveConf static initialization fails when the jar URI is opaque, for example when it's embedded as a fat jar in a spring boot application. Then initialization of the HiveConf static block fails and the HiveConf class does not get classloaded. The opaque URI in my case looks like this _jar:file:/usr/local/server/some-service-jar.jar!/BOOT-INF/lib/hive-common-2.3.7.jar!/_
> HiveConf#findConfigFile should be able to handle `IllegalArgumentException` when the jar `URI` provided to `File` throws the exception.
> To surface this issue three conditions need to be met.
> 1. hive-site.xml should not be on the classpath
> 2. hive-site.xml should not be on "HIVE_CONF_DIR"
> 3. hive-site.xml should not be on "HIVE_HOME"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)