- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to display my own dummy task with message in ambari Background operation tab?
- Labels:
-
Apache Ambari
Created on 06-14-2017 06:17 AM - edited 08-17-2019 09:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By default ambari background operations tab display the:-
1. Start/Stop of Service/components.
2. Installation of components.
I want to create a dummy task(request) along with display message to be shown in background operations tab which should always pass.
for example
PUT URl:- http://<cluster_ip>:8080/api/v1/clusters/<cluster_name>/requests { "RequestInfo": { "context": "Update Successful", "command": "HDFS_SERVICE_CHECK" }, "Requests/resource_filters": [ { "service_name": "HDFS" } ] }
Screenshot:-
Here I am reusing "HDFS_SERVICE_CHECK" to display my own message. But it may fail if there is a problem related to HDFS. hence I wanted to create my own task which will not change the state of the cluster and should always pass.
Created 06-23-2017 08:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Pradarttana Panda If you are looking this for your testing purpose and want to ensure that the operation succeeds every time, then you can use the action to refresh the client configs. ie you can perform the 'Refresh Configs' operation on slider or Kerberos components and it will succeed in mejority of the cases.
Created 06-23-2017 08:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Pradarttana Panda If you are looking this for your testing purpose and want to ensure that the operation succeeds every time, then you can use the action to refresh the client configs. ie you can perform the 'Refresh Configs' operation on slider or Kerberos components and it will succeed in mejority of the cases.