© Hortonworks Inc. 2013
Ambari
Configuration API
June 25, 2013
Page 1
© Hortonworks Inc. 2013
Agenda
• Purpose
• Types
• Cluster
• Host Overrides
• Host Component / Actual
Page 2
© Hortonworks Inc. 2013
Purpose
• Provide ability to set any config parameter
• Values used to populate configuration file...
© Hortonworks Inc. 2013
Types
• Two main types: global and site
• Global Configuration
–Values required by shell or puppet...
© Hortonworks Inc. 2013
Cluster - Definition
• All configurations stored with cluster
GET /api/v1/clusters/c1/configuratio...
© Hortonworks Inc. 2013
Cluster – Desired
• Only One Desired per type
GET /api/v1/clusters/c1
{
"Clusters": {
"cluster_id"...
© Hortonworks Inc. 2013
Host Overrides – Desired
• Mechanism to set specific host-level overrides
• Only One Desired per t...
© Hortonworks Inc. 2013
Host Components – Actual
• Discreet information, per Host Component
• Structure similar to Cluster...
© Hortonworks Inc. 2013
Thank You
Page 9
Upcoming SlideShare
Loading in...5
×

Apache Ambari BOF - Configs - Hadoop Summit 2013

936

Published on

Apache Ambari BOF Meet Up @ Hadoop Summit 2013

Configs

http://www.meetup.com/Apache-Ambari-User-Group/events/119184782/

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
936
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
35
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Apache Ambari BOF - Configs - Hadoop Summit 2013

  1. 1. © Hortonworks Inc. 2013 Ambari Configuration API June 25, 2013 Page 1
  2. 2. © Hortonworks Inc. 2013 Agenda • Purpose • Types • Cluster • Host Overrides • Host Component / Actual Page 2
  3. 3. © Hortonworks Inc. 2013 Purpose • Provide ability to set any config parameter • Values used to populate configuration files in /etc/hadoop/conf (core-site, hdfs-site, etc) • Mechanism to set and view configurations • Insight into host configuration state Page 3
  4. 4. © Hortonworks Inc. 2013 Types • Two main types: global and site • Global Configuration –Values required by shell or puppet scripts –Denoted using specially named global type • Site-specific Configurations –Used by Hadoop components for fine-tuning a cluster –Named using standard Hadoop types (core-site, hdfs-site, mapred-site, etc) Page 4
  5. 5. © Hortonworks Inc. 2013 Cluster - Definition • All configurations stored with cluster GET /api/v1/clusters/c1/configurations?type=global&tag=version1 { "type": "global", "tag": "version1", "properties": { "a": "b", "c": "d" } } • Uniqueness defined by type/tag combinations • Type is matched to Hadoop configuration names, but is not restricted • Tag can be any string Page 5
  6. 6. © Hortonworks Inc. 2013 Cluster – Desired • Only One Desired per type GET /api/v1/clusters/c1 { "Clusters": { "cluster_id": 1, "desired_configs": { "global": { "tag": "version1", "user": "admin" }, ... } } } • Auditing username and timestamp Page 6
  7. 7. © Hortonworks Inc. 2013 Host Overrides – Desired • Mechanism to set specific host-level overrides • Only One Desired per type, like Cluster GET /api/v1/clusters/c1/hosts/h1 { "Hosts": { "cluster_name": "c1", "host_name": "h1", "desired_configs": { "global": { "tag": "custom-mapred", "user": "admin" }, ... } } } Page 7
  8. 8. © Hortonworks Inc. 2013 Host Components – Actual • Discreet information, per Host Component • Structure similar to Cluster/Host desired GET /api/v1/clusters/c1/hosts/h1/host_components/DATANODE { "HostRoles" : { "cluster_name" : "c1", "component_name" : "DATANODE", "actual_configs" : { "core-site" : { "tag" : "version1" }, "global" : { "tag" : "version1” } } } } Page 8
  9. 9. © Hortonworks Inc. 2013 Thank You Page 9
  1. Gostou de algum slide específico?

    Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

×