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

Configuration keys in Kerberos descriptors should allow for variable replacement

    XMLWordPrintableJSON

Details

    Description

      Configuration keys in Kerberos descriptors should allow for variable replacement. For example a typical configurations block may look like

      "configurations" : [
       "core-site": {
           "hadoop.proxyuser.hive.groups":"${hadoop-env/proxyuser_group}"
         },
        "hive-site": {
         .....
        },
        "webhcat-site": {
        ....
       }
      ]
      

      However some configuration keys need to be dynamically generated and should be generated using the existing variable replacement feature in org.apache.ambari.server.state.kerberos.AbstractKerberosDescriptor. For example:

      "configurations": [
        "core-site": {
           "hadoop.proxyuser.${hive-env/hive_user}.groups":"${hadoop-env/proxyuser_group}"
         },
        "hive-site": {
         .....
        },
        "webhcat-site": {
        ....
       }
      ] 
      

      The configuration key hadoop.proxyuser.${hive-env/hive_user}.groups should be processed such that ${hive-env/hive_user} is replaced some value like hive to yield hadoop.proxyuser.hive.groups

      Attachments

        1. AMBARI-8853_01.patch
          2 kB
          Robert Levas

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: