hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HDDS-1596) Create service endpoint to download configuration from SCM
Date Thu, 30 May 2019 15:23:00 GMT

     [ https://issues.apache.org/jira/browse/HDDS-1596?focusedWorklogId=251008&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-251008

ASF GitHub Bot logged work on HDDS-1596:

                Author: ASF GitHub Bot
            Created on: 30/May/19 15:22
            Start Date: 30/May/19 15:22
    Worklog Time Spent: 10m 
      Work Description: elek commented on issue #861: HDDS-1596. Create service endpoint to
download configuration from SCM
URL: https://github.com/apache/hadoop/pull/861#issuecomment-497369418
   bq. Also add some documentation that scm names is required, and update the config file
tag if possible.
   It's not strictly required as this download is optional as of now. You can use your own
ozone-site.xml and in that case you don't need to download any config. (Except with a never-ending
   It can be better to use a `--join scm://scm1:1234,scm:4567` syntax instead of the configuration
key (in a next jira) as the scm.names defines the rpc ports not the http ports.
   But I am open to any suggestion. 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 251008)
    Time Spent: 1h 20m  (was: 1h 10m)

> Create service endpoint to download configuration from SCM
> ----------------------------------------------------------
>                 Key: HDDS-1596
>                 URL: https://issues.apache.org/jira/browse/HDDS-1596
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
> As written in the design doc (see the parent issue) it was proposed to download the configuration
from the scm by the other services.
> I propose to create a separated endpoint to provide the ozone configuration. /conf can't
be used as it contains *all* the configuration and we need only the modified configuration.
> The easiest way to implement this feature is:
>  * Create a simple rest endpoint which publishes all the configuration
>  * Download the configurations to $HADOOP_CONF_DIR/ozone-global.xml during the service
>  * Add ozone-global.xml as an additional config source (before ozone-site.xml but after
>  * The download can be optional
> With this approach we keep the support of the existing manual configuration (ozone-site.xml
has higher priority) but we can download the configuration to a separated file during the
startup, which will be loaded.
> There is no magic: the configuration file is saved and it's easy to debug what's going
on as the OzoneConfiguration is loaded from the $HADOOP_CONF_DIR as before.
> Possible follow-up steps:
>  * Migrate all the other services (recon, s3g) to the new approach. (possible newbie
>  * Improve the CLI to define the SCM address. (As of now we use ozone.scm.names)
>  * Create a service/hostname registration mechanism and autofill some of the configuration
based on the topology information.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message