Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49CEFF6A7 for ; Wed, 27 Mar 2013 17:55:16 +0000 (UTC) Received: (qmail 91697 invoked by uid 500); 27 Mar 2013 17:55:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 91650 invoked by uid 500); 27 Mar 2013 17:55:16 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 91641 invoked by uid 99); 27 Mar 2013 17:55:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 17:55:16 +0000 Date: Wed, 27 Mar 2013 17:55:15 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8197) Cannot distinguish between HBase default config value and client overridden config value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615549#comment-13615549 ] Jean-Marc Spaggiari commented on HBASE-8197: -------------------------------------------- That will be a nice add! > Cannot distinguish between HBase default config value and client overridden config value > ---------------------------------------------------------------------------------------- > > Key: HBASE-8197 > URL: https://issues.apache.org/jira/browse/HBASE-8197 > Project: HBase > Issue Type: Bug > Components: Usability > Affects Versions: 0.94.6 > Reporter: James Taylor > Priority: Minor > > By HBase setting default values in hbase-default.xml, it makes it difficult for a platform to know if a value has been overridden by the client. For example, Phoenix has a default value it would like to use for hbase.client.scanner.caching. I'd like to be able to call config.setIfUnset option to use our default value if a client hasn't already provided their own. Since HBase sets this in hbase-default.xml to 1, I can't differentiate between the client have a value in their hbase-sites.xml as 1 versus the default value we're getting from HBase. > Wouldn't it be better if HBase had constants defined in a Java interface that would be used by HBase as the default value if none other is provided, like this: > config.getInt("hbase.client.scanner.caching", HBaseDefault.CLIENT_SCANNER_CACHING); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira