public interface ServicesResourceV17 extends ServicesResourceV16
Modifier and Type | Method and Description |
---|---|
ApiCommand |
hiveValidateMetastoreSchemaCommand(String serviceName)
Validate the Hive Metastore Schema.
|
ApiCommand |
offlineCommand(String serviceName,
ApiRoleNameList roleNames,
Long timeout)
Offline roles of a service.
|
recommissionWithStartCommand
getNameservicesResource, getWatchedDirResource, oozieDumpDatabaseCommand, oozieLoadDatabaseCommand
createYarnCmContainerUsageInputDirCommand, getReplicationsResource
getRolesResource, readService
getRoleCommandsResource, hueDumpDbCommand, hueLoadDbCommand, hueSyncDbCommand, oozieCreateEmbeddedDatabaseCommand, sqoopCreateDatabaseTablesCommand
collectYarnApplicationDiagnostics, disableLlamaHaCommand, disableLlamaRmCommand, enableLlamaHaCommand, enableLlamaRmCommand, hdfsFinalizeRollingUpgrade, sentryUpgradeDatabaseTablesCommand, yarnFormatStateStore
firstRun, sentryCreateDatabaseCommand, sentryCreateDatabaseTablesCommand
createImpalaUserDirCommand, createYarnJobHistoryDirCommand, createYarnNodeManagerRemoteAppLogDirCommand, disableOozieHaCommand, disableRmHaCommand, enableOozieHaCommand, enableRmHaCommand, getImpalaQueriesResource, getSnapshotsResource, getYarnApplicationsResource, hbaseUpgradeCommand, hdfsDisableNnHaCommand, hdfsEnableNnHaCommand, hdfsUpgradeMetadataCommand, hiveUpgradeMetastoreCommand, impalaCreateCatalogDatabaseCommand, impalaCreateCatalogDatabaseTablesCommand, importMrConfigsIntoYarn, listServiceCommands, oozieUpgradeDbCommand, serviceCommandByName, sqoopUpgradeDbCommand, switchToMr2
createHiveUserDirCommand, createSolrHdfsHomeDirCommand, createSqoopUserDirCommand, disableJtHaCommand, enableJtHaCommand, getHdfsUsageReport, getMrUsageReport, hiveCreateMetastoreDatabaseCommand, hiveUpdateMetastoreNamenodesCommand, initSolrCommand
createHiveWarehouseCommand, getRoleConfigGroupsResource, hdfsRollEditsCommand, hiveCreateMetastoreDatabaseTablesCommand, installOozieShareLib, rollingRestart, updateService
createOozieDb, enterMaintenanceMode, exitMaintenanceMode, getClientConfig, hdfsCreateTmpDir, recommissionCommand
createBeeswaxWarehouseCommand, createHBaseRootCommand, createServices, decommissionCommand, deleteService, deployClientConfigCommand, getActivitiesResource, getMetrics, hdfsDisableAutoFailoverCommand, hdfsDisableHaCommand, hdfsEnableAutoFailoverCommand, hdfsEnableHaCommand, hdfsFailoverCommand, listActiveCommands, listRoleTypes, readService, readServiceConfig, readServices, restartCommand, startCommand, stopCommand, updateServiceConfig, zooKeeperCleanupCommand, zooKeeperInitCommand
@Path(value="/{serviceName}/commands/offline") ApiCommand offlineCommand(String serviceName, ApiRoleNameList roleNames, Long timeout)
Currently the offline operation is only supported by HDFS.
For HDFS, the offline operation will put DataNodes into HDFS IN MAINTENANCE state which prevents unnecessary re-replication which could occur if decommissioned.
The timeout parameter is used to specify a timeout for offline. For HDFS, when the timeout expires, the DataNode will automatically transition out of HDFS IN MAINTENANCE state, back to HDFS IN SERVICE state.
serviceName
- The service name.roleNames
- List of role names to offline.timeout
- Offline timeout in seconds. Offlined roles will automatically transition from offline
state to normal state after timeout.
Specify as null to get the default timeout (4 hours).@Path(value="/{serviceName}/commands/hiveValidateMetastoreSchema") ApiCommand hiveValidateMetastoreSchemaCommand(String serviceName)
This command checks the Hive metastore schema for any errors and corruptions. This command is to be run on two instances:
Available since API v17.
serviceName
- Name of the Hive service on which to run the command.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.