com.cloudera.api.v7
Interface ServicesResourceV7

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

public interface ServicesResourceV7
extends ServicesResourceV6


Method Summary
 ApiCommand firstRun(String serviceName)
          Prepare and start a service.
 ApiCommand sentryCreateDatabaseCommand(String serviceName)
          Create the Sentry Server Database.
 ApiCommand sentryCreateDatabaseTablesCommand(String serviceName)
          Create the Sentry Server Database tables.
 
Methods inherited from interface com.cloudera.api.v6.ServicesResourceV6
createImpalaUserDirCommand, createYarnJobHistoryDirCommand, createYarnNodeManagerRemoteAppLogDirCommand, disableOozieHaCommand, disableRmHaCommand, enableOozieHaCommand, enableRmHaCommand, getImpalaQueriesResource, getRoleCommandsResource, getRolesResource, 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

firstRun

@Path(value="/{serviceName}/commands/firstRun")
ApiCommand firstRun(String serviceName)
Prepare and start a service.

Perform all the steps needed to prepare the service and start it.

Available since API v7.

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

sentryCreateDatabaseCommand

@Path(value="/{serviceName}/commands/sentryCreateDatabase")
ApiCommand sentryCreateDatabaseCommand(String serviceName)
Create the Sentry 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 a Sentry service. This command should usually be followed by a call to sentryCreateDatabaseTables.

Available since API v7.

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

sentryCreateDatabaseTablesCommand

@Path(value="/{serviceName}/commands/sentryCreateDatabaseTables")
ApiCommand sentryCreateDatabaseTablesCommand(String serviceName)
Create the Sentry 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 Sentry Server is stopped.

Available since API v7.

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.