You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Kay Kay (JIRA)" <ji...@apache.org> on 2010/01/27 01:09:34 UTC

[jira] Created: (HBASE-2170) hbase lightweight client library as a distribution

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.


[jira] Commented: (HBASE-2170) hbase lightweight client library as a distribution

Posted by "ryan rawson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833282#action_12833282 ] 

ryan rawson commented on HBASE-2170:
------------------------------------

in theory a client will only need the client/ and ipc/ directories and maybe a few more.  Also zookeeper. And some other libraries.



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


[jira] Commented: (HBASE-2170) hbase lightweight client library as a distribution

Posted by "Kay Kay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833341#action_12833341 ] 

Kay Kay commented on HBASE-2170:
--------------------------------

| that would make it simple to pull those packages out into a 'hbase-client' Maven module (see HBASE-2099). We could start by getting that depending on hbase-core, and exclude all transitive dependencies but add add back in the specific ones needed (zookeeper et al).

+1 . Along ryan's suggestion - it might need some minor refactoring to carve out the separate package , but it might worth the effort to focus on the releases of the server side. 

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


[jira] Commented: (HBASE-2170) hbase lightweight client library as a distribution

Posted by "Paul Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833286#action_12833286 ] 

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

bq. in theory a client will only need the client/ and ipc/ directories and maybe a few more. Also zookeeper. And some other libraries.

that would make it simple to pull those packages out into a 'hbase-client' Maven module (see HBASE-2099).  We could start by getting that depending on hbase-core, and exclude all transitive dependencies but add add back in the specific ones needed (zookeeper et al).



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


[jira] Commented: (HBASE-2170) hbase lightweight client library as a distribution

Posted by "Paul Smith (JIRA)" <ji...@apache.org>.
    [ 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.