/clusters/{clusterName}/services/{serviceName}/roleCommands/hdfsFormat

Mount Point: /rest/clusters/{clusterName}/services/{serviceName}/roleCommands/hdfsFormat

POST

Format HDFS NameNodes.

Submit a format request to a list of NameNodes on a service. Note that trying to format a previously formatted NameNode will fail.

Note about high availability: when two NameNodes are working in an HA pair, only one of them should be formatted.

Bulk command operations are not atomic, and may contain partial failures. The returned list will contain references to all successful commands, and a list of error messages identifying the roles on which the command failed.

Parameters

name description type default
serviceName (no documentation provided) path
clusterName (no documentation provided) path

Request Body

element: roleNames

The names of the NameNodes to format.

Response Body

element: bulkCommandList

A list of submitted commands.