Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10692

Hdfs Ranger plugin fails to install with non-root agent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      Namenode fails with the following error:

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 298, in <module>
      NameNode().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
      method(env)
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 377, in restart
      self.start(env)
      File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 72, in start
      namenode(action="start", rolling_restart=rolling_restart, env=env)
      File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
      return fn(*args, **kwargs)
      File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py", line 38, in namenode
      setup_ranger_hdfs()
      File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py", line 69, in setup_ranger_hdfs
      write_properties_to_file(file_path, ranger_hdfs_dict)
      File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py", line 104, in write_properties_to_file
      modify_config(file_path, key, value[key])
      File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py", line 116, in modify_config
      for line in fileinput.input(filepath, inplace=1):
      File "/usr/lib64/python2.6/fileinput.py", line 253, in next
      line = self.readline()
      File "/usr/lib64/python2.6/fileinput.py", line 322, in readline
      os.rename(self._filename, self._backupfilename)
      OSError: [Errno 13] Permission denied

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: