we have *HDP* cluster , version 2.6.5 , and *Ambari*
we have in cluster ***436 datanode*** linux machines
we are trying to perform decommission and recommission on the *datanode*
decommission , is working fine VIA API
but when we did the recommission , then we not succeeded
example:
machine_name=datanode01
CLUSTER_NAME=hdp_prod5
AMBARI_MACHINE=master_02
curl -u admin:admin -i -H 'X-Requested-By: ambari' -X POST -d '{
"RequestInfo":{
"context":"Recommission DataNodes",
"command":"RECOMMISSION",
"parameters":{
"slave_type":"DATANODE",
"excluded_hosts":"'"machine_name"'"
},
"operation_level":{
"level":"HOST_COMPONENT",
"cluster_name":"'"$CLUSTER_NAME"'"
}
},
"Requests/resource_filters":[
{
"service_name":"HDFS",
"component_name":"NAMENODE"
}
]
}' http://$AMBARI_MACHINE:8080/api/v1/clusters/$CLUSTER_NAME/requests
we get the following exception:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1798 100 1798 0 0 126k 0 --:--:-- --:--:-- --:--:-- 159k
HTTP/1.1 500 Internal Server Error
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=147rwl7q2x4otjuh7tle4ee6y;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 150
{
"status" : 500,
"message" : "An internal system exception occurred: Unsupported action RECOMMISSION for Service: HDFS and Component: NAMENODE"
any idea why we get - `Unsupported action RECOMMISSION` ?
Michael-Bronson