You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/07/17 14:16:24 UTC

Review Request 36568: Non-Root: Ranger Admin install fails with permission denied

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

Review request for Ambari and Vitalyi Brodetskyi.


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


Repository: ambari


Description
-------

When installing Ranger on Ambari 2.1.0-1426 with 2.3.0.0-2553 with non-root
server/agent, umask 027 the Ranger Admin Install fails with the following
error:

    
    
    resource_management.core.exceptions.Fail: Execution of 'python /usr/hdp/current/ranger-admin/dba_script.py -q' returned 1. Traceback (most recent call last):
      File "/usr/hdp/current/ranger-admin/dba_script.py", line 1412, in <module>
        main(sys.argv)
      File "/usr/hdp/current/ranger-admin/dba_script.py", line 1104, in main
        populate_global_dict()
      File "/usr/hdp/current/ranger-admin/dba_script.py", line 63, in populate_global_dict
        read_config_file = open(os.path.join(RANGER_ADMIN_HOME,'install.properties'))
    IOError: [Errno 13] Permission denied: '/usr/hdp/current/ranger-admin/install.properties'


Diffs
-----

  ambari-common/src/main/python/resource_management/core/providers/system.py db29e2c 
  ambari-common/src/main/python/resource_management/core/sudo.py 740eea3 
  ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py 3556ed1 
  ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py dd41370 

Diff: https://reviews.apache.org/r/36568/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 36568: Non-Root: Ranger Admin install fails with permission denied

Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36568/#review92072
-----------------------------------------------------------

Ship it!


Ship It!

- Vitalyi Brodetskyi


On Липень 17, 2015, 12:16 після полудня, Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36568/
> -----------------------------------------------------------
> 
> (Updated Липень 17, 2015, 12:16 після полудня)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-12448
>     https://issues.apache.org/jira/browse/AMBARI-12448
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> When installing Ranger on Ambari 2.1.0-1426 with 2.3.0.0-2553 with non-root
> server/agent, umask 027 the Ranger Admin Install fails with the following
> error:
> 
>     
>     
>     resource_management.core.exceptions.Fail: Execution of 'python /usr/hdp/current/ranger-admin/dba_script.py -q' returned 1. Traceback (most recent call last):
>       File "/usr/hdp/current/ranger-admin/dba_script.py", line 1412, in <module>
>         main(sys.argv)
>       File "/usr/hdp/current/ranger-admin/dba_script.py", line 1104, in main
>         populate_global_dict()
>       File "/usr/hdp/current/ranger-admin/dba_script.py", line 63, in populate_global_dict
>         read_config_file = open(os.path.join(RANGER_ADMIN_HOME,'install.properties'))
>     IOError: [Errno 13] Permission denied: '/usr/hdp/current/ranger-admin/install.properties'
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/core/providers/system.py db29e2c 
>   ambari-common/src/main/python/resource_management/core/sudo.py 740eea3 
>   ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py 3556ed1 
>   ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py dd41370 
> 
> Diff: https://reviews.apache.org/r/36568/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>