aws emr create-cluster \ --name Spark_and_Presto \ --ami-version 3.4.0 \ --applications Name=Hive Name=Hue \ --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=c3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=c3.xlarge \ --ec2-attributes SubnetId=YOUR_SUBNET,KeyName=YOUR_KEYPAIR \ --log-uri s3://PATH/TO/LOG/ \ --enable-debugging \ --bootstrap-actions \ Name=Instal