You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2015/04/10 02:19:12 UTC

[jira] [Commented] (AMBARI-10424) Views : Auto create

    [ https://issues.apache.org/jira/browse/AMBARI-10424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14488603#comment-14488603 ] 

Tom Beerbower commented on AMBARI-10424:
----------------------------------------

*Auto Create*

# Add an {{<auto-instance>}} element to the view.xml descriptor  {code}
<view>
  <name>SAMPLE_VIEW</name>
  <version>1.0.0</version>
  <parameter>
    <name>policy</name>
    <cluster-config>hdfs-site/dfs.http.policy</cluster-config>
    <default-value>none</default-value>
  </parameter>
  <auto-instance>
    <name>AUTO</name>
    <label>Auto Create view for the HELLO_SERVLET</label>
    <description>This view instance is auto created and associated with a cluster when the HIVE, TEZ and PIG services are added.</description>
    <stack-id>HDP-2.*</stack-id>
    <services>HIVE,TEZ,PIG</services>
  </auto-instance>
</view>
{code} Note that the {{<auto-instance>}} element must contain elements for {{name}}, {{stack-id}} and {{services}} and may optionally contain any of the elements that can belong to an {{<instance>}} configuration.
#* The {{stack-id}} element contains the stack id required to auto create an instance of this view.  The wildcard character '\*' is supported (e.g. 'HDP-2.*').
#* The {{services}} element contains the services required to auto create an instance of this view as a comma separated list (e.g. 'HDFS,MAPREDUCE2').
#* The {{name}} element is the name of the auto created instance.
# If ALL of the services listed in the {{services}} element have been added to a cluster that has a stack id that matches the value of the {{stack-id}} element then a new instance of the view with the {{<auto-instance>}} configuration will be automatically be created.  The instance will have all of the properties specified in the {{<auto-instance>}} configuration (i.e. name, description, property, etc.).  The instance is created as soon as the last of the specified services has been added to the cluster.
# The auto created instance is automatically associated with the cluster.  This means that any properties for parameters with {{cluster-config}} specified will be populated from the cluster's configuration.



> Views : Auto create
> -------------------
>
>                 Key: AMBARI-10424
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10424
>             Project: Ambari
>          Issue Type: Task
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-10424.patch
>
>
> Ability to automatically instantiate a view instance for a cluster during create based on the stack and services included in the cluster -- whether using blueprints or install wizard (so views are created automatically with a cluster create). The view itself should describe what stack and services it is associated with, and when a cluster is created in the ambari the view is deploy in, a view instance is automatically created. Ambari Admins should have an option to override this setting in case they do not want the view instances automatically created. This includes support for designating in the view.xml stack and services support for a view. Similar to the way min-ambari-version is specified, the view developer needs a way to identify that the view works with stack(s) (such as "HDP-2.2" or "HDP-2.2, HDP 2.3" or "HDP-2*") and what services need to be in the cluster ("YARN" or" YARN, HIVE"). Once a cluster is created matching those stack + service requirements, the view is automatically instantiated (and uses the "local ambari cluster" configuration option in #2 below).
> {code}
> - view.xml to describe stack(s) and service(s)
> - if that information is there, it’s available for auto-create
> - after auto-create, default permissions are blank (only ambari admin can access)
> - Auto-create event = on create cluster
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)