Versions Compared

Key

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

...

git checkout -b AMBARI-666 origin/AMBARI-666

We'll refer to the top-level "ambari" directory as AMBARI_DIR in this document.

Building Ambari

After checking out Ambari, you can build ambari with the steps below:

...

To build tarball artifacts run:

$mvn $ mvn clean package assembly:assembly

...

To build, deploy, and run Ambari Web with Brunch:

1. Install NPM per http://nodejs.tchol.org/

...

3. Download dependent packages into ambari-web/node_modules directory
$ cd AMBARI_DIR/ambari-web
$ npm install

4. Run Ambari Web (with automatic, continuous build/deploy):
$ brunch watch --server

This starts up the server at http://localhost:3333Image Removed

To run unit tests, run:
$ brunch test

Deploy Ambari Web to Ambari Server so that it can be served via Jetty
$ cd AMBARI_DIR
$ mvn clean package -Dweb
Note that currently the mvn command does not put ambari-web in the package. This will be fixed in the future.

5. Start up Ambari Server
$ cd AMBARI_DIR/ambari-server/ambari/target/ambari-server-dist/ambari-server
$ java -cp etc/ambari-server/conf/:lib/ambari-server/* org.apache.ambari.server.controller.AmbariServer

Note for developers:
For quick development turnaround, create a symbolic link under ambari-server target folder and point it to your ambari-web/public folder
$ cd AMBARI_DIR/ambari-server/ambari/target/ambari-server-dist/ambari-server
$ rm -rf web
$ ln -s AMBARI_DIR/ambari-web/public webCurrently, Ambari Web is still being developed in isolation with no integration with Ambari Server using mock data.
Ambari Server runs on Jetty, so when integration happens we need to deploy on the Jetty server.
The built application is self-contained under ambari-web/public. The content of this folder simply needs to be copied to the appropriate folder on Jetty.

Setting up Ambari in Eclipse

...