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

Allow users to add custom configs for Ranger service in all plugins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.1
    • 2.5.1
    • ambari-server
    • None

    Description

      In order to help Ranger to communicate with Hive metastore (in cloud env) there is a need to allow users to add custom configs from Ambari, which needs to be added as part of Ranger service which gets created on Enabling plugins.

      This will be helpful for all plugins to define n-number of custom configs from Ambari.

      To add those configs, need to follow prefix "ranger.service.config.param" + config parameter.

      For blueprint based installs need to give those configs as below
      "ranger-<component>-plugin-properties": {
        "ranger.service.config.param.configParameter1" : "vaule1",
        "ranger.service.config.param.configParameter2" : "value2"
      }
      
      For example in case of Hive
      "ranger-hive-plugin-properties": {
      "ranger.service.config.param.enable.hive.metastore.lookup": "false",
      "ranger.service.config.param.hive.site.file.path": "/etc/hive/conf/hive-site.xml"
      }
      

      For UI based installs add those properties in custom section under ranger-<component>-plugin-properties. So that first restart of the component can take those value after enabling the plugin for the component.

      Note: This implies that if the service already existing in Ranger and user adds custom properties this will not be added to the existing service present in Ranger.

      Attachments

        1. AMBARI-20636-trunk.patch
          21 kB
          Mugdha Varadkar
        2. AMBARI-20636.patch
          16 kB
          Mugdha Varadkar

        Issue Links

          Activity

            People

              mugdha.varadkar Mugdha Varadkar
              mugdha.varadkar Mugdha Varadkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: