You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2016/10/29 07:21:58 UTC
[jira] [Commented] (AMBARI-18744) Ambari-server: REST API changes
to GET and PUT credential store information
[ https://issues.apache.org/jira/browse/AMBARI-18744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15617628#comment-15617628 ]
Hadoop QA commented on AMBARI-18744:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12835954/rb53283.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author tags.
{color:green}+1 tests included{color}. The patch appears to include 1 new or modified test files.
{color:red}-1 javac{color:red}. The patch appears to cause the build to fail.
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/9055//console
This message is automatically generated.
> Ambari-server: REST API changes to GET and PUT credential store information
> ---------------------------------------------------------------------------
>
> Key: AMBARI-18744
> URL: https://issues.apache.org/jira/browse/AMBARI-18744
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.4.2
> Reporter: Nahappan Somasundaram
> Assignee: Nahappan Somasundaram
> Fix For: 2.5.0
>
> Attachments: rb53283.patch
>
>
> *REST API support is required to GET _credential_store_supported_ and _credential_store_enabled_ values for a service:*
> {quote}api/v1/clusters/<cluster_name>/services?fields=ServiceInfo/service_name,ServiceInfo/credential_store_supported,ServiceInfo/credential_store_enabled{quote}
> *REST API support is required to PUT _credential_store_enabled_ value for a service:*
> {quote}api/v1/clusters/<cluster_name>/services?ServiceInfo/service_name.in(RANGER,HIVE)
> {
> ServiceInfo: {
> credential_store_enabled: “true”
> }
> }{quote}
> {quote}api/v1/clusters/testcluster/services/RANGER -X PUT -d '{"ServiceInfo" : {"credential_store_enabled":"true"}}'
> {quote}
> {quote}api/v1/clusters/testcluster/services?ServiceInfo/service_name=ZOOKEEPER -X PUT -d '{"ServiceInfo" : {"credential_store_enabled":"false"}}'{quote}
> *REST API to get Stack definition*
> {quote}
> curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services
> {quote}
> {quote}
> {
> "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services/",
> {
> "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services/YARN",
> "StackServices" : {
> "service_name" : "YARN",
> "stack_name" : "HDP",
> "stack_version" : "2.0",
> "credential_store_supported" : "false",
> "credential_store_enabled" : "false"
> }
> },
> {
> "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services/ZOOKEEPER",
> "StackServices" : {
> "service_name" : "ZOOKEEPER",
> "stack_name" : "HDP",
> "stack_version" : "2.0",
> "credential_store_supported" : "false",
> "credential_store_enabled" : "false"
> }
> }
> ]
> }
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)