Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution

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

Accepted Solutions
Highlighted

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

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
Highlighted

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

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

Highlighted

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

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

Highlighted

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

Mentor

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

Highlighted

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

Don't have an account?
Coming from Hortonworks? Activate your account here