You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Mugdha Varadkar <mu...@freestoneinfotech.com> on 2017/03/31 12:21:39 UTC

Review Request 58106: AMBARI-20636 Allow users to add custom configs for Ranger service in all plugins

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58106/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez, Gautam Borad, Sumit Mohanty, and Velmurugan Periasamy.


Bugs: AMBARI-20636
    https://issues.apache.org/jira/browse/AMBARI-20636


Repository: ambari


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.


Diffs
-----

  ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py 04a5bb1 
  ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py 21d172b 
  ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py 268d81c 
  ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py 41f44c3 
  ambari-server/src/main/resources/common-services/HDFS/3.0.0.3.0/package/scripts/params_linux.py 62a5edd 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 880ddc5 
  ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/params_linux.py 880ddc5 
  ambari-server/src/main/resources/common-services/KAFKA/0.8.1/package/scripts/params.py b338add 
  ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py 8beb2c0 
  ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py db59973 
  ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py 5d8a5f3 
  ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py 03d3fb2 
  ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/params_linux.py d069722 


Diff: https://reviews.apache.org/r/58106/diff/1/


Testing
-------

Tested Enabling of plugins by adding custom configs.


Thanks,

Mugdha Varadkar


Re: Review Request 58106: AMBARI-20636 Allow users to add custom configs for Ranger service in all plugins

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58106/#review170795
-----------------------------------------------------------


Ship it!




Ship It!

- Alejandro Fernandez


On March 31, 2017, 12:21 p.m., Mugdha Varadkar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58106/
> -----------------------------------------------------------
> 
> (Updated March 31, 2017, 12:21 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, Sumit Mohanty, and Velmurugan Periasamy.
> 
> 
> Bugs: AMBARI-20636
>     https://issues.apache.org/jira/browse/AMBARI-20636
> 
> 
> Repository: ambari
> 
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py 04a5bb1 
>   ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py 21d172b 
>   ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py 268d81c 
>   ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py 41f44c3 
>   ambari-server/src/main/resources/common-services/HDFS/3.0.0.3.0/package/scripts/params_linux.py 62a5edd 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 880ddc5 
>   ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/params_linux.py 880ddc5 
>   ambari-server/src/main/resources/common-services/KAFKA/0.8.1/package/scripts/params.py b338add 
>   ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py 8beb2c0 
>   ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py db59973 
>   ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py 5d8a5f3 
>   ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py 03d3fb2 
>   ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/params_linux.py d069722 
> 
> 
> Diff: https://reviews.apache.org/r/58106/diff/1/
> 
> 
> Testing
> -------
> 
> Tested Enabling of plugins by adding custom configs.
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>