Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-8775 Create Kerberos Descriptor Resource to be accessed via the REST API
  3. AMBARI-9028

Create new API endpoints to obtain the stack and stack service kerberos descriptors

    XMLWordPrintableJSON

    Details

    • Type: Technical task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: ambari-server
    • Labels:

      Description

      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:

      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" : {
            ...
          }
        }
      }
      

      To obtain the kerberos descriptor for the HDP 2.2 HDFS service:

      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" : [
            ...
          ]
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jspeidel John Speidel
                Reporter:
                jspeidel John Speidel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: