You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Ferdy Galema (JIRA)" <ji...@apache.org> on 2012/05/09 11:02:12 UTC

[jira] [Updated] (GORA-128) HBaseStore should be configurable to work with different qurom other than default one set in hbase-site.xml.

     [ https://issues.apache.org/jira/browse/GORA-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ferdy Galema updated GORA-128:
------------------------------

    Attachment: GORA-128.patch
    
> HBaseStore should be configurable to work with different qurom other than default one set in hbase-site.xml.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: GORA-128
>                 URL: https://issues.apache.org/jira/browse/GORA-128
>             Project: Apache Gora
>          Issue Type: New Feature
>          Components: storage-hbase
>            Reporter: raf shin
>              Labels: gora-hbase
>         Attachments: GORA-128.patch
>
>
> gora-hbase should be able to read/write from more than one hbase cluster. so it needs to connect to more than one zookeeper qurom. so when initializing in HbaseStore.initialize(...) we should get the configuration or property from caller and set those properties in the created HBaseConfiguration.
>  @Override
>   public void initialize(Class<K> keyClass, Class<T> persistentClass,
>       Properties properties) throws IOException {
>     super.initialize(keyClass, persistentClass, properties);
>     this.conf = new HBaseConfiguration();
> +
>     String key;
>     while(properties.keys().hasMoreElement()){
>            key = properties.keys().getNext();
>           conf.set(key,properties.keys().get(key));
>    }
>   HBaseAdmin admin = new HBaseAdmin(conf);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira