com.cloudera.api.v10
Interface ServicesResourceV10

All Superinterfaces:
ServicesResource, ServicesResourceV2, ServicesResourceV3, ServicesResourceV4, ServicesResourceV6, ServicesResourceV7, ServicesResourceV8
All Known Subinterfaces:
ServicesResourceV11, ServicesResourceV13, ServicesResourceV14, ServicesResourceV15, ServicesResourceV16, ServicesResourceV17, ServicesResourceV18

public interface ServicesResourceV10
extends ServicesResourceV8


Method Summary
 RoleCommandsResourceV10 getRoleCommandsResource(String serviceName)
           
 ApiCommand hueDumpDbCommand(String serviceName)
          Runs Hue's dumpdata command.
 ApiCommand hueLoadDbCommand(String serviceName)
          Runs Hue's loaddata command.
 ApiCommand hueSyncDbCommand(String serviceName)
          Runs Hue's syncdb command.
 ApiCommand oozieCreateEmbeddedDatabaseCommand(String serviceName)
          Create the Oozie Server Database.
 ApiCommand sqoopCreateDatabaseTablesCommand(String serviceName)
          Create the Sqoop2 Server Database tables.
 
Methods inherited from interface com.cloudera.api.v8.ServicesResourceV8
collectYarnApplicationDiagnostics, disableLlamaHaCommand, disableLlamaRmCommand, enableLlamaHaCommand, enableLlamaRmCommand, getRolesResource, hdfsFinalizeRollingUpgrade, sentryUpgradeDatabaseTablesCommand, yarnFormatStateStore
 
Methods inherited from interface com.cloudera.api.v7.ServicesResourceV7
firstRun, sentryCreateDatabaseCommand, sentryCreateDatabaseTablesCommand
 
Methods inherited from interface com.cloudera.api.v6.ServicesResourceV6
createImpalaUserDirCommand, createYarnJobHistoryDirCommand, createYarnNodeManagerRemoteAppLogDirCommand, disableOozieHaCommand, disableRmHaCommand, enableOozieHaCommand, enableRmHaCommand, getImpalaQueriesResource, getSnapshotsResource, getYarnApplicationsResource, hbaseUpgradeCommand, hdfsDisableNnHaCommand, hdfsEnableNnHaCommand, hdfsUpgradeMetadataCommand, hiveUpgradeMetastoreCommand, impalaCreateCatalogDatabaseCommand, impalaCreateCatalogDatabaseTablesCommand, importMrConfigsIntoYarn, listServiceCommands, oozieUpgradeDbCommand, serviceCommandByName, sqoopUpgradeDbCommand, switchToMr2
 
Methods inherited from interface com.cloudera.api.v4.ServicesResourceV4
createHiveUserDirCommand, createSolrHdfsHomeDirCommand, createSqoopUserDirCommand, disableJtHaCommand, enableJtHaCommand, getHdfsUsageReport, getMrUsageReport, getReplicationsResource, hiveCreateMetastoreDatabaseCommand, hiveUpdateMetastoreNamenodesCommand, initSolrCommand
 
Methods inherited from interface com.cloudera.api.v3.ServicesResourceV3
createHiveWarehouseCommand, getRoleConfigGroupsResource, hdfsRollEditsCommand, hiveCreateMetastoreDatabaseTablesCommand, installOozieShareLib, rollingRestart, updateService
 
Methods inherited from interface com.cloudera.api.v2.ServicesResourceV2
createOozieDb, enterMaintenanceMode, exitMaintenanceMode, getClientConfig, hdfsCreateTmpDir, recommissionCommand
 
Methods inherited from interface com.cloudera.api.v1.ServicesResource
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
 

Method Detail

getRoleCommandsResource

@Path(value="/{serviceName}/roleCommands")
RoleCommandsResourceV10 getRoleCommandsResource(String serviceName)
Specified by:
getRoleCommandsResource in interface ServicesResource
Specified by:
getRoleCommandsResource in interface ServicesResourceV3
Specified by:
getRoleCommandsResource in interface ServicesResourceV4
Specified by:
getRoleCommandsResource in interface ServicesResourceV6
Specified by:
getRoleCommandsResource in interface ServicesResourceV8
Returns:
The role command resource handler.

hueDumpDbCommand

@Path(value="/{serviceName}/commands/hueDumpDb")
ApiCommand hueDumpDbCommand(String serviceName)
Runs Hue's dumpdata command. Available since API v10.

Parameters:
serviceName - The name of the service
Returns:
Information about the submitted command.

hueLoadDbCommand

@Path(value="/{serviceName}/commands/hueLoadDb")
ApiCommand hueLoadDbCommand(String serviceName)
Runs Hue's loaddata command. Available since API v10.

Parameters:
serviceName - The name of the service
Returns:
Information about the submitted command.

hueSyncDbCommand

@Path(value="/{serviceName}/commands/hueSyncDb")
ApiCommand hueSyncDbCommand(String serviceName)
Runs Hue's syncdb command. Available since API v10.

Parameters:
serviceName - The name of the service
Returns:
Information about the submitted command.

oozieCreateEmbeddedDatabaseCommand

@Path(value="/{serviceName}/commands/oozieCreateEmbeddedDatabase")
ApiCommand oozieCreateEmbeddedDatabaseCommand(String serviceName)
Create the Oozie Server Database. Only works with embedded postgresql database.

This command is to be run whenever a new user and database need to be created in the embedded postgresql database for an Oozie service. This command should usually be followed by a call to createOozieDb.

Available since API v10.

Parameters:
serviceName - Name of the Oozie service on which to run the command.
Returns:
Information about the submitted command

sqoopCreateDatabaseTablesCommand

@Path(value="/{serviceName}/commands/sqoopCreateDatabaseTables")
ApiCommand sqoopCreateDatabaseTablesCommand(String serviceName)
Create the Sqoop2 Server Database tables.

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 Sqoop2 Server is stopped.

Available since API v10.

Parameters:
serviceName - Name of the Sentry service on which to run the command.
Returns:
Information about the submitted command


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.