/clusters/{clusterName}/services/{serviceName}/commands/enableJtHa
Mount Point: /api/v7/clusters/{clusterName}/services/{serviceName}/commands/enableJtHa
POST
Enable high availability (HA) for a JobTracker.
This command only applies to CDH4 MapReduce services.
The command will create a new JobTracker on the specified host and then create an active/standby pair with the existing JobTracker. Autofailover will be enabled using ZooKeeper. A ZNode will be created for this purpose. Command arguments provide option to forcefully create this ZNode if one already exists. A node may already exists if JobTracker was previously enabled in HA mode but HA mode was disabled later on. The ZNode is not deleted when HA is disabled.
As part of enabling HA, any services that depends on the MapReduce service being modified will be stopped. Command will redeploy the client configurations for services of the cluster after HA has been enabled.
Parameters
name | description | type | default |
---|---|---|---|
serviceName | The MapReduce service name. | path | |
clusterName | (no documentation provided) | path |
Request Body
element: | enableJtHaArgs |
Arguments for the command.
Response Body
element: | command |
Information about the submitted command.