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

Mount Point: /api/v17/clusters/{clusterName}/services/{serviceName}/roleCommands/hdfsInitializeSharedDir

POST

Initialize HDFS NameNodes' shared edit directory.

Shared edit directories are used when two HDFS NameNodes are operating as a high-availability pair. This command initializes the shared directory to include the necessary metadata.

The provided role names should reflect one of the NameNodes in the respective HA pair; the role must be stopped and its data directory must already have been formatted. The shared edits directory must be empty for this command to succeed.

Parameters

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

Request Body

element: roleNames

The names of the NameNodes.

Response Body

element: bulkCommandList

A list of submitted commands.