Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Phoenix on Amazon EMR

mujtabachohan edited this page Dec 3, 2013 · 8 revisions

This page is work in progress

Amazon Elastic MapReduce Configuration (EMR)

  1. Create a free/paid EMR account
  2. Download the latest CLI from and follow the setup instructions here.

Note: Step 2 is a multi-step process in which you would install ruby, gem, create credentials file and create a S3 bucket.

Installation

You can either use CLI or Web Console to deploy HBase with Phoenix on EMR

Web Console

  1. Go to Elastic MapReduce > Create Cluster
  2. Type in your cluster name
  3. Set AMI version to 3.0.1
  4. From Additional Application drop down, select HBase and add.
  5. In Core text box, enter the number of HBase region server(s) you want configured for your cluster
  6. Add a custom action bootstrap from dropdown and specify S3 location: s3://beta.elasticmapreduce/bootstrap-actions/phoenix/install-phoenix-bootstrap.sh and click add.
  7. Click Create Cluster

CLI

Deploy an HBase Cluster with the Phoenix using CLI

./elastic-mapreduce --create --instance-type c1.xlarge --name 
PHOENIX_2.2_install --ami-version 3.0.1 --hbase --alive --bootstrap-action 
"s3://beta.elasticmapreduce/bootstrap-actions/phoenix/install-phoenix-bootstrap.sh"

Usage

SSH to the EMR Master and CD to /home/hadoop/hbase/lib/phoenix/bin

Create test data: ./performance localhost 1000000

SQL CLI: ./sqlline localhost

Clone this wiki locally