Creating a cluster with Flink
You can launch a cluster with the AWS Management Console, AWS CLI, or an AWS SDK.
To launch a cluster with Flink installed from the console
Open the Amazon EMR console at https://console.aws.amazon.com/emr
. -
Choose Create cluster, Go to advanced options.
-
For Software Configuration, choose EMR Release emr-5.1.0 or later.
-
Choose Flink as an application, along with any others to install.
-
Select other options as necessary and choose Create cluster.
To launch a cluster with Flink from the AWS CLI
-
Create the cluster with the following command:
aws emr create-cluster --release-labelemr-7.11.0\ --applications Name=Flink \ --regionus-east-1\ --log-uris3://myLogUri\ --instance-typem5.xlarge\ --instance-count2\ --service-role EMR_DefaultRole_V2 \ --ec2-attributes KeyName=MyKeyName,InstanceProfile=EMR_EC2_DefaultRole \ --steps Type=CUSTOM_JAR,Jar=command-runner.jar,Name=Flink_Long_Running_Session,\ Args=flink-yarn-session,-dNote
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 (^).