Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-8976

Use cluster property rather than cluster-env/security_enabled to enable or disable Kerberos

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • ambari-server

    Description

      Use a cluster property rather than cluster-env/security_enabled to enable or disable Kerberos. Since cluster-env/security_enabled is used by services to determine if Kerberos is enabled or not, it should not be set before completing the process of enabling or disabling Kerberos. To declare whether the cluster enable or disable Kerberos, a property on the cluster should be set. The property should be called security_type and must have one of the following values:

      • NONE
      • KERBEROS

      By using cluster-env/security_enabled, the configuration property gets set to "true" before Kerberos is filly enabled. This is causing issues with stopping services so that the updated Kerberos-related configurations can be set.

      Example API call to enable Kerberos

      PUT /api/v1/clusters/c1
      {
        "Clusters" : {
          "security_type" : "KERBEROS"
        }
      }
      

      Example API call to disable Kerberos

      PUT /api/v1/clusters/c1
      {
        "Clusters" : {
          "security_type" : "NONE"
        }
      }
      

      Attachments

        1. AMBARI-8976_01.patch
          82 kB
          Robert Levas
        2. AMBARI-8976_02.patch
          91 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: