sposetti 9b6223b90f AMBARI-11141: cleanup view.xml elements 10 年之前
..
auto-cluster-view 9b6223b90f AMBARI-11141: cleanup view.xml elements 10 年之前
calculator-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
cluster-view e9617f7f6b AMBARI-10504 - Views : create example view for Cluster Association and Auto Create (tbeerbower) 10 年之前
favorite-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
hello-servlet-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
hello-spring-view 6d737ddc6d AMBARI-10767 - Views : create Spring app example (tbeerbower) 10 年之前
helloworld-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
phone-list-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
property-validator-view 709ad140e2 AMBARI-10112. Build all ambari-views/examples properly. (yusaku) 10 年之前
property-view 709ad140e2 AMBARI-10112. Build all ambari-views/examples properly. (yusaku) 10 年之前
restricted-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
simple-view 709ad140e2 AMBARI-10112. Build all ambari-views/examples properly. (yusaku) 10 年之前
weather-view 24a7e6442b AMBARI-9808. Allow the user to build ambari-views/examples without having to building the whole Ambari project (pull dependencies from Maven). (yusaku) 10 年之前
README.md 00bd07866e AMBARI-11141: Sample view for auto-cluster create that uses Ambari REST API 10 年之前
pom.xml 6d737ddc6d AMBARI-10767 - Views : create Spring app example (tbeerbower) 10 年之前

README.md

Ambari Views Examples

The Ambari Views Examples are a collection of simple Ambari Views provided as a development guide.

Documentation

See the documentation pages for the view examples.

  • Hello World View : Demonstrates the very basics of how to write and deploy a view in Ambari.
  • Hello Servlet View : Includes instance parameters and a servlet for a dynamic UI.
  • Hello Spring View : A very simple view example that uses Spring MVC.
  • Favorite view : Exposes a simple resource to work with instance parameters and data.
  • Calculator View : Includes a simple resource.
  • Phone List View : Demonstrates simple view persistence.
  • Property View : Demonstrates view configuration property options.
  • Property Validator View : Demonstrates configuration property validator.
  • Weather view : Demonstrates the the use of instance parameters, a servlet for a dynamic UI and a managed resource.
  • Auto Cluster view : Example view that can be auto-created and configured to leverage the Ambari REST APIs to access a cluster being managed by Ambari.

Please also visit the Apache Ambari Project page for more information.

License

Ambari is released under Apache License, Version 2.0.

Issue Tracking

Report any issues via the Ambari JIRA.

Build

####Examples

######Requirements

  • JDK 1.6
  • Maven 3.0

######Maven modules

  • ambari-views (ambari view interfaces)

######Maven build goals

  • Clean : mvn clean
  • Compile : mvn compile
  • Run tests : mvn test
  • Create JARS : mvn package
  • Install JARS in M2 cache : mvn install

######Tests options

  • -DskipTests to skip tests when running the following Maven goals: 'package', 'install', 'deploy' or 'verify'
  • -Dtest=<TESTCLASSNAME>,<TESTCLASSNAME#METHODNAME>,....
  • -Dtest.exclude=<TESTCLASSNAME>
  • -Dtest.exclude.pattern=**/<TESTCLASSNAME1>.java,**/<TESTCLASSNAME2>.java