[ https://issues.apache.org/jira/browse/HBASE-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790468#action_12790468 ]
stack commented on HBASE-2036: ------------------------------ .bq ...then we should reuse the cached connections & data instead of building up a new set. Dave, doing the above would be fancy and a new facility, no? What if we didn't do this new smarts, but just left it as dumb as it was, would that simplify things? .bq Is it worth that added complexity to avoid recomputing the hash code each time we instantiate an HTable? I'm with you that its not worth. My base thing is that at the root, this static map of HCMs is broke so lets not go out of our way to preserve it. I like your KeyConfiguration idea. It gets the ugly equals and hashcode out of HBC. I think object identity is good enough. The broke HCM map will work as it did? > Use Configuration instead of HBaseConfiguration > ------------------------------------------------ > > Key: HBASE-2036 > URL: https://issues.apache.org/jira/browse/HBASE-2036 > Project: Hadoop HBase > Issue Type: Improvement > Reporter: Enis Soztutar > Attachments: hconf.patch > > > HBaseConfiguration extends Configuration but does not add any functionality > to it. The only function is hashCode() which really should be refactored into > Hadoop Configuration. > I think in all the places(especially in the client side) HBase methods and > classes should accept Configuration rather than HBaseConfiguration. The > creation of the configuration with the right files (hbase-site and > hbase-default) should not be encapsulated in a private method, but in a > public static one. > The issues has arisen in our nutch+hbase patch for which we include both > nutch configuration and hbase configurations. Moreover people may want to > include separate project-specific configuration files to their configurations > without the need to be dependent on the HBaseConfiguration. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.