博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
REST API disable / enable service auto start by API
阅读量:5145 次
发布时间:2019-06-13

本文共 1484 字,大约阅读时间需要 4 分钟。

how to disable service auto start by API as the following

how to enable service auto start by API as the following

Do you mean something similar to the one which is mentioned here:

 
 1  隐藏 3 · 
·  0
 

the api from from this link answer about to enable all services , but what we need is only to enable / disable the auto start services , as described in the pictures ( like click on button to disable (pic1) ,and click on the button to enable (pic2) )

 
  Michael Bronson ·  0
 

Through API call it will be bit complex because ambari client needs to send a very huge Payload to make that change.

However the easiest option will be to use the following approach from ambari server host:

To Enable Auto start Services

# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=TestCluster --config-type=cluster-env -k "recovery_enabled" -v "true"

To Disable Auto start Services

# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=TestCluster --config-type=cluster-env -k "recovery_enabled" -v "false"

Please change the Cluster name "TestCluster" and ambari credentials in the above script .

Above script needs to be executed from ambari server host as it has the "" file.

·  0
 

@Jay thank you so much , regrading the cluster size (  ) , dose cluster size mean - Number of workers machines ?

转载于:https://www.cnblogs.com/felixzh/p/10712848.html

你可能感兴趣的文章
电子书下载:Professional ASP.NET Design Patterns
查看>>
单机版你画我猜--摘自前端网
查看>>
random 产生一个随机数的方法
查看>>
c语言小项目-使用mysql数据库的图书管理系统
查看>>
数字三角形3
查看>>
poj2155(Matrix)(树状数组)
查看>>
Flutter实战视频-移动电商-04.底部导航栏切换效果
查看>>
java网络编程基本知识
查看>>
spring boot 配置文件
查看>>
形态学滤波(3):使用形态学滤波对图像进行边缘及角点检测.
查看>>
mysql 数据库迁移
查看>>
PAT-乙级-1021 个位数统计
查看>>
GreenPlum学习笔记:date_part与extract提取日期时间、时间差
查看>>
PHP 练习1:新闻发布
查看>>
【3】Zookeeper中的角色
查看>>
实训0528
查看>>
AXD 的使用以及源代码说明
查看>>
C++学习笔记第三天:类、虚函数、双冒号
查看>>
将10进制数转换为任意进制数进行显示
查看>>
Elasticsearch 环境配置
查看>>