Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Service Auto Start Configuration by API

avatar

Ambari services can be configured to start automatically on system boot. Each service can be configured to start all components, masters and workers, or selectively.

so how to enable all services in ambari cluster to start automatically on system boot by API ?

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor
@uri ben-ari

Because there is & symbol in the API call to Shell is taking it differently. So to avoid that please put the whole URL inside Quotation mark as following:

# curl -H "X-Requested-By: ambari" -u admin:admin -X GET "http://localhost:8080/api/v1/clusters/Sandbox/components?fields=ServiceComponentInfo/component_name,ServiceComponentInfo/service_name,ServiceComponentInfo/categoy,ServiceComponentInfo/recovery_enabled,ServiceComponentInfo/total_count&minimal_response=true"

.

View solution in original post

13 REPLIES 13

avatar
Master Mentor

@uri ben-ari

For various components (of different services) the "auto service" can be enabled as following:

curl -H "X-Requested-By: ambari" -u admin:admin -X PUT -d '{"RequestInfo":{"query":"ServiceComponentInfo/component_name.in(APP_TIMELINE_SERVER,NODEMANAGER,RESOURCEMANAGER,ATLAS_SERVER,DATANODE,NAMENODE,NFS_GATEWAY,SECONDARY_NAMENODE,DRPC_SERVER,NIMBUS,STORM_UI_SERVER,SUPERVISOR,FALCON_SERVER,FLUME_HANDLER,HBASE_MASTER,HBASE_REGIONSERVER,HISTORYSERVER,HIVE_METASTORE,HIVE_SERVER,WEBHCAT_SERVER,INFRA_SOLR,KAFKA_BROKER,KNOX_GATEWAY,LIVY2_SERVER,SPARK2_JOBHISTORYSERVER,SPARK2_THRIFTSERVER,LIVY_SERVER,SPARK_JOBHISTORYSERVER,SPARK_THRIFTSERVER,LOGSEARCH_LOGFEEDER,LOGSEARCH_SERVER,METRICS_COLLECTOR,METRICS_GRAFANA,METRICS_MONITOR,OOZIE_SERVER,RANGER_ADMIN,RANGER_TAGSYNC,RANGER_USERSYNC,ZEPPELIN_MASTER,ZOOKEEPER_SERVER)"},"ServiceComponentInfo":{"recovery_enabled":"true"}}'  http://localhost:8080/api/v1/clusters/Sandbox/components?

.

After executing the above API call , you can see the following kind of entry inside your "/var/log/ambari-server/ambari-server.log" which shows how to auto start is enabled on these services & components:

04 Sep 2017 15:46:44,016  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HDFS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,016  INFO [ambari-client-thread-27] AbstractResourceProvider:544 - Operations cannot be applied to component NFS_GATEWAY because service HDFS is in the maintenance state of ON
04 Sep 2017 15:46:44,016  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HIVE, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,016  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: HIVE_METASTORE, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,017  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HDFS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,017  INFO [ambari-client-thread-27] AbstractResourceProvider:544 - Operations cannot be applied to component DATANODE because service HDFS is in the maintenance state of ON
04 Sep 2017 15:46:44,017  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=LOGSEARCH, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,017  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: LOGSEARCH_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,017  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=RANGER, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,018  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: RANGER_USERSYNC, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,018  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=YARN, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,018  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: RESOURCEMANAGER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,018  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=YARN, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,018  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: NODEMANAGER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,019  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=OOZIE, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,019  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: OOZIE_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,019  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HDFS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,019  INFO [ambari-client-thread-27] AbstractResourceProvider:544 - Operations cannot be applied to component NAMENODE because service HDFS is in the maintenance state of ON
04 Sep 2017 15:46:44,019  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=AMBARI_METRICS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,020  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: METRICS_MONITOR, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,020  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=SPARK2, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,020  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: SPARK2_THRIFTSERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,020  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=STORM, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,020  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: DRPC_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,021  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=FLUME, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,021  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: FLUME_HANDLER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,021  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=SPARK2, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,021  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: LIVY2_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,022  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=LOGSEARCH, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,022  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: LOGSEARCH_LOGFEEDER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,022  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=KAFKA, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,022  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: KAFKA_BROKER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,023  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=MAPREDUCE2, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,023  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: HISTORYSERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,023  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=ZOOKEEPER, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,023  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: ZOOKEEPER_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,023  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HIVE, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,024  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: WEBHCAT_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,024  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HDFS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,024  INFO [ambari-client-thread-27] AbstractResourceProvider:544 - Operations cannot be applied to component SECONDARY_NAMENODE because service HDFS is in the maintenance state of ON
04 Sep 2017 15:46:44,024  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=FALCON, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,025  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: FALCON_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,025  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=STORM, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,025  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: STORM_UI_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,025  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=STORM, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,026  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: SUPERVISOR, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,026  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=AMBARI_METRICS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,026  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: METRICS_GRAFANA, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,026  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=YARN, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,027  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: APP_TIMELINE_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,027  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=SPARK, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,027  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: SPARK_JOBHISTORYSERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,028  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=SPARK2, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,029  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: SPARK2_JOBHISTORYSERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,030  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HBASE, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,031  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: HBASE_MASTER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,031  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=RANGER, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,031  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: RANGER_ADMIN, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,032  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=AMBARI_INFRA, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,032  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: INFRA_SOLR, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,032  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HIVE, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,032  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: HIVE_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,033  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=SPARK, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,033  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: LIVY_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,033  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=KNOX, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,033  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: KNOX_GATEWAY, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,034  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=ATLAS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,034  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: ATLAS_SERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,034  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=ZEPPELIN, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,049  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: ZEPPELIN_MASTER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,049  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=RANGER, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,050  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: RANGER_TAGSYNC, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,050  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=STORM, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,050  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: NIMBUS, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,050  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=HBASE, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,050  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: HBASE_REGIONSERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,051  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=SPARK, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,051  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: SPARK_THRIFTSERVER, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,051  INFO [ambari-client-thread-27] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=AMBARI_METRICS, componentName=Sandbox, desiredState=null, recoveryEnabled=true, componentCategory=null]
04 Sep 2017 15:46:44,051  INFO [ambari-client-thread-27] AbstractResourceProvider:559 - Component: METRICS_COLLECTOR, oldRecoveryEnabled: false, newRecoveryEnabled true
04 Sep 2017 15:46:44,161  INFO [ambari-client-thread-27] AmbariManagementControllerImpl:2597 - Created 0 stages
04 Sep 2017 15:46:44,683  INFO [qtp-ambari-agent-39] HeartBeatHandler:289 - Recovery configuration set to RecoveryConfig{, type=AUTO_START, maxCount=6, windowInMinutes=60, retryGap=5, maxLifetimeCount=1024, components=INFRA_SOLR,INFRA_SOLR_CLIENT,METRICS_MONITOR,METRICS_COLLECTOR,METRICS_GRAFANA,ATLAS_CLIENT,ATLAS_SERVER,FALCON_CLIENT,FALCON_SERVER,FLUME_HANDLER,HBASE_CLIENT,HBASE_MASTER,HBASE_REGIONSERVER,HIVE_METASTORE,HIVE_SERVER,HIVE_CLIENT,WEBHCAT_SERVER,KAFKA_BROKER,KNOX_GATEWAY,LOGSEARCH_LOGFEEDER,LOGSEARCH_SERVER,HISTORYSERVER,MAPREDUCE2_CLIENT,OOZIE_SERVER,OOZIE_CLIENT,PIG,RANGER_ADMIN,RANGER_TAGSYNC,RANGER_USERSYNC,SLIDER,SPARK_CLIENT,SPARK_JOBHISTORYSERVER,LIVY_SERVER,LIVY2_SERVER,SPARK2_THRIFTSERVER,SPARK2_CLIENT,SPARK2_JOBHISTORYSERVER,SQOOP,SUPERVISOR,NIMBUS,DRPC_SERVER,STORM_UI_SERVER,TEZ_CLIENT,NODEMANAGER,YARN_CLIENT,APP_TIMELINE_SERVER,RESOURCEMANAGER,ZEPPELIN_MASTER,ZOOKEEPER_SERVER,ZOOKEEPER_CLIENT, recoveryTimestamp=1504540004674}

.

avatar

I run the API but from ambari GUI I not see any diff ( is like all services are disabled )

Michael-Bronson

avatar
Master Mentor

@uri ben-ari

The mentioned API call will work only on ambari 2.5.x and above.

The services / components should not be in maintenance mode else the recovery_enabled might not work.

Also if you want to see the difference then try changing the following part of the PUT request to true and then false and then re run the API call.

"ServiceComponentInfo":{"recovery_enabled":"true"}
TO
"ServiceComponentInfo":{"recovery_enabled":"false"}

.

avatar

is it possible to verify that all services and components are enabled by API ? ( not from log )

Michael-Bronson

avatar
Master Mentor

@uri ben-ari To get all the components "recovery_enabled" status:

curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://localhost:8080/api/v1/clusters/Sandbox/components?fields=ServiceComponentInfo/component_name,...;

avatar

for testing I guess the ideal test is to reboot the master machines and see all services are up ( include the componets ) ?

Michael-Bronson

avatar

we have version 2.6 , but when from ambari GUI we select ADMIN --> service auto restart we see ( Auto-Start Services

Disabled )
Michael-Bronson

avatar

why the "<br>" in the end of API?

Michael-Bronson

avatar
Master Mentor

@uri ben-ari

It's a type mistake , please remove the <br>


curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://localhost:8080/api/v1/clusters/Sandbox/components?fields=ServiceComponentInfo/component_name,...

.