AddInstanceGroups adds an instance group to a running cluster.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Instance Groups to add.
|
|
|
Required |
Job flow in which to add the instance groups. [Constraints: The value must be between 0 and 256 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Add instances to an existing Hadoop cluster.
$emr = new AmazonEMR(); $response = $emr->add_instance_groups(array( array( // Group #1 'InstanceCount' => 1, 'InstanceRole' => 'TASK', 'InstanceType' => 'm1.small', 'Market' => 'ON_DEMAND', 'Name' => 'my-hadoop-task-cluster', ) ), $jobflow_id); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/emr.class.php | Toggle source view (12 lines) | View on GitHub