Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

Super 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

Rising Star

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

Rising Star

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

Super 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

Mentor

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

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.