Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1916 | 06-15-2020 05:23 AM | |
| 15448 | 01-30-2020 08:04 PM | |
| 2068 | 07-07-2019 09:06 PM | |
| 8099 | 01-27-2018 10:17 PM | |
| 4566 | 12-31-2017 10:12 PM |
09-11-2017
06:47 PM
when I run the first syntax ( step 1 ) I get - USERID=admin
PASSWORD=admin
PORT=:8080
[ERROR] "/tmp/cluster-env.txt" not found in server response.
[ERROR] Output of `curl -k -s -u admin:admin "http://master.uns.com:8080/api/v1/clusters/cluster-env?fields=Clusters/desired_configs"` is:
[ERROR] { "status" : 404, "message" : "The requested resource doesn't exist: Cluster not found, clusterName=cluster-env" }
... View more
09-11-2017
02:19 PM
is it possible by API to check that button change from disable to enable ?
... View more
09-11-2017
12:42 PM
I want to enable the button - Auto-Start Services from disable to enable by API as described in picture2 (capture2), the default status is as described in picture1 * need to set the button to enable - in order to configure all the components as auto start
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
09-06-2017
02:48 PM
I do the following API in order to enable all services in ambari cluster to start automatically on system first I collect all components: list_of_all_components=` curl -H "X-Requested-By: ambari" -u admin:admin -X GET "http://localhost:8080/api/v1/clusters/HDP01/components?fields=ServiceComponentInf/component_name,ServiceComponentInfo/service_name,ServiceComponentInfo/categoy,ServiceComponentInfo/recovery_enabled,ServiceComponentInfo/total_count&minimal_response=true" | grep component_name | sed s'/"//g' | sed s'/,//g' | awk '{print $NF}' ` then I add the field separator "," LIST=` echo $list_of_all_components | sed s'/ /,/g' ` and I defined the variable - $LIST inside the following API curl -H "X-Requested-By: ambari" -u admin:admin -X PUT -d '{"RequestInfo":{"query":"ServiceComponentInfo/component_name.in($LIST)"},"ServiceComponentInfo":{"recovery_enabled":"true"}}' http://localhost:8080/api/v1/clusters/HDP01/components? what is wrong with this , why API not accepted the variable - $LIST
{
"status" : 500,
"message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Could not find service for component, componentName=$LIST, clusterName=HDP01, stackInfo=HDP-2.6" remark - the answer - https://community.hortonworks.com/questions/135367/service-auto-start-configuration-by-api.html , is the same solution but have the real names components , what we want is to add the variable $LIST insted the real componets name
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
09-04-2017
04:48 PM
another note the components - JournalNode,ZKFailoverController are still disable
... View more
09-04-2017
04:22 PM
capture.png see the PIC above , why after API the Auto-Start Services still disable from the GUI ?
... View more
09-04-2017
04:19 PM
now the API runs but not return prompt ( only after ENTER we get prompt )
... View more
09-04-2017
04:13 PM
why the "<br>" in the end of API?
... View more
09-04-2017
04:04 PM
we have version 2.6 , but when from ambari GUI we select ADMIN --> service auto restart we see ( Auto-Start Services Disabled )
... View more
09-04-2017
04:01 PM
for testing I guess the ideal test is to reboot the master machines and see all services are up ( include the componets ) ?
... View more