You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sudeep Sunthankar (JIRA)" <ji...@apache.org> on 2016/10/29 01:16:58 UTC

[jira] [Updated] (HBASE-16489) Configuration parsing

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

Sudeep Sunthankar updated HBASE-16489:
--------------------------------------
    Attachment: HBASE-16489.HBASE-14850.v2.patch

Hi, this patch does the foll:-
1) Creates a map of HBase configuration prporty based on the xml file present int path defined as an environment variable HBASE_CONF or /etc/hbase/conf
2) A custom search path can be provided.
3) hbase-default.xml and hbase-site.xml are loaded by default. 
4) Custom xml files can be loaded as well.
5) Values will be overwritten if not marked as final
6) Unit tests added by to verify loading of default valuse, custom values, final values, self referencing variables, environment variables, expansion variables. Temporary hbase-default.xml and hbase-site.xml are created in build/ path for validating unit tests.
7) Variable substitution is addressed at the time of Get. We check for presence of variables in the ENV. If variables are not present in the ENV, property map (1) lookup is performed.
8) Removed deprecated key handling in Get from the last patch
Some of the API's have been taken from HDFS-8707 which addresses configuration loading
9) Tests hooked up in BUCK

> Configuration parsing
> ---------------------
>
>                 Key: HBASE-16489
>                 URL: https://issues.apache.org/jira/browse/HBASE-16489
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Sudeep Sunthankar
>            Assignee: Sudeep Sunthankar
>         Attachments: HBASE-16489.HBASE-14850.v1.patch, HBASE-16489.HBASE-14850.v2.patch
>
>
> Reading hbase-site.xml is required to read various properties viz. zookeeper-quorum, client retires etc.  We can either use Apache Xerces or Boost libraries.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)