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

hivemetastore-report.json.tmp permission errors in hive metastore, HS2 logs

    XMLWordPrintableJSON

Details

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

    Description

      Noticed that the test cluster has lots of "hivemetastore-report.json.tmp (Permission denied)" errors (every 5 seconds).

      It is happening because user hive is running as user custom-hive while only user hive has permission for /var/log/hive/ . This location is determined by the config hive.service.metrics.file.location, which is set to /var/log/hive/hivemetastore-report.json . The log4j logs are going into /grid/0/log/hive/.

      A fix would be to change value of this config to use whatever logging directory is being used instad of hardcoding to /var/log/hive/. However, we are already publishing the metrics via graphana, so this is not needed.

      A quick fix would be to change the config to hive.service.metrics.reporter=HADOOP2 in hive-server2-site and hive-metastore .

      The old value is -
      hive.service.metrics.reporter=JSON_FILE, JMX, HADOOP2. The suggested change above will remove JMX as well, as we anyway aren't setting any of the required JMX params. Setting JMX reporter is an unnecessary overhead.

      Attachments

        1. AMBARI-19558.patch
          8 kB
          Dmytro Grinenko

        Issue Links

          Activity

            People

              hapylestat Dmytro Grinenko
              hapylestat Dmytro Grinenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: