past, present and future of apache ambari
TRANSCRIPT
1 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Apache Ambari Past, Present and Future September 2016
2 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Agenda
à Background, Release History and Demo
à Ambari Alerts and Metrics
à Ambari Blueprints
à Security Setup (Kerberos, RBAC)
à Log Search (Technical Preview)
à Automated Cluster Upgrade
à Extensibility: Stacks and Views
à What’s New and Next
3 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
What is Apache Ambari?
A completely open source management plaWorm for provisioning, managing, monitoring and securing Apache Hadoop clusters. Apache Ambari takes the guesswork out of operaYng Hadoop.
4 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
What Ambari Does
Simplified InstallaYon, ConfiguraYon and Management
Centralized Security Setup
Full Visibility into Cluster Health
Highly Extensible and Customizable
• Wizard-‐driven and automated cluster provisioning • Smart Configura>ons and Cluster Recommenda>ons • Automated Rolling and Express cluster upgrades
• Reduce complexity to administer security across the plaWorm • Automate setup Kerberos • Simplify the configuraYon of Apache Ranger
• Predefined alerts based on operaYonal best pracYces • Advanced metrics visualizaYon with Grafana • Integrated with SmartSense for proacYve issues prevenYon
• Seamlessly fit into your enterprise environment • Bring custom Services under management via Ambari Stacks • Customize the UI with Ambari Views
5 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Recent Releases
Ambari 2.2.0 Dec 2015
Ambari 2.2.2 Apr 2016
Ambari 2.4.0.0 GA Aug 2016
6 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Alerts
7 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Full Visibility into Cluster Health
• Centralized management of Health Alerts
• Pre-‐defined alerts, configured by default on cluster install
8 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Customizing Alerts
• Control thresholds, check intervals and response text
9 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Alert No>fica>ons
• What: Create and manage mul>ple no>fica>on targets
• Control who gets noYfied when
• Why: Filter by severity • Send only certain noYficaYons to certain
targets based on severity
• How: Control dispatch method • Support for EMAIL + SNMP
10 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Alert Groups
• Create and manage groups of alerts • Group alerts further controls what alerts
are dispatched which noYficaYons
• Assign group to no>fica>ons • Only dispatch to interested parYes
11 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Alert Check Counts
à Customize the number of Ymes an alert is checked before dispatching a noYficaYon
à Avoid dispatching an alert noYficaYon (email, snmp) in case of transient issues
12 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Configuring the Check Count
à Set globally for all alerts, or override for a specific alert
Global Sefng
Alert Override
13 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
State Change Types
à SOFT state changes do not perform a dispatch
à HARD state changes (to non-‐OK) perform dispatch
à Regardless of change: – The Ambari Web UI will show the current state (OK/WARN/CRIT) – The state change is wrihen to ambari-alerts.log
2016-05-31 13:20:52,294 [CRITICAL] [SOFT] [AMBARI_METRICS] [grafana_webui] (Grafana Web UI) Connection failed to http://c6401.ambari.apache.org:3000 (<urlopen error [Errno 111] Connection refused>) 2016-05-31 13:22:52,290 [CRITICAL] [HARD] [AMBARI_METRICS] [grafana_webui] (Grafana Web UI) Connection failed to http://c6401.ambari.apache.org:3000 (<urlopen error [Errno 111] Connection refused>)
Note: check counts are not configurable for AGGREGATE alert types. All state changes are considered HARD.
14 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Example: Check Count = 3
Check 1/3 State: OK
Change: n/a
Check 1/3 State: OK
Change: n/a
Check 1/3 State: CRIT
Change: SOFT
Check 2/3 State: CRIT Change: n/a
Check 3/3 State: CRIT
Change: HARD
Check 1/3 State: OK
Change: HARD
DISPATCH
Check Interval Check Interval Check Interval Check Interval Check Interval
no state change state changes to CRIT
performing mulYple checks
back to OK
15 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Other Items
à Alerts Log (AMBARI-‐10249)
• Alert state changes are wrihen to /var/log/ambari-server/ambari-alerts.log
à Script-‐based Alert NoYficaYons (AMBARI-‐9919)
• Define a custom script-‐based noYficaYon dispatcher
• Executed on alert state changes
2015-07-13 14:58:03,744 [OK] [ZOOKEEPER] [zookeeper_server_process] (ZooKeeper Server Process) TCP OK - 0.000s response on port 21812015-07-13 14:58:03,768 [OK] [HDFS] [datanode_process_percent] (Percent DataNodes Available) affected: [0], total: [1]
16 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Aler>ng System 1. User creates or modifies cluster 2. Ambari reads alert definiYons from
Stack 3. Ambari sends alert definiYons to
Agents and Agent schedules instance checks
4. Agents reports alert instance status in the heartbeat
5. Ambari responds to alert instance status changes and dispatches noYficaYons (if applicable)
Ambari Server
1
2
4
Stack definition alerts.json
5
Ambari Agent(s)
3
emailsnmp
17 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Alert REST APIs
REST Endpoint Descrip>on /api/v1/clusters/:clusterName/alert_definitions The list of alert definiYons for the cluster.
/api/v1/clusters/:clusterName/alerts The list of alert instances for the cluster. Use parYal response syntax to filter.
Example: find all alert instances that are CRITITAL /api/v1/clusters/c1/alerts?Alert/state.in(CRITICAL) Example: find all alert instances for “ZooKeeper Process” alert def /api/v1/clusters/c1/alerts?Alert/definition_name=zookeeper_server_process
/api/v1/clusters/:clusterName/alert_groups The list of alert groups.
/api/v1/clusters/:clusterName/alert_history The list of alert instance status changes.
/api/v1/alert_targets/ The list of configured alert noYficaYon targets for Ambari.
18 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Metrics
19 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Metrics
à Built using Hadoop technologies
à Three components: Metrics Collector, Metrics Monitors, Grafana
Local Filesystem or HDFS
HBase ATS
Phoenix
20 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Metrics Collec>on
1. Metric Monitors send system-‐level metrics to Collector
2. Sinks send Hadoop-‐level metrics to Collector
3. Metrics Collector service stores and aggregates metrics
4. Ambari exposes REST API for metrics retrieval
Ambari Server
Metrics Monitor
Metrics Collector
Host1
Sink(s)
3
Metrics Monitor
Host1
Sink(s) Metrics Monitor
Hosts
Sink(s)
1 2
4
21 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Metrics + Grafana: Introduced with Ambari 2.2
à Including Grafana as a “NaYve UI” for Ambari Metrics
à Including pre-‐build Dashboards
à Supports configuring for HTTPS
à System Home, Servers
à HDFS Home, NameNodes, DataNodes
à YARN Home, ApplicaYons, Job History Server
à HBase Home, Performance, Misc
Highlights List of Dashboards
22 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Grafana includes pre-‐built dashboards for visualizing the most important cluster metrics.
23 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Blueprints
24 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Blueprints
à Two primary goals of Ambari Blueprints:
• Provide API-‐driven deployments based on self-‐contained cluster descripYon
• Ability to export a complete cluster descripYon of a running cluster
à Blueprints contain cluster topology and configuraYon informaYon
à Enables interesYng use cases between physical and virtual environments
25 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Stacks + Blueprints Together
Stack Defini>on Component Layout &
Configura>on BLUEPRINT
BLUEPRINT INSTANTIATE CLUSTER HOSTS
26 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Blueprints API
BLUEPRINT POST /blueprints/my-blueprint
POST /clusters/MyCluster
1
2
CLUSTERCREATIONTEMPLATE
27 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Example: Single-‐Node Cluster
{ "configurations" : [ { ”hdfs-site" : {
"dfs.namenode.name.dir" : ”/hadoop/nn" } } ], "host_groups" : [ { "name" : ”uber-host", "components" : [ { "name" : "NAMENODE” }, { "name" : "SECONDARY_NAMENODE” }, { "name" : "DATANODE” }, { "name" : "HDFS_CLIENT” }, { "name" : "RESOURCEMANAGER” }, { "name" : "NODEMANAGER” }, { "name" : "YARN_CLIENT” }, { "name" : "HISTORYSERVER” }, { "name" : "MAPREDUCE2_CLIENT” } ], "cardinality" : "1" } ], "Blueprints" : { "blueprint_name" : "single-node-hdfs-yarn", "stack_name" : "HDP", "stack_version" : "2.2" }}
{ "blueprint" : "single-node-hdfs-yarn", "host_groups" :[ { "name" : ”uber-host", "hosts" : [ { "fqdn" : "c6401.ambari.apache.org”
} ] } ]}
BLUEPRINT
CLUSTER CREATION TEMPLATE
Descrip>on • Single-‐node cluster • Use HDP 2.2 Stack • HDFS + YARN + MR2 • Everything on c6401
28 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Blueprints Add Host
• Add hosts to a cluster based on a host group from a Blueprint
• Add one or more hosts with a single call
POST /api/v1/clusters/MyCluster/hosts{ "blueprint" : "myblueprint", "host_group" : "workers", "host_name" : "c6403.ambari.apache.org"}
POST /api/v1/clusters/MyCluster/hosts[ { "blueprint" : "myblueprint", "host_group" : "workers", "host_name" : "c6403.ambari.apache.org" }, { "blueprint" : "myblueprint", "host_group" : ”edge", "host_name" : "c6404.ambari.apache.org" }]
hhps://issues.apache.org/jira/browse/AMBARI-‐8458
29 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Blueprints Host Discovery (AMBARI-‐10750)
Ambari
POST /api/v1/clusters/MyCluster/hosts
[ { "blueprint" : "single-node-hdfs-test2", "host_groups" :[ { "host_group" : "slave", "host_count" : 3, "host_predicate" : "Hosts/cpu_count>1” } ] }]
30 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Where Can I Learn More About Blueprints?
à hhps://cwiki.apache.org/confluence/display/AMBARI/Blueprints
31 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Kerberos Setup
32 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Background: Hadoop + Kerberos
à Strongly authenYcaYng and establishing a user’s idenYty is the basis for secure access in Hadoop. Users need to be able to reliably “idenYfy” themselves and then have that idenYty propagated throughout the Hadoop cluster.
à Once this is done, those users can access resources (such as files or directories) or interact with the cluster (like running MapReduce jobs).
à Besides users, Hadoop cluster resources themselves (such as Hosts and Services) need to authenYcate with each other to avoid potenYal malicious systems or daemon’s “posing as” trusted components of the cluster to gain access to data.
33 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Background: Hadoop + Kerberos
Service Component
A
Service Component
B
Hadoop Cluster
KDC
keytab keytab
Service Component
C
keytab
Service Component
D
keytab
Service Component
X
Service Component
X
keytab keytab
Service Component
X
keytab
Service Component
X
keytab
Kerberos is used to secure the
Components in the cluster. Kerberos idenYYes are managed via
“keytabs” on the Component hosts.
Principals for the
cluster are managed in the KDC.
34 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated Kerberos Security Setup
Wizard Driven Simplify the experience of enabling and managing Kerberos security
Automated and Manual Op>ons CriYcal for today’s enterprise
Works with Exis>ng Kerberos Infrastructure Such as AcYve Directory and MIT KDC
35 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated vs. Manual Kerberos Op>ons
Automated Manual
KDC Infrastructure MIT, AcYve Directory MIT, AcYve Directory, FreeIPA
Requires KDC administraYve credenYals Yes No
InstallaYon of Kerberos clients Yes, opYonal No
Management of Kerberos client krb5.conf Yes, opYonal No
CreaYon of principals Yes No
CreaYon of keytabs Yes No
DistribuYon of keytabs Yes No
Cluster configuraYon Yes Yes
36 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated: Principals and Keytabs 1. User provides KDC Admin Account
credenYals to Ambari 2. Ambari connects to KDC, creates
principals (Service and Ambari) needed for cluster
3. Ambari generates keytabs for the principals
4. Ambari distributes keytabs to Ambari Server and cluster hosts
5. Ambari discards the KDC Admin Account credenYals
Ambari Server KDC
1 2
4
3
5
Cluster
37 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated: Customizable Principal Afributes
• Customize the directory principal ahributes for your environment
• ParYcularly useful when using AcYve Directory for Kerberos
38 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated: Kerberos Clients
• OpYon to manage krb5.conf
• OpYon to install clients
OS Client RHEL/CentOS/OEL krb5-‐workstaYon SLES 11 krb5-‐client Ubuntu 12 krb5-‐user, krb5-‐
config
39 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated: Kerberos Opera>ons
à Once enabled, Ambari works directly with the Kerberos infrastructure to automate these common tasks, removing the burden from the operator:
• Add/Delete Host
• Add Service
• Add/Delete Component
• Regenerate Keytabs
• Disable Kerberos
40 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Manual: Specify Realm, Client U>li>es Path
41 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Manual: Principals and Keytabs
à Configure IdenYYes
à Download CSV
42 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Role-‐Based Access Control
43 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Role-‐Based Access Control
à Use “roles” for more granular division of control for cluster operaYons
Old Permission New Role Notable Permissions
Operator Cluster Administrator Full operaYonal control, including upgrades. Ambari Admins are implicitly granted this Role.
Cluster Operator Adding and removing hosts.
Service Administrator Manage configuraYons, move components.
Service Operator Service stop and start and service-‐specific operaYons such as HDFS Rebalance.
Read-‐Only Cluster User View cluster service and host informaYon.
Note: Users flagged as “Ambari Admins” are implicitly granted Cluster Administrator permission.
44 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Managing Cluster Roles Assign roles to users or groups
Manage roles in Block or List View
layouts
45 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Managing Cluster Roles View users or groups
Change current role assignment
46 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Log Search
TECH PREVIEW
47 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Log Search
Solr
AMBAR I Log
Search
Search cluster Component Logs from within Ambari!
Goal: When issues arise, be able to quickly find issues across all cluster components ⬢ Capabili>es
– Rapid Search of all cluster component logs – Search across Yme ranges, log levels, and for keywords
⬢ Core Technologies: – Apache Ambari – Apache Solr – Apache Ambari Log Search
48 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Log Search Architecture
AMBAR I
L O G F E E D E R
L O G F E E D E R
L O G F E E D E R
L O G F E E D E R
L O G F E E D E R
L O G F E E D E R
WOR K E R NOD E
WORK E R NOD E
WORK E R NOD E
WORK E R NOD E
WORK E R NOD E
WORK E R NOD E
Solr
L OG S E A R CH
U I
49 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Log Search Details
WORK E R NOD E
L O G F E E D E R
Solr
L OG S E A R CH
U I
Solr
Solr
AMBAR I
Java Process MulY-‐output Support Grok
Solr Cloud Local Disk Storage TTL
50 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated Cluster Upgrade
51 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated Cluster Upgrade Terminology
Rolling Upgrade Orchestrates the cluster upgrade in an order that is meant to preserve cluster operaYon and minimize service impact. The tradeoff is more stringent prerequisites and a longer upgrade Yme.
Express Upgrade Orchestrates the cluster upgrade in an order that will incur cluster downYme. This method has less stringent prerequisites but completes in a faster upgrade Yme.
52 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated Upgrade: Rolling or Express Choice
Check Prerequisites Prepare Register +
Install Perform Upgrade
Perform the upgrade. The steps depend on upgrade method: Rolling or Express.
Finalize
Finalize the upgrade, making the target version the current
version.
Perform the preparaYon steps,
which include making backups of cri>cal cluster metadata.
Review the prerequisites to
confirm your cluster configuraYon is ready
for upgrade
Register the sosware repository and install the target version on
the cluster.
53 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated Upgrade Choice: Rolling or Express
54 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Automated Upgrade: High-‐Level Process
Register Install Perform Upgrade Finalize
55 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Register New Version
• Register new version with Ambari
• Provide the Repository Base URLs for new version
Register Install Perform Upgrade Finalize
56 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Install Packages
à Click “Install Packages” to start the install of the version across hosts
Register Install Perform Upgrade Finalize
57 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Upgrade Choice
à Upgrade OpYons dialog gives you a choice of method: Rolling or Express
Register Install Perform Upgrade Finalize
58 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Upgrade Choice: Rolling or Express
Checks indicate if an opYon is available
Register Install Perform Upgrade Finalize
59 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Upgrade Choice: Rolling or Express
New opYons to handle failures
Register Install Perform Upgrade Finalize
60 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Upgrade Tolerance Op>ons
Tolerance Op>on Descrip>on
Skip all Service Check failures Ambari will automa>cally skip any Service Check failures and complete the task without requiring user intervenYon to conYnue. Aser all the Service Checks have run in a task, you will be presented with summary of the failures and an opYon to conYnue the upgrade or pause.
Skip all Slave Component failures Ambari will automa>cally skip any Slave Component failures and complete the task of upgrading Slave components without requiring user intervenYon to conYnue. Aser all Slave Components have been upgraded, you will be presented with a summary of the failures and an opYon to conYnue the upgrade or pause.
Register Install Perform Upgrade Finalize
61 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Wizard Driven Experience
With verificaYon and validaYon
Register Install Perform Upgrade Finalize
62 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Rolling Upgrade – Success! Register Install Perform
Upgrade Finalize
63 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Extensibility
64 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Extensibility Features
• To add new Services (ISV or otherwise) beyond Stack • To customize a Stack for customer specific environments
• To extend and customize the Ambari Web UI • Add new capabilities, customize existing capabilities
Stacks
Views
65 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Anatomy of Ambari Extension Points
Ambari Server
Ambari Agent Ambari
Agent Ambari Agent
Ambari Web
Stacks Stacks
Stacks
javajs python
Ambari Views Ambari Stacks
66 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Stacks
67 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Stacks
à Defines a consistent Stack lifecycle interface that can be extended
à Encapsulates Stack Versions, Services, Components, Dependencies, Cardinality, ConfiguraYons, Commands
à Dynamically add Stack + Service definiYons
AMBARI {rest}
<ambari-web>
Stacks
HDFS YARN MR2
Hive
Pig
Oozie HBase
Storm Falcon
68 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Stack Terminology Term Defini>on Examples
STACK Defines a set of Services, where to obtain the sosware packages and how to manage the lifecycle. HDP-‐2.4, HDP-‐2.5
SERVICE Defines the Components that make-‐up the Service. HDFS, YARN, HIVE, SPARK
COMPONENT The building-‐blocks of a Service, that adhere to a certain lifecycle. NAMENODE, DATANODE, OOZIE_SERVER
CATEGORY The category of Component. MASTER, SLAVE, CLIENT
69 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Stack Mechanics
à Stacks define Services + Repos – What is in the Stack, and where to get the bits
à Each Service has a definiYon – What Components are part of the Service
à Each Service has defined lifecycle commands – start, stop, status, install, configure
à Lifecycle is controlled via command scripts
à Ability to define “custom” commands
AMBARI SERVER
Stack
Command Scripts
Service Defini>ons
AMBARI AGENT/S AMBARI AGENT/S AMBARI AGENT/S
pythonxml
Repos
70 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Stacks Support Inheritance
HDP 2.0 Stack
HDP 2.4 Stack
• Defines a set of Service definiYons • Default service configuraYons and command scripts
• Overrides any Service definiYons, commands and configuraYons
• Adds new Services specific to this Stack
71 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Where Can I Learn More About Stacks?
à hhps://cwiki.apache.org/confluence/pages/viewpage.acYon?pageId=38571133
à hhps://github.com/apache/ambari/tree/trunk/ambari-‐server/src/main/resources/stacks/HDP/
72 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Guided Configs
73 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Guided Configura>ons
à Take the guesswork out of cluster configuraYon
à IntuiYve layout and grouping of configuraYons
à Smart UI controls to make it easier to set values
à RecommendaYons and cross-‐service dependency checks
à Take the guesswork out of cluster configuraYon
à Driven by Stack definiYon
74 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Layout and Grouping
Subtabs
75 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
UI Controls
Recommended Bounds
Recommended Value
Set Recommended
Escape Hatch
76 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Control “Escape Hatch”
77 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Dependency Checking
78 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Driven By Stack Defini>on: Themes
79 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Tabs
Tab1 Tab2
80 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Sec>ons
Sec>on1 Sec>on2
81 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
SubSec>ons
SubSec>on1 SubSec>on2 SubSec>on1
82 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
UI Controls and Placement
Control + Placement
Control + Placement
Control + Placement Control + Placement
Control + Placement
83 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Views
84 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Ambari Views Framework
à Developers can extend the Ambari Web interface • Views expose custom UI features for Hadoop Services
à Ambari Admins can enYtle Views to Ambari Web users • EnYtlements framework for controlling access to Views
85 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Views Framework
Views Framework vs. Views
Views
Core to Ambari
Built by Hortonworks, Community, Partners
86 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Views Framework
Views Framework vs. Views
Views
Core to Ambari
Built by Hortonworks, Community, Partners
87 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Example Views
Capacity Scheduler “Queue Manager” View
Tez “Jobs” View
88 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
View Components
à Serve client-‐side assets (such as HTML + JavaScript)
à Expose server-‐side resources (such as REST endpoints)
VIEW Client-‐side assets
(.js, html)
AMBARI WEB
VIEW Server-‐side resources (java)
AMBARI SERVER
{rest}
Hadoop and other
systems
89 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
View Delivery
1. Develop the View (just like you would for a Web App)
2. Package as a View (basically a WAR)
3. Deploy the View into Ambari
4. Ambari Admins create + configuraYon view instance(s) and give access to users + groups
Develop Deploy Package Create
Instance(s)
90 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Versions and Instances
à Deploy mulYple versions and create mulYple instances of a view
à Manage accessibility and usage
91 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Choice of Deployment Model
à For Hadoop Operators: – Deploy Views in an Ambari Server that is managing a Hadoop cluster
à For Data Workers: – Run Views in a “standalone” Ambari Server
Ambari Server
HADOOP Store & Process
Ambari Server
Operators manage the cluster, may have Views deployed
Data Workers use the cluster and use a “standalone” Ambari Server for Views
92 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Where Can I Learn More about Views?
à hhps://cwiki.apache.org/confluence/display/AMBARI/Views
à hhps://github.com/apache/ambari/blob/trunk/ambari-‐views/docs/index.md
à hhps://github.com/apache/ambari/tree/trunk/ambari-‐views/examples
à hhps://github.com/apache/ambari/tree/trunk/contrib/views
93 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
What’s New and Next
94 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
What’s New in Ambari 2.4
à Alerts: Retry tolerance (AMBARI-‐15686)
à Alerts: Customizable SCRIPT Parameters (AMBARI-‐14898)
à Alerts: New HDFS Alerts (AMBARI-‐14800)
à New Host Page Filtering (AMBARI-‐15210)
à Remove Service (AMBARI-‐14759)
à Support for SLES 12 Technical Preview (AMBARI-‐16007)
à Stability: Database Consistency Checking (AMBARI-‐16258)
à Customizable Ambari Log + PID Dirs (AMBARI-‐15300)
à New Version RegistraYon Experience (AMBARI-‐15724)
à Log Search Technical Preview (AMBARI-‐14927)
à OperaYonal Audit Logging (AMBARI-‐15241)
à Role-‐Based Access Control (AMBARI-‐13977)
à Automated Setup of Ambari Kerberos (AMBARI-‐15561)
à Automated Setup of Ambari Proxy User (AMBARI-‐15561)
à Customizable Host Reg. SSH Port (AMBARI-‐13450)
Core Features Security Features
à View URLs (AMBARI-‐15821), View Refresh (AMBARI-‐15682)
à Inherit Cluster Permissions (AMBARI-‐16177)
à Remote Cluster RegistraYon (AMBARI-‐16274)
Views Framework Features
95 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
What’s Next
à Log Search GA (AMBARI-‐14927)
à Service and Component “auto-‐start” (AMBARI-‐2330)
à Ambari Server HA (AcYve-‐Passive + Load Balancer) (AMBARI-‐17126)
à MulY-‐service instances & versions (AMBARI-‐14714)
96 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Learn More About Apache Ambari
Resource Loca>on
Apache Ambari Project Page hhp://ambari.apache.org
Ambari Project Wiki hhps://cwiki.apache.org/confluence/display/AMBARI
Ambari Project JIRA hhps://issues.apache.org/jira/browse/AMBARI
Stacks hhps://cwiki.apache.org/confluence/pages/viewpage.acYon?pageId=38571133
Blueprints hhps://cwiki.apache.org/confluence/display/AMBARI/Blueprints
Views hhps://cwiki.apache.org/confluence/display/AMBARI/Views
97 © Hortonworks Inc. 2011 – 2016. All Rights Reserved
Thank You