hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Sela <am...@infolinks.com>
Subject Setting ClassLoader in HBaseConfiguration
Date Sun, 21 Apr 2013 17:00:53 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message