Amazon EMR
Amazon EMR Release Guide

Creating a Cluster with HBase Using AWS CLI

Use the following command to create a cluster with HBase installed:

aws emr create-cluster --name "Test cluster" --release-label emr-5.6.0 \ --applications Name=HBase --use-default-roles --ec2-attributes KeyName=myKey \ --instance-type m3.xlarge --instance-count 3


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 (^).

If you are using Amazon S3 storage mode for HBase, specify the --configurations option with a reference to a configuration object. The configuration object must contain an hbase-site classification that specifies the location in Amazon S3 where HBase data is stored using the hbase.rootdir property. It also must contain an hbase classification, which specifies s3 using the hbase.emr.storageMode property. The following example demonstrates a JSON snippet with these configuration settings.

{ "Classification": "hbase-site", "Properties": { "hbase.rootdir": "s3://MyBucket/MyHBaseStore",} }, { "Classification": "hbase", "Properties": { "hbase.emr.storageMode":"s3", } }

For more information about Amazon S3 storage mode for HBase, see Amazon S3 Storage Mode for HBase. For more information about classifications, see Configuring Applications.