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

Storm metrics do not work after upgrading Ambari to 2.1.2.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0
    • ambari-metrics
    • None

    Description

      Problem
      Storm metrics do not work after upgrading Ambari to 2.1.2. ClassNotFound exception seen in the logs when storm metrics reporter class is accessed.

      Bug
      Storm lib directory is usually found in /usr/hdp/current/storm-nimbus/lib. In the code we try to delete the link from /usr/lib/storm/lib which is not present. Hence, we never update the symlink in the actual location thus causing a stale symlink.

      Fix
      Change the symlink deletion logic to look at the correct location. Also fix a bug in resource_management.system module where the action='delete' for Links must call the os.path.lexists rather than os.path.exists to return true for broken symlinks

      Attachments

        1. AMBARI-14257.patch
          2 kB
          Aravindan Vijayan

        Issue Links

          Activity

            People

              avijayan Aravindan Vijayan
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: