I have set the property “run_as_user” in /etc/ambari-agent/conf/ambari-agent.ini to a non-root user. However when I restart the ambari-agent, the user is still running as root.
root 3255 3247 0 07:45 pts/0 00:00:05 /usr/bin/python2.6 /usr/lib/python2.6/site-packages/ambari_agent/main.py start