public interface HostsResourceV10 extends HostsResourceV2
Modifier and Type | Method and Description |
---|---|
ApiCommand |
migrateRoles(String hostId,
ApiMigrateRolesArguments args)
Migrate roles to a different host.
|
enterMaintenanceMode, exitMaintenanceMode
createHosts, deleteAllHosts, deleteHost, getMetrics, readHost, readHostConfig, readHosts, updateHost, updateHostConfig
@Path(value="/{hostId}/commands/migrateRoles") ApiCommand migrateRoles(String hostId, ApiMigrateRolesArguments args)
This command applies only to HDFS NameNode, JournalNode, and Failover Controller roles. In order to migrate these roles:
If the active NameNode is selected for migration, a manual failover will be performed before the role is migrated. The role will remain in standby mode after the migration is complete.
When migrating a NameNode role, the co-located Failover Controller role must be migrated as well if automatic failover is enabled. The Failover Controller role name must be included in the list of role names to migrate specified in the arguments to this command (it will not be included implicitly). This command does not allow a Failover Controller role to be moved by itself, although it is possible to move a JournalNode independently.
Available since API v10.
hostId
- The ID of the host on which the roles to migrate currently
resideargs
- Arguments for the command.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.