Versions Compared

Key

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

...

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

To run ambari-web so that it works with mock data independently from ambari-server:
$ brunch watch --server (or simply "brunch w --s")
Hit http://localhost:3333Image Added from your web browser

To run ambari-web with ambari-server integration4. 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
Hit http://localhost:8080Image Added from your web browser

NoteNote for developers:
For quick development turnaround even while running ambari-web with ambari-server integration, 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 web
$ cd AMBARI_DIR/ambari-web
$ brunch watch
This way, you can simply modify your source files in AMBARI_DIR/ambari-web and changes will be available immediately from localhost:8080.

Setting up Ambari in Eclipse

...