You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/01/09 17:18:35 UTC

[jira] [Commented] (AMBARI-9028) Create new API endpoints to obtain the stack and stack service kerberos descriptors

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

Hudson commented on AMBARI-9028:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1443 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1443/])
AMBARI-9028. Create new API endpoints to obtain the stack and stack service kerberos descriptors (jspeidel: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d822bf34e13483e6ad53552647eea97756c76a56)
* ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProviderTest.java
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/StackServiceResourceDefinitionTest.java
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/StackVersionResourceDefinitionTest.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterControllerImplTest.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/StackServiceResourceDefinition.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/StackVersionResourceDefinition.java
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImplTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackArtifactResourceProvider.java
* ambari-server/src/test/java/org/apache/ambari/server/api/query/QueryImplTest.java
* ambari-server/src/test/java/org/apache/ambari/server/api/services/StacksServiceTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java


> Create new API endpoints to obtain the stack and stack service kerberos descriptors
> -----------------------------------------------------------------------------------
>
>                 Key: AMBARI-9028
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9028
>             Project: Ambari
>          Issue Type: Technical task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: John Speidel
>            Assignee: John Speidel
>              Labels: api, api-addition
>             Fix For: 2.0.0
>
>
> Create new API endpoints for exposing stack and stack service kerberos descriptors.  These endpoints will provide the static descriptors which are defined in the stack definition and will be immutable.
> There will be at most 1 descriptor for both the stack and each stack service.
> Therefore, it doesn't make sense to add a kerberos_descriptor sub-resource since there will be at most one instance.
> Instead, a new "artifacts" endpoint is being introduced.
> The kerberos descriptor will be an artifact instance.
> To obtain the kerberos descriptor for the HDP 2.2 stack:
> {code}
> GET http://AMBARI_SERVER:8080/api/v1/stacks/HDP/versions/2.2/artifacts/kerberos_descriptor
> {
>   "href" : "http://172.18.192.1:8080/api/v1/stacks/HDP/versions/2.2/artifacts/kerberos_descriptor",
>   "Artifacts" : {
>     "artifact_name" : "kerberos_descriptor",
>     "stack_name" : "HDP",
>     "stack_version" : "2.2"
>   },
>   "artifact_data" : {
>     "identities" : [
>        ...
>     ],
>     "services" : [
>       ...
>     ],
>     "properties" : {
>       ...
>     }
>   }
> }
> {code}
> To obtain the kerberos descriptor for the HDP 2.2 HDFS service:
> {code}
> GET http://AMBARI_SERVER:8080/api/v1/stacks/HDP/versions/2.2/services/HDFS/artifacts/kerberos_descriptor
> {
>   "href" : "http://172.18.192.1:8080/api/v1/stacks/HDP/versions/2.2/services/HDFS/artifacts/kerberos_descriptor",
>   "Artifacts" : {
>     "artifact_name" : "kerberos_descriptor",
>     "service_name" : "HDFS",
>     "stack_name" : "HDP",
>     "stack_version" : "2.2"
>   },
>   "artifact_data" : {
>     "components" : [
>       ...
>     ]
>   }
> }
> {code}



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