ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 41792: Unable to install Ranger Admin and start Ranger Usersync
Date Wed, 30 Dec 2015 10:20:19 GMT

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

Review request for Ambari and Dmitro Lisnichenko.


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


Repository: ambari


Description
-------

Tried to add Ranger via Add Service and catched these issues.  
For install Ranger Admin:

    
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
line 124, in <module>
        RangerAdmin().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
line 45, in install
        self.configure(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
line 103, in configure
        ranger('ranger_admin')
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py",
line 41, in ranger
        setup_ranger_admin(upgrade_type=upgrade_type)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py",
line 101, in setup_ranger_admin
        recursive_ownership = True,
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 147,
in __init__
        raise Fail("%s received unsupported argument %s" % (self, key))
    resource_management.core.exceptions.Fail: Directory['/usr/hdp/current/ranger-admin/']
received unsupported argument user
    

For start Ranger Usersync:

    
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_usersync.py",
line 82, in <module>
        RangerUsersync().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_usersync.py",
line 51, in start
        ranger_service('ranger_usersync')
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_service.py",
line 40, in ranger_service
        recursive_ownership = True,
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 147,
in __init__
        raise Fail("%s received unsupported argument %s" % (self, key))
    resource_management.core.exceptions.Fail: Directory['/var/log/ranger/usersync/'] received
unsupported argument user
    

Changing

    
    
    user

to

    
    
    owner

in ranger_service.py:38 and setup_ranger_xml.py:99 fixed issue.


Diffs
-----

  ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_service.py
9270ea3 
  ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
5e9f394 
  ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
a611f8e 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message