@ywang
Thanks for the answer.
But the problem is that when I changed parameter:
run_as_user=ambari-pkt
I could not run a couple of services, for example Oozie:

I noticed that te ambari-agent does not have permission to directory:
/var/lib/ambari-agent/
This is how the directory looks like:

The question is - what I should do? Remove ambari-agent and install it again or simple chown is enough?
chown -R ambari-pkt /var/lib/ambari-agent<br>