要创建新的配置组,必须提供一个配置组名称,一个标记以及它所属的群集名称。在此示例中看到的标签是服务的名称。具有相同标签的两个配置组不能与同一主机关联。
如何使用curl运行以下json文件?
为了在ambari中设置此配置组
POST /api/v1/clusters/c1/config_groups
[
{
"ConfigGroup": {
"cluster_name": "c1",
"group_name": "hdfs-nextgenslaves",
"tag": "HDFS",
"description": "HDFS configs for rack added on May 19, 2010",
"hosts": [
{
"host_name": "host1"
}
],
"desired_configs": [
{
"type": "core-site",
"tag": "nextgen1",
"properties": {
"key": "value"
}
}
]
}
}
]
参考-https://github.com/swagle/test/blob/master/docs/api/v1/config-groups.md