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:
Sergey Lukjanov 2013-06-05 23:48:06 +04:00
parent 8271455750
commit ebc2153fd8
2 changed files with 42 additions and 0 deletions

View 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
}
]
}

View 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"
}
}
}