Trees | Indices | Help |
|
---|
|
object --+ | types.BaseApiObject --+ | ApiService
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
_ATTRIBUTES = {'name': None, 'type': None, 'displayName': None
|
|||
Inherited from |
|
|||
Inherited from |
|
Initializes internal state and sets all known writable properties of the object to None. Then initializes the properties given in the provided attributes dictionary.
|
Default implementation of __str__. Uses the type name and the first attribute retrieved from the attribute map to create the string.
|
Return the API path for this service. This method assumes that lack of a cluster reference means that the object refers to the Cloudera Management Services instance. |
Parse a json-decoded ApiServiceConfig dictionary into a 2-tuple.
|
Retrieve a list of running commands for this service.
|
Returns a list of queries that satisfy the filter
|
Cancel the query. @return The warning message, if any. |
Get the query details
|
Retrieve the service's configuration. Retrieves both the service configuration and role type configuration for each of the service's supported role types. The role type configurations are returned as a dictionary, whose keys are the role type name, and values are the respective configuration dictionaries. The 'summary' view contains strings as the dictionary values. The full view contains ApiConfig instances as the values.
|
Update the service's configuration. @param svc_config Dictionary with service configuration to update. @param rt_configs Dict of role type configurations to update. @return 2-tuple (service config dictionary, role type configurations) |
Create a role.
|
Delete a role by name. @param name Role name @return The deleted ApiRole object |
Lookup a role by name.
|
Get all roles in the service.
|
Get all roles of a certain type in a service.
|
Get a list of role types in a service.
|
Get a list of role configuration groups in the service.
Since: API v3 |
Get a role configuration group in the service by name.
Since: API v3 |
Create a role config group.
Since: API v3 |
Update a role config group.
Since: API v3 |
Delete a role config group by name.
Since: API v3 |
Retrieve metric readings for the service.
|
Start a service. @return Reference to the submitted command. |
Stop a service. @return Reference to the submitted command. |
Restart a service. @return Reference to the submitted command. |
Start a list of roles.
|
Stop a list of roles.
|
Restart a list of roles.
|
Bootstrap HDFS stand-by NameNodes. Initialize their state by syncing it with the respective HA partner.
|
DEPRECATED: use create_hive_warehouse on the Hive service. Deprecated since v3. Create the Beeswax role's warehouse for a Hue service.
|
Create the root directory of an HBase service. @return Reference to the submitted command. |
Create the /tmp directory in HDFS with appropriate ownership and permissions.
Since: API v2 |
Execute the "refresh" command on a set of roles.
|
Decommission roles in a service. @param role_names Names of the roles to decommission. @return Reference to the submitted command. |
Recommission roles in a service. @param role_names Names of the roles to recommission. @return Reference to the submitted command. Since: API v2 |
Deploys client configuration to the hosts where roles are running.
|
Disable auto-failover for a highly available HDFS nameservice.
|
Disable high availability for an HDFS NameNode.
|
Enable auto-failover for an HDFS nameservice.
|
Enable high availability for an HDFS NameNode.
|
Enable high availability for a MR JobTracker.
|
Disable high availability for a MR JobTracker active-standby pair.
|
Initiate a failover of an HDFS NameNode HA pair. This will make the given stand-by NameNode active, and vice-versa.
|
Format NameNode instances of an HDFS service. @param namenodes Name of NameNode instances to format. @return List of submitted commands. |
Initialize HDFS failover controller metadata. Only one controller per nameservice needs to be initialized.
|
Initialize a NameNode's shared edits directory. @param namenodes Name of NameNode instances. @return List of submitted commands. |
Roll the edits of an HDFS NameNode or Nameservice.
Since: API v3 |
Cleanup a ZooKeeper service or roles. If no server role names are provided, the command applies to the whole service, and cleans up all the server roles that are currently running.
|
Initialize a ZooKeeper service or roles. If no server role names are provided, the command applies to the whole service, and initializes all the configured server roles.
|
Synchronize the Hue server's database.
|
Put the service in maintenance mode.
Since: API v2 |
Take the service out of maintenance mode.
Since: API v2 |
Rolling restart the roles of a service. The sequence is: 1. Restart all the non-slave roles 2. If slaves are present restart them in batches of size specified 3. Perform any post-command needed after rolling restart @param: slave_batch_size Number of slave roles to restart at a time Must be greater than 0. Default is 1. For HDFS, this number should be less than the replication factor (default 3) to ensure data availability during rolling restart. @param: slave_fail_count_threshold The threshold for number of slave batches that are allowed to fail to restart before the entire command is considered failed. Must be >= 0. Default is 0. @param: sleep_seconds Number of seconds to sleep between restarts of slave role batches. Must be >=0. Default is 0. @param: stale_configs_only Restart roles with stale configs only. Default is false. @param: unupgraded_only Restart roles that haven't been upgraded yet. Default is false. @param: restart_role_types Role types to restart. If not specified, all startable roles are restarted. @param: restart_role_names List of specific roles to restart. If none are specified, then all roles of specified role types are restarted. @return: Reference to the submitted command. @since: API v3 |
Create a new replication schedule for this service. The replication argument type varies per service type. The following types are recognized:
Since: API v3 |
Retrieve a list of replication schedules.
Since: API v3 |
Retrieve a single replication schedule.
Since: API v3 |
Delete a replication schedule.
Since: API v3 |
Update a replication schedule.
Since: API v3 |
Trigger replication immediately. Start and end dates on the schedule will be ignored.
Since: API v3 |
Installs the Oozie ShareLib. Oozie must be stopped before running this command.
Since: API v3 |
Creates the Hive metastore tables in the configured database, if it hasn't been done yet.
Since: API v3 |
Creates the Hive warehouse directory in HDFS.
Since: API v3 |
Create the Hive Metastore Database. Only works with embedded postgresql database. This command should usually be followed by a call to hiveCreateMetastoreDatabaseTables.
Since: API v4 |
Update Hive Metastore to point to a NameNode's Nameservice name instead of hostname. Only available when all Hive Metastore Servers are stopped and HDFS has High Availability. Back up the Hive Metastore Database before running this command.
Since: API v4 |
|
_ATTRIBUTES
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Mar 30 14:44:56 2015 | http://epydoc.sourceforge.net |