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

Remove unwanted trailing slash at the end of hbase_pid_dir path in ams-hbase-env

    XMLWordPrintableJSON

Details

    Description

      • While starting the AMS collector we can see that it has two slash in the PID file path "/var/run/ambari-metrics-collector//hbase-ams-regionserver.pid" . Also "/var/run/ambari-metrics-collector//hbase-ams-master.pid" . which does not look good and seems error prone. It should be removed.
      Execute['/usr/lib/ams-hbase/bin/hbase-daemon.sh --config /etc/ams-hbase/conf stop regionserver'] {'on_timeout': 'ls /var/run/ambari-metrics-collector//hbase-ams-regionserver.pid >/dev/null 2>&1 && ps `cat /var/run/ambari-metrics-collector//hbase-ams-regionserver.pid` >/dev/null 2>&1 && ambari-sudo.sh -H -E kill -9 `ambari-sudo.sh cat /var/run/ambari-metrics-collector//hbase-ams-regionserver.pid`', 'timeout': 30, 'user': 'ams'}
      

      Attachments

        Issue Links

          Activity

            People

              jaysensharma Jay SenSharma
              jaysensharma Jay SenSharma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h