[ 
https://issues.apache.org/jira/browse/AMBARI-13364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194312#comment-15194312
 ] 

Juanjo Marron commented on AMBARI-13364:
----------------------------------------

Attached patch (AMBARI-14435.patch) implementing the new parametrization  
approach for Zookeeper:
https://issues.apache.org/jira/browse/AMBARI-14435

[~jluniya] [~afernandez] Per our last conversation, this patch removes the 
hardcoded stack versions in ZK common-services code  (centralized version and 
parameterized stack configurations will be faced in other JIRAS)
stack_features is now a property in .json format  in 
configuration/cluster-env.xml for each stack version.
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. 

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. 
Zookeeper fresh installation has been tested using HDP stack 2.3 and 
AMBARI-13364 branch code.

Please, can you review when you have the chance and validate if it is the 
expected behavior? 
Would it fit in the other set of changes you are planning to do?

Thanks


>  Parameterize stack information used by common services
> -------------------------------------------------------
>
>                 Key: AMBARI-13364
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13364
>             Project: Ambari
>          Issue Type: Story
>          Components: ambari-server
>            Reporter: Tuong Truong
>            Assignee: Juanjo Marron
>         Attachments: AMBARI-13364 Parameterize stack information used by 
> common services.pdf, AMBARI-13364.patch, stack_featurizer.patch
>
>
> This feature will add a basic framework to remove hardcoded stack information 
> out of the common services and use parameter to get access to stack 
> information.  Currently, common services hardcodes much information specific 
> to Hortonworks' HDP stack including name (HDP), specific versions (2.0, 2.1, 
> 2.2), and install location.   This feature will propose a way of 
> configuration these information and parameterize them into the services for 
> reference as require. 



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

Reply via email to