- 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 delete accumulo services and clients from ambari???
- Labels:
-
Apache Accumulo
Created ‎01-27-2016 02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to delete accumulo services and clients from ambari.
I cant from UI and Rest API
[root@lnxbig05 R_repository]# curl -u admin:admin -X DELETE http://lnxbig05:8080/api/v1/clusters/rsicluster01/services/ACCUMULO { "status" : 400, "message" : "CSRF protection is turned on. X-Requested-By HTTP header is required."
Many thanks
Created ‎01-27-2016 02:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The X-Requested-By HTTP header is required. Try this:
curl -u admin:admin -X DELETE -H "X-Requested-By: ambari" http://lnxbig05:8080/api/v1/clusters/rsicluster01/services/ACCUMULO
Created ‎01-27-2016 02:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The X-Requested-By HTTP header is required. Try this:
curl -u admin:admin -X DELETE -H "X-Requested-By: ambari" http://lnxbig05:8080/api/v1/clusters/rsicluster01/services/ACCUMULO
Created on ‎01-28-2016 07:55 AM - edited ‎08-19-2019 04:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many Thanks:
After execute de script everything is deleted, but on the ambari Interface i can see the service.
[root@lnxbig05 Logs]# curl -u admin:admin -X DELETE -H "X-Requested-By: ambari" http://lnxbig05:8080/api/v1/clusters/rsicluster01/services/ACCUMULO { "status" : 404, "message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Service not found, clusterName=rsicluster01, serviceName=ACCUMULO"
Also i dont no how to unistall the clients in the nodes.
Many many thanks
Created ‎01-28-2016 11:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can delete components using the same API. Restart Ambari server after running the previous command.
Created ‎01-28-2016 11:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is helpful for future reference. https://gist.github.com/randerzander/5b7b0e075e59f87d3c84
Thanks @Randy Gelhausen
