Creating a cluster with HBase
The procedures in this section cover the basics of launching a cluster using the AWS Management Console and the AWS CLI. For detailed information about how to plan, configure, and launch Amazon EMR clusters, see Plan and configure clusters in the Amazon EMR Management Guide.
Creating a cluster with HBase using the console
For quick steps to launch clusters with the console, see Getting started with Amazon EMR in the Amazon EMR Management Guide.
To launch a cluster with HBase installed using the console
Open the Amazon EMR console at https://console.aws.amazon.com/emr
. -
Choose Create cluster and Go to advanced options.
-
For Software Configuration, choose an Amazon Release Version of 4.6.0 or later (we recommend the latest version). Choose HBase and other applications as desired.
With Amazon EMR version 5.2.0 and later, under HBase Storage Settings, select HDFS or S3. For more information, see HBase on Amazon S3 (Amazon S3 storage mode).
-
Select other options as necessary and then choose Create cluster.
Creating a cluster with HBase using the AWS CLI
Use the following command to create a cluster with HBase installed:
aws emr create-cluster --name "
Test cluster
" --release-labelemr-7.5.0
\ --applications Name=HBase
--use-default-roles --ec2-attributes KeyName=myKey
\ --instance-typem5.xlarge
--instance-count3
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 (^).
If you use HBase on Amazon S3, specify the --configurations
option
with a reference to a JSON 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://amzn-s3-demo-bucket/MyHBaseStore
" } }, { "Classification": "hbase", "Properties": { "hbase.emr.storageMode": "s3
" } } ]
For more information about HBase on Amazon S3, see HBase on Amazon S3 (Amazon S3 storage mode). For more information about classifications, see Configure applications.