Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Setting ClassLoader in HBaseConfiguration


Copy link to this message
-
Re: Setting ClassLoader in HBaseConfiguration
Since HBaseConfiguration extends Configuration, can you utilize this method
from Configuration ?

  public void setClassLoader(ClassLoader classLoader) {
Thanks

On Sun, Apr 21, 2013 at 10:00 AM, Amit Sela <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I'm trying to run an HBase client from an OSGI environment and for that I
> need to set the Configuration classLoader.
> In Configuration (Hadoop) itself, there is a method for that but since
> HBaseConfiguration.create() is static the only solution I found was:
>
> Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
> before calling HBaseConfiguration.create() .
>
> Should there be HBaseConfiguration.create(ClassLoader classLoader) ?
>
> Thanks,
>
> Amit.
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB