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

Paul Smith commented on HBASE-2170:
-----------------------------------

One of the things I was actually starting to look at was related to this, over 
on HBASE-2051 there is a utility library, of which a tiny-weeny class was an 
HBaseConfigurationFactory class for Spring users (such as myself).

The lightweight client library in many cases only needs the basic parameters of 
the zookeeper location, and the path on HDFS.

{code}

Map<String, String> propertyMap = ImmutableMap.of("hbase.rootdir",
                "file:///tmp/hbase-${user.name}/hbase", 
"hbase.cluster.distributed", "false",
                "hbase.zookeeper.quorum", "localhost");

HBaseConfigurationFactory hBaseConfigurationFactory = new 
HBaseConfigurationFactory(
                propertyMap);

HBaseConfiguration config = (HBaseConfiguration) 
hbaseConfigurationFactory.getObject();

{code}

I think it's less about needing a smaller library, but more about a cleaner 
interface to create a logical 'connection' to the HBase cluster.

> hbase lightweight client library as a distribution 
> ---------------------------------------------------
>
>                 Key: HBASE-2170
>                 URL: https://issues.apache.org/jira/browse/HBASE-2170
>             Project: Hadoop HBase
>          Issue Type: Wish
>            Reporter: Kay Kay
>
> As a wish - it would be nice to have a hbase client library (subset of the 
> current hbase distribution) that needs to be present at the hbase client 
> level to interact with the master/region servers. 
> From an app integration - users of hbase can just link against the client 
> library as opposed to getting the entire library to link against. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to