- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
API + restart the services that restart is required
- Labels:
-
Apache Ambari
-
Apache Hadoop
Created ‎08-17-2017 05:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
after adding new parameter and value to the ambari cluster , we need to restart the service to take affect
from ambari GUI restart the service is required , and we can see that because restart button is colored with orange
so my question is
we need API command that restart only the services that restart is required?
Created ‎08-17-2017 06:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please pardon me 😞
The URL should end with "requests" instead of "request".
Example:
# curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operation_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests { "href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests/132", "Requests" : { "id" : 132, "status" : "Accepted" } }
.
Created ‎08-17-2017 06:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I test it again , hostname for sure is ok and the cluster name is correct , what chuld be the problem
Created ‎08-17-2017 06:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please pardon me 😞
The URL should end with "requests" instead of "request".
Example:
# curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operation_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests { "href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests/132", "Requests" : { "id" : 132, "status" : "Accepted" } }
.
Created ‎08-17-2017 06:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
now command its works , but in the ambari cluster the service hive and the service spark2 still have the button restart in orange ( so seems command works on linux ) but not refreshed the service , the target of my quastion was to restart/refreshed all services that need to be restart
Created ‎08-17-2017 06:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check the progress of the request ID ... to see if it is completed or stuck:?
Example:
curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests/132
.
Created ‎08-17-2017 06:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
every thing is ok now thx

- « Previous
-
- 1
- 2
- Next »