Gather a set of functions to communicate with Apche Ambari REST API v2 It can be used with nikita
It has been built for Node.js and is written in CoffeeScript.
Example usage can be found in test:
- plain javascript in callback method
configs.get({
"username": 'ambari_admin',
"password": 'ambari_secret',
"url": "http://ambari.server.com",
"config_type": 'hdfs-site'
}
}, function(err, status, properties){
console.log( err ? err.message : "Properties are: " + properties)
})
- coffeescript example with as a nikita action
@ambari.hosts.component_wait
url: 'http://ambari.server.com'
username: 'admin_admin'
password: 'ambari_secret'
cluster_name: 'my_cluster'
component_name: 'HDFS_CLIENT'
hostname: 'agent.server.com'
-
cluster
- add
- delete
- node_add
- node_delete
- persist
- provisioning_state
- update
- wait
-
configs
- groups
- add
- delete
- get
- list
- set_default
- update
-
hosts
- add
- component_add
- component_install
- component_start
- component_status
- component_stop
- component_update
- component_wait
- delete
- rack
-
kerberos
- descriptor
- update
- descriptor
-
services
- add
- component_add
- delete
- wait
-
stacks
- default_informations
- kerberos_descriptor
- repository_version_add
- vdf_add