POST /api/v1/clusters/hdp/requests
{
"RequestInfo": {
"context": "Rebalance HDFS",
"command": "REBALANCEHDFS",
"namenode": "{\"threshold\":\"10\"}"
},
"Requests/resource_filters": [
{
"service_name": "HDFS",
"component_name": "NAMENODE",
"hosts": "host01.foobar.local"
}
]
}
Variables to change:
- threshold: https://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#balancer
- hosts: the NameNode name node