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

Hive start fails in non-root if agent previously ran as root

    XMLWordPrintableJSON

Details

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

    Description

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py", line 68, in <module>
      HiveClient().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 313, in execute
      method(env)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py", line 35, in install
      self.configure(env)
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 116, in locking_configure
      original_configure(obj, *args, **kw)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py", line 43, in configure
      hive(name='client')
      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/HIVE/0.12.0.2.0/package/scripts/hive.py", line 297, in hive
      mode = 0644,
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in _init_
      self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
      self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
      provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 123, in action_create
      content = self._get_content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 160, in _get_content
      return content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 51, in _call_
      return self.get_content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 205, in get_content
      with open(filepath) as fp:
      IOError: [Errno 13] Permission denied: '/var/lib/ambari-agent/tmp/DBConnectionVerification.jar'

      Attachments

        1. AMBARI-19941.patch
          2 kB
          Andrew Onischuk

        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: