tree: 3b177c3df26f9dbe42f3531cc209b8999c61c6af [path history] [tgz]
  1. src/
  2. cs-view.jpg
  3. pom.xml

Capacity Scheduler View


This View provides a UI to manage queues for the YARN Capacity Scheduler.


  • Ambari 2.1.0 or later
  • YARN


The view can be built as a maven project.

mvn clean install

The build will produce the view archive.


Place the view archive on the Ambari Server and restart to deploy.

cp capacity-scheduler-???-SNAPSHOT /var/lib/ambari-server/resources/views/
ambari-server restart

Deploying the View

Use the Ambari Vagrant setup to create a cluster:

Deploy the Capacity Scheduler view into Ambari.

cp capacity-scheduler-???-SNAPSHOT /var/lib/ambari-server/resources/views/
ambari-server restart

From the Ambari Administration interface, create a view instance.

Details: Instance NameCS_1
Details: Display NameQueue Manager
Details: DescriptionBrowse and manage YARN Capacity Scheduler queues
Properties: Ambari Cluster URL
Properties: Operator Usernameadmin
Properties: Operator Passwordpassword

Login to Ambari and browse to the view instance.

Local Development

If you want to perform UI development without having to build and redeploy the view package, you can mount the build target output as a symlink to your vagrant instance. UI changes will be picked-up with a browser refresh.

After building and deploying the View, delete the view work directory on the Ambari Server.

cd /var/lib/ambari-server/resources/views/work
rm -rf CAPACITY-SCHEDULER\{0.3.0\}/

Create a symlink from the vagrant machine running your Ambari Server to your local machine.

ln -s /vagrant/ambari/contrib/views/capacity-scheduler/target/classes/ CAPACITY-SCHEDULER\{0.3.0\}

Restart Ambari Server, login and browse to the view.

ambari-server restart

If you modify the view UI code on your machine and re-build, the UI will pickup the changes on browser refresh.