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/12/31 08:39:00 UTC

[jira] [Work logged] (HIVE-17155) findConfFile() in HiveConf.java has some issues with the conf path

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

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

                Author: ASF GitHub Bot
            Created on: 31/Dec/20 08:38
            Start Date: 31/Dec/20 08:38
    Worklog Time Spent: 10m 
      Work Description: baibaichen opened a new pull request #1820:
URL: https://github.com/apache/hive/pull/1820


   Cherry pick HIVE-17155 from master branch
   
   ### What changes were proposed in this pull request?
   make `findConfigFile` can handle jar protocol
   
   ### Why are the changes needed?
   When **spring-boot-maven-plugin** is used, we use  `java -jar` to launch program, and have to use  `org.springframework.boot.loader.LaunchedURLClassLoader` to load class, in such case, jar protocol is used.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   current UT
   


----------------------------------------------------------------
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: 529728)
    Remaining Estimate: 0h
            Time Spent: 10m

> findConfFile() in HiveConf.java has some issues with the conf path
> ------------------------------------------------------------------
>
>                 Key: HIVE-17155
>                 URL: https://issues.apache.org/jira/browse/HIVE-17155
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 2.3.7, 3.0.0
>            Reporter: Aihua Xu
>            Assignee: xiaoqiang_song
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: HIVE-17155.1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In findConfFile() function of HiveConf.java, here are some issues. File.pathSeparator which is ":" is used as the separator rather than "/". new File(jarUri).getParentFile() will get the "$hive_home/lib" folder, but actually we want "$hive_home".



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