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

Exception in agent logs

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • trunk, 2.5.0
    • trunk, 2.5.0
    • ambari-server
    • None

    Description

      Noticed in agent log:

      INFO 2017-01-24 21:02:48,335 PythonReflectiveExecutor.py:67 - Reflective command failed with exception:
      Traceback (most recent call last):
        File "/usr/lib/python2.6/site-packages/ambari_agent/PythonReflectiveExecutor.py", line 59, in run_file
          imp.load_source('__main__', script)
        File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat_server.py", line 164, in <module>
          WebHCatServer().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/webhcat_server.py", line 122, in security_status
          {'hive-site.xml': FILE_TYPE_XML}))
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/security_commons.py", line 166, in get_params_from_filesystem
          configuration = ET.parse(conf_dir + os.sep + config_file)
        File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 862, in parse
          tree.parse(source, parser)
        File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 579, in parse
          source = open(source, "rb")
      IOError: [Errno 13] Permission denied: '/usr/hdp/current/hive-client/conf/conf.server/hive-site.xml'
      

      I think its the side effect of modifying the directory permission for conf.server for hive and then running as non-root.

      Attachments

        1. AMBARI-19708.patch
          1.0 kB
          Dmytro Grinenko

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hapylestat Dmytro Grinenko
            hapylestat Dmytro Grinenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment