public interface ServicesResourceV6 extends ServicesResourceV4
Modifier and Type | Method and Description |
---|---|
ApiCommand |
createImpalaUserDirCommand(String serviceName)
Create the Impala user directory
|
ApiCommand |
createYarnJobHistoryDirCommand(String serviceName)
Create the Yarn job history directory
|
ApiCommand |
createYarnNodeManagerRemoteAppLogDirCommand(String serviceName)
Create the Yarn NodeManager remote application log directory
|
ApiCommand |
disableOozieHaCommand(String serviceName,
ApiDisableOozieHaArguments args)
Disable high availability (HA) for Oozie.
|
ApiCommand |
disableRmHaCommand(String serviceName,
ApiDisableRmHaArguments args)
Disable high availability (HA) for ResourceManager.
|
ApiCommand |
enableOozieHaCommand(String serviceName,
ApiEnableOozieHaArguments args)
Enable high availability (HA) for Oozie service.
|
ApiCommand |
enableRmHaCommand(String serviceName,
ApiEnableRmHaArguments args)
Enable high availability (HA) for a YARN ResourceManager.
|
ImpalaQueriesResourceV6 |
getImpalaQueriesResource(String serviceName)
Return the Impala queries resource handler.
|
RoleCommandsResourceV6 |
getRoleCommandsResource(String serviceName) |
RolesResourceV6 |
getRolesResource(String serviceName) |
SnapshotsResource |
getSnapshotsResource(String serviceName)
Available since API v6.
|
YarnApplicationsResource |
getYarnApplicationsResource(String serviceName) |
ApiCommand |
hbaseUpgradeCommand(String serviceName)
Upgrade HBase data in HDFS and ZooKeeper as part of upgrade from CDH4 to CDH5.
|
ApiCommand |
hdfsDisableNnHaCommand(String serviceName,
ApiDisableNnHaArguments args)
Disable High Availability (HA) with Automatic Failover for an HDFS NameNode.
|
ApiCommand |
hdfsEnableNnHaCommand(String serviceName,
ApiEnableNnHaArguments args)
Enable High Availability (HA) with Automatic Failover for an HDFS NameNode.
|
ApiCommand |
hdfsUpgradeMetadataCommand(String serviceName)
Upgrade HDFS Metadata as part of a major version upgrade.
|
ApiCommand |
hiveUpgradeMetastoreCommand(String serviceName)
Upgrade Hive Metastore as part of a major version upgrade.
|
ApiCommand |
impalaCreateCatalogDatabaseCommand(String serviceName)
Not needed in CM 5.0.0 Release, since Impala Catalog Database
is not yet available in CDH as of this release.
Create the Impala Catalog Database.
|
ApiCommand |
impalaCreateCatalogDatabaseTablesCommand(String serviceName)
Not needed in CM 5.0.0 Release, since Impala Catalog Database
is not yet available in CDH as of this release.
Create the Impala Catalog Database tables.
|
ApiCommand |
importMrConfigsIntoYarn(String serviceName)
Import MapReduce configuration into Yarn, overwriting Yarn configuration.
|
ApiCommandMetadataList |
listServiceCommands(String serviceName)
Lists all the commands that can be executed by name
on the provided service.
|
ApiCommand |
oozieUpgradeDbCommand(String serviceName)
Upgrade Oozie Database schema as part of a major version upgrade.
|
ApiCommand |
serviceCommandByName(String serviceName,
String commandName)
Executes a command on the service specified
by name.
|
ApiCommand |
sqoopUpgradeDbCommand(String serviceName)
Upgrade Sqoop Database schema as part of a major version upgrade.
|
ApiCommand |
switchToMr2(String serviceName)
Change the cluster to use MR2 instead of MR1.
|
createHiveUserDirCommand, createSolrHdfsHomeDirCommand, createSqoopUserDirCommand, disableJtHaCommand, enableJtHaCommand, getHdfsUsageReport, getMrUsageReport, getReplicationsResource, hiveCreateMetastoreDatabaseCommand, hiveUpdateMetastoreNamenodesCommand, initSolrCommand
createHiveWarehouseCommand, getRoleConfigGroupsResource, hdfsRollEditsCommand, hiveCreateMetastoreDatabaseTablesCommand, installOozieShareLib, rollingRestart, updateService
createOozieDb, enterMaintenanceMode, exitMaintenanceMode, getClientConfig, hdfsCreateTmpDir, recommissionCommand
createBeeswaxWarehouseCommand, createHBaseRootCommand, createServices, decommissionCommand, deleteService, deployClientConfigCommand, getActivitiesResource, getMetrics, getNameservicesResource, hdfsDisableAutoFailoverCommand, hdfsDisableHaCommand, hdfsEnableAutoFailoverCommand, hdfsEnableHaCommand, hdfsFailoverCommand, listActiveCommands, listRoleTypes, readService, readServiceConfig, readServices, restartCommand, startCommand, stopCommand, updateServiceConfig, zooKeeperCleanupCommand, zooKeeperInitCommand
RolesResourceV6 getRolesResource(String serviceName)
getRolesResource
in interface ServicesResource
getRolesResource
in interface ServicesResourceV2
getRolesResource
in interface ServicesResourceV4
@Path(value="/{serviceName}/snapshots") SnapshotsResource getSnapshotsResource(String serviceName)
@Path(value="/{serviceName}/yarnApplications") YarnApplicationsResource getYarnApplicationsResource(String serviceName)
@Path(value="/{serviceName}/commands/importMrConfigsIntoYarn") ApiCommand importMrConfigsIntoYarn(String serviceName)
You will lose existing Yarn configuration. Read all MapReduce configuration, role assignments, and role configuration groups and update Yarn with corresponding values. MR1 configuration will be converted into the equivalent MR2 configuration.
Before running this command, Yarn must be stopped and MapReduce must exist with valid configuration.
Available since API v6.
serviceName
- Name of the Yarn service on which to run the command.@Path(value="/{serviceName}/commands/switchToMr2") ApiCommand switchToMr2(String serviceName)
Will perform the following steps:
Available since API v6.
serviceName
- Name of the Yarn service on which to run the command.@Path(value="/{serviceName}/commands/enableRmHa") ApiCommand enableRmHaCommand(String serviceName, ApiEnableRmHaArguments args)
This command only applies to CDH5+ YARN services.
The command will create a new ResourceManager on the specified host and then create an active/standby pair with the existing ResourceManager. Autofailover will be enabled using ZooKeeper.
As part of enabling HA, any services that depends on the YARN service being modified will be stopped. Command will redeploy the client configurations for services of the cluster after HA has been enabled.
serviceName
- The YARN service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/disableRmHa") ApiCommand disableRmHaCommand(String serviceName, ApiDisableRmHaArguments args)
serviceName
- The YARN service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/oozieEnableHa") ApiCommand enableOozieHaCommand(String serviceName, ApiEnableOozieHaArguments args)
This command only applies to CDH5+ Oozie services.
The command will create new Oozie Servers on the specified hosts and set the ZooKeeper and Load Balancer configs needed for Oozie HA.
As part of enabling HA, any services that depends on the Oozie service being modified will be stopped and restarted after enabling Oozie HA.
serviceName
- The Oozie service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/oozieDisableHa") ApiCommand disableOozieHaCommand(String serviceName, ApiDisableOozieHaArguments args)
serviceName
- The Oozie service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/hdfsEnableNnHa") ApiCommand hdfsEnableNnHaCommand(String serviceName, ApiEnableNnHaArguments args)
The command will create a Standby NameNode for the given nameservice and create FailoverControllers for both Active and Standby NameNodes. The SecondaryNameNode associated with the Active NameNode will be deleted.
The command will also create JournalNodes needed for HDFS HA if they do not already exist.
As part of enabling HA, any services that depend on the HDFS service being modified will be stopped. They will be restarted after HA has been enabled. Finally, client configs for HDFS and its depedents will be re-deployed.
serviceName
- The HDFS service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/hdfsDisableNnHa") ApiCommand hdfsDisableNnHaCommand(String serviceName, ApiDisableNnHaArguments args)
As part of disabling HA, any services that depend on the HDFS service being modified will be stopped. The command will delete the Standby NameNode associated with the specified NameNode. Any FailoverControllers associated with the NameNode's nameservice are also deleted. A SecondaryNameNode is created on the host specified by the arugments.
If no nameservices uses Quorum Journal after HA is disabled for the specified nameservice, then all JournalNodes are also deleted.
Then, HDFS service is restarted and all services that were stopped are started again afterwards. Finally, client configs for HDFS and its depedents will be re-deployed.
serviceName
- The HDFS service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/hdfsUpgradeMetadata") ApiCommand hdfsUpgradeMetadataCommand(String serviceName)
serviceName
- The HDFS service name.@Path(value="/{serviceName}/commands/hiveUpgradeMetastore") ApiCommand hiveUpgradeMetastoreCommand(String serviceName)
serviceName
- The Hive service name.@Path(value="/{serviceName}/commands/oozieUpgradeDb") ApiCommand oozieUpgradeDbCommand(String serviceName)
serviceName
- The Oozie service name.@Path(value="/{serviceName}/commands/hbaseUpgrade") ApiCommand hbaseUpgradeCommand(String serviceName)
serviceName
- The HBase service name.@Path(value="/{serviceName}/commands/sqoopUpgradeDb") ApiCommand sqoopUpgradeDbCommand(String serviceName)
serviceName
- The Sqoop service name.@Path(value="/{serviceName}/commands/yarnCreateJobHistoryDirCommand") ApiCommand createYarnJobHistoryDirCommand(String serviceName)
Available since API v6.
serviceName
- The YARN service name.@Path(value="/{serviceName}/commands/yarnNodeManagerRemoteAppLogDirCommand") ApiCommand createYarnNodeManagerRemoteAppLogDirCommand(String serviceName)
Available since API v6.
serviceName
- The YARN service name.@Path(value="/{serviceName}/commands/impalaCreateUserDir") ApiCommand createImpalaUserDirCommand(String serviceName)
Available since API v6.
serviceName
- The Impala service name.@Path(value="/{serviceName}/commands/impalaCreateCatalogDatabase") ApiCommand impalaCreateCatalogDatabaseCommand(String serviceName)
This command is to be run whenever a new user and database needs to be created in the embedded postgresql database for the Impala Catalog Server. This command should usually be followed by a call to impalaCreateCatalogDatabaseTables.
Available since API v6.
serviceName
- Name of the Impala service on which to run the command.@Path(value="/{serviceName}/commands/impalaCreateCatalogDatabaseTables") ApiCommand impalaCreateCatalogDatabaseTablesCommand(String serviceName)
This command is to be run whenever a new database has been specified. Will do nothing if tables already exist. Will not perform an upgrade. Only available when all Impala Catalog Servers are stopped.
Available since API v6.
serviceName
- Name of the Impala service on which to run the command.@Path(value="/{serviceName}/roleCommands") RoleCommandsResourceV6 getRoleCommandsResource(String serviceName)
getRoleCommandsResource
in interface ServicesResource
getRoleCommandsResource
in interface ServicesResourceV3
getRoleCommandsResource
in interface ServicesResourceV4
@Path(value="/{serviceName}/commands/{commandName}") ApiCommand serviceCommandByName(String serviceName, String commandName)
Available since API v6.
serviceName
- The service name.commandName
- The command name.@Path(value="/{serviceName}/commandsByName") ApiCommandMetadataList listServiceCommands(String serviceName)
Available since API v6.
serviceName
- The service name.@Path(value="/{serviceName}/impalaQueries") ImpalaQueriesResourceV6 getImpalaQueriesResource(String serviceName)
ServicesResourceV4
getImpalaQueriesResource
in interface ServicesResourceV4
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.