标签:des style http color io os ar for strong
注意:如果一个集群有多台host 那么调用多次命令。
采用HTTP POST http://<ambari-server>:8080/api/v1/clusters/<cluster-name>/services
request body
{
"ServiceInfo": {
"service_name": "HDFS"
}
}
实际命令
{
"Clusters": {
"desired_configs": {
"type": "hadoop-user-info.properties",
"tag": "1"
}
}
}
实际命令
{
"host_components": [
{
"HostRoles": {
"component_name": "NAMENODE"
}
}
]
}
{
"ServiceInfo": {
"state": "INSTALLED"
}
}
实际命令:
{
"ServiceInfo": {
"state": "STARTED"
}
}
实际命令:
文章有改动过 具体关于ambari的问题可以联系我 大家一起讨论一下
标签:des style http color io os ar for strong
原文地址:http://blog.csdn.net/prime7/article/details/40394503