[
https://issues.apache.org/jira/browse/GORA-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281619#comment-13281619
]
Ferdy Galema commented on GORA-128:
-----------------------------------
My previously suggested patch is not necessary (removed the patch to avoid
confusion). In fact, the requested feature already works by simply providing
the right hbase.zookeeper.quorum property to the initialized store. It will
override the value in hbase-site.xml.
> 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
> Affects Versions: 0.2
> Reporter: raf shin
> Labels: gora-hbase
>
> 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