You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2017/08/02 12:47:00 UTC

[jira] [Updated] (AMBARI-21581) Replace Hard Coded conf-select Structures

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

Jonathan Hurley updated AMBARI-21581:
-------------------------------------
    Status: Patch Available  (was: Open)

> Replace Hard Coded conf-select Structures
> -----------------------------------------
>
>                 Key: AMBARI-21581
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21581
>             Project: Ambari
>          Issue Type: Task
>    Affects Versions: 2.5.3
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.5.3
>
>
> Currently, both the stack-select and conf-select python files have hard-coded structures inside of them which contain mappings for things like configuration directories and stack-select component names. 
> This code is really HDP-specific in that it reverses the mappings of the RPMs and allows us to remap {{/etc/<component>/conf}} to {{/usr/hdp/current/<stack-component>/conf}}
> {code:title=conf_select.py}
> _PACKAGE_DIRS = {
>   "atlas": [
>     {
>       "conf_dir": "/etc/atlas/conf",
>       "current_dir": "{0}/current/atlas-client/conf".format(STACK_ROOT_PATTERN)
>     }
>   ],
>   "accumulo": [
>     {
>       "conf_dir": "/etc/accumulo/conf",
>       "current_dir": "{0}/current/accumulo-client/conf".format(STACK_ROOT_PATTERN)
>     }
>   ],
> ...
> {code}
> With the coming of management packs replacing stacks, we can no longer hard code this in Python. My suggestion is to begin moving this data into a property of some sort. Today, {{cluster-env}} exists and would be the only place for it (where the stack-feature tools are now). However, I believe that {{cluster-env}} is also going away and being replaced with something similar to "Cluster Settings". 
> In any event, this Jira is to track the work needed to replace this logic.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)