Simple REST API call samples has been added.
* it could be removed in future; * it contains jsons for creating both node group and cluster templates. Change-Id: I13fc834cb11b3f21a02198a3f02334205532bc23
This commit is contained in:
parent
8271455750
commit
ebc2153fd8
25
etc/rest-api-samples/cluster_tmpl_create.json
Normal file
25
etc/rest-api-samples/cluster_tmpl_create.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "demo-cluster-template",
|
||||
"description": "Demo Cluster template",
|
||||
"plugin_name": "vanilla",
|
||||
"hadoop_version": "1.1.1",
|
||||
"cluster_configs": {
|
||||
"general": {
|
||||
"some_general_conf": "qwerty"
|
||||
}
|
||||
},
|
||||
"node_groups": [
|
||||
{
|
||||
"name": "master",
|
||||
"node_group_template_id": "9291e73c-0982-4728-820e-0ee77f8e317c",
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "worker",
|
||||
"flavor_id": "42",
|
||||
"node_processes": ["tasktracker", "datanode"],
|
||||
"node_configs": {},
|
||||
"count": 2
|
||||
}
|
||||
]
|
||||
}
|
17
etc/rest-api-samples/node_group_tmpl_create.json
Normal file
17
etc/rest-api-samples/node_group_tmpl_create.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "test-master-tmpl",
|
||||
"description": "Test template for master node",
|
||||
"flavor_id": "m1.xlarge",
|
||||
"plugin_name": "vanilla",
|
||||
"hadoop_version": "1.1.1",
|
||||
"node_processes": ["tasktracker", "namenode"],
|
||||
"node_configs": {
|
||||
"hdfs": {
|
||||
"some_hdfs_config_1": "value_1",
|
||||
"some_hdfs_config_2": "value_2"
|
||||
},
|
||||
"mapreduce": {
|
||||
"some_mapreduce_config_1": "value_3"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user