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

Juanjo Marron updated AMBARI-14435:
-----------------------------------
    Description: 
Apply the  stack featurization prototype detailed on AMBARI-13364 to ZOOKEEPER 
service plus the comments and reviews received on:

This patch removes the hardcoded stack versions and stack specific paths into 
ZK common-services code

stack_features is now a property in .json format in 
HDP/2.0.6/properties/stack_features.json
With the structure:
{
"stack_features": [
{ "name": "feature1", "description" : "Feature1 support", "min_version" : 
"Y.Y.Y.Y" , "max_version" : "X.X.X.X"}
, 
...
]
}
where min_version/max_version are optional constraints.

The upgrade constants, such has ROLLING_UPGRADE = "rolling_upgrade" has been 
added to in a new StackFeature in 
resource_management/libraries/functions/constants.py

Stack featurization was  added as part of the HDP stack configurations on 
/HDP/2.0.6/configuration/cluster-env.xml, introducing a new stack_features 
property

New resource_management/libraries/functions/stack_fetaures.py has been 
introduced to parse the json file and called from service code to check if the 
stack supports the required feature.


  was:
Apply the stack featurization  prototype detailed on AMBARI-13364 to ZOOKEEPER 
service.

This patch removes the hardcoded stack versions in ZK common-services code and 
uses stack_features which  a property in .json format in 
configuration/cluster-env.xml for each stack version.




> Parameterize distro-specific stack information for ZOOKEEPER
> ------------------------------------------------------------
>
>                 Key: AMBARI-14435
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14435
>             Project: Ambari
>          Issue Type: Technical task
>          Components: ambari-server
>    Affects Versions: 2.2.0, 2.2.1
>            Reporter: Juanjo Marron
>            Assignee: Juanjo Marron
>             Fix For: 2.4.0
>
>         Attachments: 
> 0001-AMBARI-14435-Parameterize-distro-specific-stack-info.patch, 
> AMBARI-14435.patch
>
>
> Apply the  stack featurization prototype detailed on AMBARI-13364 to 
> ZOOKEEPER service plus the comments and reviews received on:
> This patch removes the hardcoded stack versions and stack specific paths into 
> ZK common-services code
> stack_features is now a property in .json format in 
> HDP/2.0.6/properties/stack_features.json
> With the structure:
> {
> "stack_features": [
> { "name": "feature1", "description" : "Feature1 support", "min_version" : 
> "Y.Y.Y.Y" , "max_version" : "X.X.X.X"}
> , 
> ...
> ]
> }
> where min_version/max_version are optional constraints.
> The upgrade constants, such has ROLLING_UPGRADE = "rolling_upgrade" has been 
> added to in a new StackFeature in 
> resource_management/libraries/functions/constants.py
> Stack featurization was  added as part of the HDP stack configurations on 
> /HDP/2.0.6/configuration/cluster-env.xml, introducing a new stack_features 
> property
> New resource_management/libraries/functions/stack_fetaures.py has been 
> introduced to parse the json file and called from service code to check if 
> the stack supports the required feature.



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

Reply via email to