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/04/21 13:12:56 UTC

Review Request 58617: AMBARI-20816 Create Ranger Hive Service during Hive Metastore restart

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

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


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


Repository: ambari


Description
-------

Need to create Ranger Hive service in Cluster1 having Hive Metastore + Ranger Service. The Ranger Hive service created in Cluster1 will be used by Cluster2 having Ranger Hive Plugin enabled under Hive Server2.

Solution:
Need service creation logic using Ranger REST API. The REST API code is already available for use.
If ranger.service.config.param.enable.hive.metastore.lookup property present in ranger-hive-plugin-properties with value true and Ranger configurations are present in the cluster(Ranger installed in same cluster) then only create Ranger Hive service.

For installation via blueprint, two extra custom config parameters ranger.service.config.param.enable.hive.metastore.lookup with value true and ranger.service.config.param.hive.site.file.path with value /etc/hive/conf/hive-site.xml are required to be provided in blueprint under ranger-hive-plugin-properties config type.

For installation via UI, need to add properties in custom section of ranger-hive-plugin-properties under Hive Service config tab.


Diffs
-----

  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8b69e45 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 84bac38 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py 80bd7c8 
  ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/hive_metastore.py 8b69e45 
  ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/params_linux.py 84bac38 
  ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/setup_ranger_hive.py 80bd7c8 


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


Testing
-------

Unit Test Report:

Ran 272 tests in 8.920s

OK
----------------------------------------------------------------------
Total run:1194
Total errors:0
Total failures:0
OK


Thanks,

Mugdha Varadkar


Re: Review Request 58617: AMBARI-20816 Create Ranger Hive Service during Hive Metastore restart

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


Ship it!




Ship It!

- Alejandro Fernandez


On April 21, 2017, 1:12 p.m., Mugdha Varadkar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58617/
> -----------------------------------------------------------
> 
> (Updated April 21, 2017, 1:12 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, Sumit Mohanty, and Velmurugan Periasamy.
> 
> 
> Bugs: AMBARI-20816
>     https://issues.apache.org/jira/browse/AMBARI-20816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Need to create Ranger Hive service in Cluster1 having Hive Metastore + Ranger Service. The Ranger Hive service created in Cluster1 will be used by Cluster2 having Ranger Hive Plugin enabled under Hive Server2.
> 
> Solution:
> Need service creation logic using Ranger REST API. The REST API code is already available for use.
> If ranger.service.config.param.enable.hive.metastore.lookup property present in ranger-hive-plugin-properties with value true and Ranger configurations are present in the cluster(Ranger installed in same cluster) then only create Ranger Hive service.
> 
> For installation via blueprint, two extra custom config parameters ranger.service.config.param.enable.hive.metastore.lookup with value true and ranger.service.config.param.hive.site.file.path with value /etc/hive/conf/hive-site.xml are required to be provided in blueprint under ranger-hive-plugin-properties config type.
> 
> For installation via UI, need to add properties in custom section of ranger-hive-plugin-properties under Hive Service config tab.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8b69e45 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 84bac38 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py 80bd7c8 
>   ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/hive_metastore.py 8b69e45 
>   ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/params_linux.py 84bac38 
>   ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/setup_ranger_hive.py 80bd7c8 
> 
> 
> Diff: https://reviews.apache.org/r/58617/diff/1/
> 
> 
> Testing
> -------
> 
> Unit Test Report:
> 
> Ran 272 tests in 8.920s
> 
> OK
> ----------------------------------------------------------------------
> Total run:1194
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>