> On Aug. 26, 2015, 8:07 a.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py,
> >  line 164
> > <https://reviews.apache.org/r/37782/diff/2/?file=1052818#file1052818line164>
> >
> >     There is an inherent assumption here that there is a directory on the 
> > host where the native libraries for SQLA reside. How are the native 
> > libraries going to be placed at this location?
> 
> Gautam Borad wrote:
>     Ok, we will remove 'ld_library_path' config property and use this path 
> format("{tmp_dir}/sqla-client-jdbc/native/lib64")
> 
> Jayush Luniya wrote:
>     It would be better to copy over the native libs to a path in the ranger 
> service folder as the tmp_dir is ambari-agent temp directory and might be 
> cleaned up.

In latest patch we are copying native libraries at this path 
/usr/hdp/current/{component}/native/lib64 and removing property ld_library_path 
from Ranger/Ranger_kms


> On Aug. 26, 2015, 8:07 a.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py,
> >  line 532
> > <https://reviews.apache.org/r/37782/diff/2/?file=1052815#file1052815line532>
> >
> >     This solution deviates from how this works for Hive/Oozie. 
> >     
> >     For SQLA, the user will be running the following 
> >     ambari-server setup --jdbc-db=sqlanywhere 
> > --jdbc-driver=/usr/share/sqla-client-jdbc.tar.gz
> >     
> >     sqla-client-jdbc.tar.gz tarball contains the JDBC driver, JARs and 
> > native library files. 
> >     
> >     When the ambari-server setup command is executed above, ambari-agents 
> > can download the tarballs from the ambari-server and then the service 
> > package scripts can lay down the JDBC JAR and native libraries to 
> > appropriate location and configure the service accordingly. 
> >     
> >     For reference, please take a look at:
> >     
> >     https://reviews.apache.org/r/37576

In latest patch, for Ranger and Ranger KMS using sqla-client-jdbc.tar.gz 
tarball implementation same as Hive.


- Gautam


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


On Aug. 27, 2015, 2 p.m., Gautam Borad wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37782/
> -----------------------------------------------------------
> 
> (Updated Aug. 27, 2015, 2 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, Mahadev Konar, 
> Sumit Mohanty, Selvamohan Neethiraj, Vitalyi Brodetskyi, Velmurugan 
> Periasamy, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-12872
>     https://issues.apache.org/jira/browse/AMBARI-12872
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Add support for SQL Anywhere in BE ( ambari-server ) for Ranger and Ranger KMS
> 
> 
> Diffs
> -----
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
>  cf40a75 
>   
> ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
>  d515dad 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py
>  4d8ac0b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  a5abcb5 
>   
> ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/params.py
>  455bd00 
>   
> ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
>  733caf1 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
>  8e84587 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_service.py
>  8ad2627 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
>  de7726a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
>  1ed28c4 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_server.py
>  5c3790e 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_service.py
>  5c4d7e7 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
>  1dbf3b1 
>   
> ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
>  e7d524d 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
>  9857d03 
>   
> ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/ranger-admin-site.xml
>  6878db4 
> 
> Diff: https://reviews.apache.org/r/37782/diff/
> 
> 
> Testing
> -------
> 
> Tested on centos6 cluster with SQLAnywhere as database
> 
> ----------------------------------------------------------------------
> Ran 231 tests in 6.493s
> 
> OK
> ----------------------------------------------------------------------
> Total run:784
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Gautam Borad
> 
>

Reply via email to