ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 41686: Ambari Agent should not rely on CWD of user who started it
Date Wed, 23 Dec 2015 11:40:54 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41686/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-14199
    https://issues.apache.org/jira/browse/AMBARI-14199


Repository: ambari


Description
-------

When starting, the Ambari agent does not cd to a sane directory, but relies on
the CWD of the user who started the process either through `/etc/init.d
/ambari-agent`, or `ambari-agent start`.

The ambari-agent should cd to a sane local directory such as AGENT_TMP_DIR
prior to starting. A custom reported issues where their CWD was on an NFS
mount when the agent was started, and this caused the agent to die when the
auto mounted directory was unmounted.


Diffs
-----

  ambari-agent/conf/unix/ambari-agent c0760ec 

Diff: https://reviews.apache.org/r/41686/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message