Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 69584 invoked from network); 12 Dec 2009 16:29:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Dec 2009 16:29:41 -0000 Received: (qmail 39505 invoked by uid 500); 12 Dec 2009 16:29:41 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 39470 invoked by uid 500); 12 Dec 2009 16:29:41 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 39295 invoked by uid 99); 12 Dec 2009 16:29:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2009 16:29:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2009 16:29:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16284234C04C for ; Sat, 12 Dec 2009 08:29:18 -0800 (PST) Message-ID: <1384091113.1260635358075.JavaMail.jira@brutus> Date: Sat, 12 Dec 2009 16:29:18 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-2036) Use Configuration instead of HBaseConfiguration In-Reply-To: <1626872605.1260450618092.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enis Soztutar updated HBASE-2036: --------------------------------- Attachment: hconf.patch I have put together a patch (not covering src/test yet). HBaseConfiguration constructors are deprecated and create() methods are added. I think it illustrates the goal of the issue. For compatibility, the methods are only deprecated. We can make remove the deprecated methods in the next release. > 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.