public interface ServicesResourceV18 extends ServicesResourceV17
Modifier and Type | Method and Description |
---|---|
ApiCommand |
disableSentryHaCommand(String serviceName,
ApiDisableSentryHaArgs args)
Disable high availability (HA) for Sentry service.
|
ApiCommand |
enableSentryHaCommand(String serviceName,
ApiEnableSentryHaArgs args)
Enable high availability (HA) for Sentry service.
|
ApiImpalaUtilization |
getImpalaUtilization(String serviceName,
String from,
String to,
String tenantType,
List<String> daysOfWeek,
int startHourOfDay,
int endHourOfDay)
Provides the resource utilization of the Impala service as well as the
resource utilization per tenant.
|
ReplicationsResourceV18 |
getReplicationsResource(String serviceName)
Retrieves the replication resource.
|
ApiYarnUtilization |
getYarnUtilization(String serviceName,
String from,
String to,
String tenantType,
List<String> daysOfWeek,
int startHourOfDay,
int endHourOfDay)
Provides the resource utilization of the yarn service as well as the
resource utilization per tenant.
|
hiveValidateMetastoreSchemaCommand, offlineCommand
recommissionWithStartCommand
getNameservicesResource, getWatchedDirResource, oozieDumpDatabaseCommand, oozieLoadDatabaseCommand
createYarnCmContainerUsageInputDirCommand
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/enableSentryHa") ApiCommand enableSentryHaCommand(String serviceName, ApiEnableSentryHaArgs args)
This command only applies to CDH 5.13+ Sentry services.
The command will create a new Sentry server on the specified host and set the ZooKeeper configs needed for Sentry HA.
As part of enabling HA, all services that depend on HDFS will be restarted after enabling Sentry HA.
Note: Sentry doesn't support Rolling Restart.
serviceName
- A String representing the Sentry service name.args
- An instance of ApiEnableSentryHaArgs
representing the arguments to the command.@Path(value="/{serviceName}/commands/disableSentryHa") ApiCommand disableSentryHaCommand(String serviceName, ApiDisableSentryHaArgs args)
This command only applies to CDH 5.13+ Sentry services.
The command will keep exactly one Sentry server, on the specified host, and update the ZooKeeper configs needed for Sentry.
All services that depend on HDFS will be restarted after enabling Sentry HA.
Note: Sentry doesn't support Rolling Restart.
serviceName
- A String representing the Sentry service name.args
- An instance of ApiDisableSentryHaArgs
representing the arguments to the command.@Path(value="/{serviceName}/yarnUtilization") ApiYarnUtilization getYarnUtilization(String serviceName, String from, String to, String tenantType, List<String> daysOfWeek, int startHourOfDay, int endHourOfDay)
serviceName
- service namefrom
- Start of the time range to report utilization in ISO 8601 format.to
- End of the the time range to report utilization in ISO 8601 format (defaults to now).tenantType
- The type of the tenant (POOL or USER).daysOfWeek
- The days of the week for which the user wants to report utilization.
Days is a list of number between 1 to 7, where 1 corresponds to Mon. and 7 corresponds to Sun.
All 7 days are included if this is not specified.startHourOfDay
- The start hour of a day for which the user wants to report utilization.
The hour is a number between [0-23]. Default value is 0 if this is not specified.endHourOfDay
- The end hour of a day for which the user wants to report utilization.
The hour is a number between [0-23]. Default value is 23 if this is not specified.@Path(value="/{serviceName}/impalaUtilization") ApiImpalaUtilization getImpalaUtilization(String serviceName, String from, String to, String tenantType, List<String> daysOfWeek, int startHourOfDay, int endHourOfDay)
serviceName
- service namefrom
- Start of the time range to report utilization in ISO 8601 format.to
- End of the the time range to report utilization in ISO 8601 format (defaults to now).tenantType
- The type of the tenant (POOL or USER).daysOfWeek
- The days of the week for which the user wants to report utilization.
Days is a list of number between 1 to 7, where 1 corresponds to Mon. and 7 corresponds to Sun.
All 7 days are included if this is not specified.startHourOfDay
- The start hour of a day for which the user wants to report utilization.
The hour is a number between [0-23]. Default value is 0 if this is not specified.endHourOfDay
- The end hour of a day for which the user wants to report utilization.
The hour is a number between [0-23]. Default value is 23 if this is not specified.@Path(value="/{serviceName}/replications") ReplicationsResourceV18 getReplicationsResource(String serviceName)
getReplicationsResource
in interface ServicesResourceV11
getReplicationsResource
in interface ServicesResourceV13
getReplicationsResource
in interface ServicesResourceV3
getReplicationsResource
in interface ServicesResourceV4
serviceName
- The service name.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.