A native integration between the MapR Installer and Google Compute Engine (GCE) does not yet exist, however it's still easy to use the MapR Installer to deploy a cluster on pre-provisioned GCE instances. This guide will walk through how this can be done.
Deploying MapR on GCE
Deploy GCE VM Instances
From the Google Cloud Platform Console, navigate to Compute Engine > VM instances > Create.
(You'll want to repeat the steps below for the number of nodes you want in your MapR cluster.)
- Name your instance
- Pick a zone near you
- Machine type - pick one with at least 15GB of RAM
- Boot disk
- Choose an OS image that MapR supports.
- Change size to 128GB.
- Allow HTTPS traffic
- Expand options for 'Management, disks, networking, SSH keys'
- Click 'Disks'
- Click '+Add item'
- In the first dropdown, select 'Create a disk'
- Name your disk
- Select a disk type based on performance you need
- Source type = 'None (blank disk)'
- Specify a size
- Click 'Create'
Once all of your nodes are created, take note of both the Internal IP and External IP of each instance, you'll need them later.
Deploy the MapR Installer
- From a terminal window, SSH into your first VM instance:
- $ gcloud compute --project "my-project" ssh --zone "us-east1-c" "mapr-demo-1"
- If this is your first time, a SSH keypair will be created, with the private key stored in '/Users/<my_user>/.ssh/google_compute_engine'. Note this location, as you will need this key soon.
- Once you are SSH'd in, type
- curl -O http://package.mapr.com/releases/installer/mapr-setup.sh
- chmod 755 mapr-setup.sh
- sudo ./mapr-setup.sh
- Follow the instructions in the prompts in order to set up the installer.
Use the MapR Installer
(The section below covers only steps that are specific to Google Compute Engine, for full steps see the MapR Installer Documentation.
- From your browser, navigate to https://<external_ip_of_installer_instance>:9443
- Log in using the username and password configured in 'Deploy the MapR Installer'
- Make your installation choices on the first several pages.
- On the 'Node Configuration' page -
- List the internal IPs of all VM instances
- Set 'disks' to '/dev/sdb'
- Select 'SSH-Private Key'
- Username = your local linux username
- Key = '/Users/<my_user>/.ssh/google_compute_engine'
- The .ssh directory is hidden, so you may need to copy this key to another location to browse to it.
- Complete the installation steps.