public interface ServicesResourceV4 extends ServicesResourceV3
Modifier and Type | Method and Description |
---|---|
ApiCommand |
createHiveUserDirCommand(String serviceName)
Create the Hive user directory
|
ApiCommand |
createSolrHdfsHomeDirCommand(String serviceName)
Creates the home directory of a Solr service in HDFS.
|
ApiCommand |
createSqoopUserDirCommand(String serviceName)
Creates the user directory of a Sqoop service in HDFS.
|
ApiCommand |
disableJtHaCommand(String serviceName,
ApiDisableJtHaArguments args)
Disable high availability (HA) for JobTracker.
|
ApiCommand |
enableJtHaCommand(String serviceName,
ApiEnableJtHaArguments args)
Enable high availability (HA) for a JobTracker.
|
ApiHdfsUsageReport |
getHdfsUsageReport(String hdfsServiceName,
String nameService,
String from,
String to,
ApiTimeAggregation aggregation)
Fetch the HDFS usage report.
|
ImpalaQueriesResource |
getImpalaQueriesResource(String serviceName)
Return the Impala queries resource handler.
|
ApiMrUsageReport |
getMrUsageReport(String mrServiceName,
String from,
String to,
ApiTimeAggregation aggregation)
Fetch the MR usage report.
|
ReplicationsResourceV4 |
getReplicationsResource(String serviceName)
Only available with Cloudera Manager Enterprise Edition.
|
RoleCommandsResourceV4 |
getRoleCommandsResource(String serviceName) |
RolesResourceV4 |
getRolesResource(String serviceName) |
ApiCommand |
hiveCreateMetastoreDatabaseCommand(String serviceName)
Create the Hive Metastore Database.
|
ApiCommand |
hiveUpdateMetastoreNamenodesCommand(String serviceName)
Update Hive Metastore to point to a NameNode's Nameservice name instead of
hostname.
|
ApiCommand |
initSolrCommand(String serviceName)
Initializes the Solr service in Zookeeper.
|
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
@Path(value="/{serviceName}/commands/hiveCreateMetastoreDatabase") ApiCommand hiveCreateMetastoreDatabaseCommand(String serviceName)
This command is to be run whenever a new user and database needs to be created in the embedded postgresql database for a Hive service. This command should usually be followed by a call to hiveCreateMetastoreDatabaseTables.
Available since API v4.
serviceName
- Name of the Hive service on which to run the command.@Path(value="/{serviceName}/commands/hiveUpdateMetastoreNamenodes") ApiCommand hiveUpdateMetastoreNamenodesCommand(String serviceName)
Back up the Hive Metastore Database before running this command.
This command is to be run after enabling HDFS High Availability. Only available when all Hive Metastore Servers are stopped.
Available since API v4.
serviceName
- Name of the Hive service on which to run the command.@Path(value="/{serviceName}/commands/createSqoopUserDir") ApiCommand createSqoopUserDirCommand(String serviceName)
Available since API v4.
serviceName
- The Sqoop service name.@Path(value="/{serviceName}/commands/initSolr") ApiCommand initSolrCommand(String serviceName)
Available since API v4.
serviceName
- The Solr service name.@Path(value="/{serviceName}/commands/createSolrHdfsHomeDir") ApiCommand createSolrHdfsHomeDirCommand(String serviceName)
Available since API v4.
serviceName
- The Solr service name.@Path(value="/{serviceName}/commands/hiveCreateHiveUserDir") ApiCommand createHiveUserDirCommand(String serviceName)
Available since API v4.
serviceName
- The Hive service name.@Path(value="/{serviceName}/roles") RolesResourceV4 getRolesResource(String serviceName)
getRolesResource
in interface ServicesResource
getRolesResource
in interface ServicesResourceV2
@Path(value="/{serviceName}/commands/enableJtHa") ApiCommand enableJtHaCommand(String serviceName, ApiEnableJtHaArguments args)
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.
serviceName
- The MapReduce service name.args
- Arguments for the command.@Path(value="/{serviceName}/commands/disableJtHa") ApiCommand disableJtHaCommand(String serviceName, ApiDisableJtHaArguments args)
serviceName
- The MapReduce service name.args
- Arguments for the command.@Path(value="/{serviceName}/impalaQueries") ImpalaQueriesResource getImpalaQueriesResource(String serviceName)
@Path(value="/{serviceName}/replications") ReplicationsResourceV4 getReplicationsResource(String serviceName)
getReplicationsResource
in interface ServicesResourceV3
@Path(value="/{serviceName}/roleCommands") RoleCommandsResourceV4 getRoleCommandsResource(String serviceName)
getRoleCommandsResource
in interface ServicesResource
getRoleCommandsResource
in interface ServicesResourceV3
@Path(value="/{serviceName}/reports/hdfsUsageReport") ApiHdfsUsageReport getHdfsUsageReport(String hdfsServiceName, String nameService, String from, String to, ApiTimeAggregation aggregation)
This call supports returning JSON or CSV, as determined by the "Accept" header of application/json or text/csv.
Available since API v4. Only available with Cloudera Manager Enterprise Edition.
hdfsServiceName
- The HDFS service name.nameService
- The (optional) HDFS nameservice. Required for HA setup.from
- The (optional) start time of the report in ISO 8601 format (
defaults to 24 hours before "to" time).to
- The (optional) end time of the report in ISO 8601 format (
defaults to now).aggregation
- The (optional) aggregation period for the data.
Supports "hourly", "daily" (default) and "weekly".@Path(value="/{serviceName}/reports/mrUsageReport") ApiMrUsageReport getMrUsageReport(String mrServiceName, String from, String to, ApiTimeAggregation aggregation)
This call supports returning JSON or CSV, as determined by the "Accept" header of application/json or text/csv.
Available since API v4. Only available with Cloudera Manager Enterprise Edition.
mrServiceName
- The MR service name.from
- The (optional) start time of the report in ISO 8601 format
(defaults to 24 hours before "to" time).to
- The (optional) end time of the report in ISO 8601 format (defaults
to now).aggregation
- The (optional) aggregation period for the data.
Supports "hourly", "daily" (default) and "weekly".Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.