iodone opened a new issue #900:
URL: https://github.com/apache/incubator-kyuubi/issues/900


   ### 1. Describe the bug
   
   <!-- A clear and concise description of what the bug is. -->
   Code: 
   
https://github.com/apache/incubator-kyuubi/blob/1a76d77b6fe37902161b770b31ffc5b0e5006fb4/kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala#L47-L57
   
   Call `getClass.getClassLoader.getResource(KYUUBI_CONF_FILE_NAME))` function 
in fat jar,the root path of the project execution is not available as expected. 
So the `kyuubi-default.conf` file under resource cannot be loaded when the 
program starts(Just the scene in fat jar). 
   
   Solution: To be compatible with current single jars and fat jars, we can 
replace `getResource` with `getResourceAsStream` 
   
   ### 2. Environments
   
   #### 2.1 Versions
   
   - Kyuubi
     - [ x ] 1.2.0
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to