[ 
https://issues.apache.org/jira/browse/HBASE-12108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303421#comment-14303421
 ] 

Aniket Bhatnagar commented on HBASE-12108:
------------------------------------------

I don't think adding a test case for this is plausible. The test would have to 
construct a class loader containing HBASE jar with it's parent class loader 
having hadoop jars. For constructing classpaths, we would need to pull in jars 
that seems like a bad idea for a test case.

> HBaseConfiguration
> ------------------
>
>                 Key: HBASE-12108
>                 URL: https://issues.apache.org/jira/browse/HBASE-12108
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 0.98.6
>            Reporter: Aniket Bhatnagar
>            Priority: Minor
>              Labels: class_loader, configuration, patch
>         Attachments: HBaseConfiguration_HBASE_HBASE-12108.patch
>
>
> IN the setup wherein HBase jars are loaded in child classloader whose parent 
> had loaded hadoop-common jar, HBaseConfiguration.create() throws 
> "hbase-default.xml file seems to be for and old version of HBase (null)... " 
> exception. ClassLoader should be set in Hadoop conf object before calling 
> addHbaseResources method



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to