ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-21581) Replace Hard Coded conf-select Structures
Date Wed, 26 Jul 2017 19:01:00 GMT
Jonathan Hurley created AMBARI-21581:
----------------------------------------

             Summary: 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)

Mime
View raw message