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

Ambari Agent doesn't start as non-root user with "ambari-agent start" logged in as root

    XMLWordPrintableJSON

Details

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

    Description

      When running Ambari Server and Agents as non-root user, If I logged in as
      root, then agent process doesn't start with user mentioned in run_as from
      ambari-agent.ini when I run "$ambari-agent start" whereas running "$service
      ambari-agent start" launches the agent process with run_as user.

      Ambari Server doesn't show this behaviour when logged in as root and running
      commands "$ambari-server start" or "$service ambari-server start" always start
      with non-root user.

      Locally tested with Ambari 2.4.2.0 version

      Attachments

        1. AMBARI-21379.patch
          3 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: