Support Questions

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

how to delete accumulo services and clients from ambari???

avatar
Master Collaborator

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

1 ACCEPTED SOLUTION

avatar
Expert Contributor

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

View solution in original post

4 REPLIES 4

avatar
Expert Contributor

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

avatar
Master Collaborator

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"

1608-accumulo.png

Also i dont no how to unistall the clients in the nodes.

Many many thanks

avatar
Master Mentor

You can delete components using the same API. Restart Ambari server after running the previous command.

avatar
Master Mentor