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

Hudson commented on AMBARI-23336:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9024 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/9024/])
AMBARI-23336 Editing configurations usings configs.py doesnt have (m.magyar3: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=15cdec0a2b5be1d28a02de819ddd421f5a5d3653])
* (edit) ambari-server/src/main/resources/scripts/configs.py
AMBARI-23336 Editing configurations using configs.py doesn't have (m.magyar3: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=081dc848a84d54c52842f7c1f286b7203a749b57])
* (edit) ambari-server/src/main/resources/scripts/configs.py


> Editing configurations usings configs.py doesnt have options to pass service 
> config version note
> ------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-23336
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23336
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.1
>         Environment: Ambari -2.6.1
>            Reporter: Akhil S Naik
>            Assignee: Akhil S Naik
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Editing configurations usings configs.py doesnt have options to pass service 
> config version note
> But we can pass service config version note via curl command and in ambari-ui 
> This feature should be implemented for actions 'SET' and 'DELETE'
> Suggested give '-b' as option to give service config version note 
> ex : 
> {code:java}
> /var/lib/ambari-server/resources/scripts/configs.py -u admin -p admin -t 8080 
> -n asnaik -l localhost -a set -c capacity-scheduler -k 
> "yarn.scheduler.capacity.resource-calculator" -v 
> "org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator" -b "Creating 
> a new version with CPU scheduling off"
> {code}
> and the Help of the configs.py should be 
> Please edit the help page : 
> https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations#Modifyconfigurations-Editconfigurationusingconfigs.py
> {code:java}
> [root@pwd1 scripts]#  /var/lib/ambari-server/resources/scripts/configs.py 
> --help
> Usage: configs.py [options]
> Options:
>   -h, --help            show this help message and exit
>   -t PORT, --port=PORT  Optional port number for Ambari server. Default is
>                         '8080'. Provide empty string to not use port.
>   -s PROTOCOL, --protocol=PROTOCOL
>                         Optional support of SSL. Default protocol is 'http'
>   -a ACTION, --action=ACTION
>                         Script action: <get>, <set>, <delete>
>   -l HOST, --host=HOST  Server external host name
>   -n CLUSTER, --cluster=CLUSTER
>                         Name given to cluster. Ex: 'c1'
>   -c CONFIG_TYPE, --config-type=CONFIG_TYPE
>                         One of the various configuration types in Ambari. Ex:
>                         core-site, hdfs-site, mapred-queue-acls, etc.
>   -b VERSION_NOTE, --version-note=VERSION_NOTE
>                         Version change notes which will help to know what has
>                         been changed in this config , this value is optional
>                         and is used for action set
>   To specify credentials please use "-e" OR "-u" and "-p'":
>     -u USER, --user=USER
>                         Optional user ID to use for authentication. Default is
>                         'admin'
>     -p PASSWORD, --password=PASSWORD
>                         Optional password to use for authentication. Default
>                         is 'admin'
>     -e CREDENTIALS_FILE, --credentials-file=CREDENTIALS_FILE
>                         Optional file with user credentials separated by new
>                         line.
>   To specify property(s) please use "-f" OR "-k" and "-v'":
>     -f FILE, --file=FILE
>                         File where entire configurations are saved to, or read
>                         from. Supported extensions (.xml, .json>)
>     -k KEY, --key=KEY   Key that has to be set or deleted. Not necessary for
>                         'get' action.
>     -v VALUE, --value=VALUE
>                         Optional value to be set. Not necessary for 'get' or
>                         'delete' actions.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to