Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

$ sh setuptools-0.6c11-py2.6.egg

Copy the agent tarball created earlier using mvn clean package command:

$ cp ambari-agent/target/ambari-agent-1.0.3-SNAPSHOT/dist/ambari-agent-1.0.3-SNAPSHOT.linux-x86_64.tar AGENT_INSTALL_DIR

AGENT_INSTALL_DIR is the directory where you want to run the agent.

Untar the tarball:

$ cd AGENT_INSTALL_DIR

$ tar -zxvf ambari-agent-1.0.3-SNAPSHOT.linux-x86_64.tar

The tarball currently untars as usr/bin and usr/lib

To setup the ambari agent:

$ mkdir -p /var/ambari /var/run/ambari /var/log/ambari

$ export PYTHONPATH=$AGENT_INSTALL_DIR/usr/lib/python2.6:$PYTHONPATH

To run the agent:

$ cd bin/; python2.6 ambari-agent

Building and running Ambari Web

...