Create a cluster with Ganglia
Note
The last release of Amazon EMR to include Ganglia was Amazon EMR 6.15.0. To monitor your cluster, releases higher than 6.15.0 include the Amazon CloudWatch agent.
To create a cluster with Ganglia using the console
Navigate to the new Amazon EMR console and select Switch to the old console from the side navigation. For more information on what to expect when you switch to the old console, see Using the old console.
-
Choose Create cluster.
-
In Software configuration, choose either All Applications, Core Hadoop, or Spark.
-
Proceed with creating the cluster with configurations as appropriate.
To add Ganglia to a cluster using the Amazon CLI
In the Amazon CLI, you can add Ganglia to a cluster by using
create-cluster
with the --applications
parameter. If
you specify only Ganglia using the --applications
parameter, Ganglia is
the only application installed.
-
Type the following command to add Ganglia when you create a cluster and replace
myKey
with the name of your EC2 key pair.Note
Linux line continuation characters (\) are included for readability. They can be removed or used in Linux commands. For Windows, remove them or replace with a caret (^).
aws emr create-cluster --name "
Spark cluster with Ganglia
" --release-label emr-6.15.0; \ --applications Name=Spark
Name=Ganglia
\ --ec2-attributes KeyName=myKey
--instance-typem5.xlarge
\ --instance-count3
--use-default-rolesWhen you specify the instance count without using the
--instance-groups
parameter, a single master node is launched, and the remaining instances are launched as core nodes. All nodes use the instance type specified in the command.Note
If you have not previously created the default EMR service role and EC2 instance profile, type
aws emr create-default-roles
to create them before typing thecreate-cluster
subcommand.For more information about using Amazon EMR commands in the Amazon CLI, see https://docs.amazonaws.cn/cli/latest/reference/emr.