Support Questions

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

In Ambari 2.6.2 how to delete and re-install clients on the worker nodes.

avatar
New Contributor

Can you please suggest how to delete/remove individual clients and reinstall. 

 

2 REPLIES 2

avatar
Rising Star

You can try this using the Rest api:

 

# DELETE the Client
curl -k -u admin:admin -H "X-Requested-By: ambari" -X DELETE
"$HTTP_PROTOCOL://$CONSOLE_NODE:$PORT/api/v1/clusters/$CLUSTER/host_components?HostRoles/component_name.in(HDFS_CLIENT)&HostRoles/host_name.in(hostname01,hostname02)"

# INSTAL the Client
curl -v -k -i -u 'admin:admin' -H 'X-Requested-By: ambari' -X POST -d '
{
  "RequestInfo":{
    "query":"Hosts/host_name.in(hostname01)"
  },
  "Body":{
    "host_components":[
    {
      "HostRoles":{
        "component_name":"HDFS_CLIENT"
      }
    }
    ]
  }
}' '$HTTP_PROTOCOL://$CONSOLE_NODE:$PORT/api/v1/clusters/$CLUSTER/hosts'

 

avatar
Community Manager

@Mahesh20,Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: