Cloud Computing. Command Line Tools



Similar documents
Cloud Computing For Bioinformatics. EC2 and AMIs

Cassandra Installation over Ubuntu 1. Installing VMware player:

How you configure Iscsi target using starwind free Nas software & configure Iscsi initiator on Oracle Linux 6.4

ST 810, Advanced computing

Zend Server Amazon AMI Quick Start Guide

Opsview in the Cloud. Monitoring with Amazon Web Services. Opsview Technical Overview

AdWhirl Open Source Server Setup Instructions

1. Product Information

Online Backup Client User Manual Linux

HP Vertica on Amazon Web Services Backup and Restore Guide

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

MATLAB Distributed Computing Server Cloud Center User s Guide

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

RecoveryVault Express Client User Manual

INSTALL ZENTYAL SERVER

Building a Private Cloud Cloud Infrastructure Using Opensource

Cloud Computing: Amazon Web Services

Online Backup Linux Client User Manual

Online Backup Client User Manual

Hadoop Installation MapReduce Examples Jake Karnes

Online Backup Guide for the Amazon Cloud: How to Setup your Online Backup Service using Vembu StoreGrid Backup Virtual Appliance on the Amazon Cloud

Partek Flow Installation Guide

AlienVault Offline Key Activation

Local Caching Servers (LCS): User Manual

This handout describes how to start Hadoop in distributed mode, not the pseudo distributed mode which Hadoop comes preconfigured in as on download.

OpenTOSCA Release v1.1. Contact: Documentation Version: March 11, 2014 Current version:

Eucalyptus Tutorial HPC and Cloud Computing Workshop

MATLAB on EC2 Instructions Guide

SERVER CLOUD RECOVERY. User Guide

Using The Hortonworks Virtual Sandbox

Online Backup Client User Manual

Fuse ESB Enterprise Installation Guide

Getting Started with Amazon EC2 Management in Eclipse

MYASIA CLOUD SERVER. Defining next generation of global storage grid User Guide AUG 2010, version 1.1

DraganFly Guardian: API Instillation Instructions

Procedure to Create and Duplicate Master LiveUSB Stick

Running Knn Spark on EC2 Documentation

Installing Ubuntu LTS with full disk encryption

How to Install Applications (APK Files) on Your Android Phone

Using Network Attached Storage with Linux. by Andy Pepperdine

How To Set Up Software Raid In Linux (Amd64)

Cloud Providers, SciCloudand

CONFIGURING ECLIPSE FOR AWS EMR DEVELOPMENT

Introduction to analyzing big data using Amazon Web Services

Copyright 2014, SafeNet, Inc. All rights reserved.

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

USB 2.0 Flash Drive User Manual

Setup software RAID1 array on running CentOS 6.3 using mdadm. (Multiple Device Administrator) 1. Gather information about current system.

Rstudio Server on Amazon EC2

Amazon Elastic Compute Cloud Getting Started Guide. My experience

Creating a DUO MFA Service in AWS

Installing Sun's VirtualBox on Windows XP and setting up an Ubuntu VM

PostgreSQL Performance Characteristics on Joyent and Amazon EC2

ucloud server User Guide v3.0 ( )

GeoCloud Project Report GEOSS Clearinghouse

Backing Up TestTrack Native Project Databases

AWS Account Setup and Services Overview

Bringing the Eko VM Home (302)

An Oracle White Paper July Oracle VM 3: Building a Demo Environment using Oracle VM VirtualBox

AES Crypt User Guide

Deploying a Virtual Machine (Instance) using a Template via CloudStack UI in v4.5.x (procedure valid until Oct 2015)

<Insert Picture Here> Introduction to Using MySQL in Cloud Computing

Getting started Cassandra Access control list

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

How To Image A Single Vm For Forensic Analysis On Vmwarehouse.Com

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Amazon EFS (Preview) User Guide

Backup and Recovery of SAP Systems on Windows / SQL Server

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Technical Support Set-up Procedure

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

Student installation of TinyOS

FREE computing using Amazon EC2

Installing MooseFS Step by Step Tutorial

Capturing a Forensic Image. By Justin C. Klein Keane <jukeane@sas.upenn.edu> 12 February, 2013

Amazon CloudWatch to monitor cloud resource usage

Using Google Compute Engine

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

Background on Elastic Compute Cloud (EC2) AMI s to choose from including servers hosted on different Linux distros

Installing FEAR on Windows, Linux, and Mac Systems

A technical whitepaper describing steps to setup a Private Cloud using the Eucalyptus Private Cloud Software and Xen hypervisor.

Using and Contributing Virtual Machines to VM Depot

Using Encrypted File Systems with Caché 5.0

AzMERIT Secure Browser Installation Manual For Technology Coordinators

Installing Proview on an Windows XP machine

Drobo How-To Guide. What You Will Need. Use a Drobo iscsi Array with a Linux Server

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

AWS Data Pipeline. Developer Guide API Version

JAMF Software Server Installation Guide for Linux. Version 8.6

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

CDH installation & Application Test Report

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

BackTrack Hard Drive Installation

A SHORT INTRODUCTION TO DUPLICITY WITH CLOUD OBJECT STORAGE. Version

Personal Virtual Server (PVS) Quick Start Guide

How to Run Spark Application

Transcription:

Cloud Computing Command Line Tools

AWS Command Line Tools Everybody (or nearly everybody) loves GUI. AWS web console is capable of performing many cloud computing functions, but lacks the power of advanced features. After surviving the cloud computing class till now, Your are almost a command line guru! You need AWS command line tools, ec2-api-tools, to maximize the power of AWS cloud computing. Plugging and removing additional drives to your running cloud computer. Saving or trashing drive data after terminating the instance. Modifying instance attribute while instance is running.

Installing Command Line Tools ec2-api-tools are written in Java. It can be installed everywhere where java is available, such as Windows, Linux, Mac OS X, etc. If you have a spare old x86 machine, you can easily install Ubuntu Linux 10.04 LTS: http://www.ubuntu.com/desktop/get-ubuntu/download AWS command line installation in Ubuntu: sudo apt-get install ec2-api-tools It is a similar installation procedure for Linux, Unix, and Mac.

Installing Command Line Tools Windows Installation: Install java if you have not done so yet. http://www.java.com/en/download/manual.jsp#win Download AWS command line tools from Amazon: http://developer.amazonwebservices.com/connect/entry.jspa?externalid=351 These tools is package in a zip file. Let us make a folder in Windows at C:\class\aws and extract the content of zip file to C:\class\aws Rename file C:\class\aws\ec2-api-tools-1.3-53907 to C:\class\aws\ec2-api-tools ec2-api-tools-1.3-53907 is the current versions downloaded in August, 2010 for these tools. Tool installation is done!

Configuring Command Line Tools Windows Configuration: Create a file C:\class\aws\aws_env.cmd with the following content (using notepad) REM Path should have bin\java.exe under it set JAVA_HOME="C:\Program Files\java\jre6" REM Path to Primary Key and Certificate retrieved from AWS set EC2_PRIVATE_KEY=c:\class\aws\aws-pk.pem set EC2_CERT=c:\class\aws\aws-cer.pem REM Path setup set EC2_HOME=c:\class\aws\ec2-api-tools set PATH=%PATH%;%EC2_HOME%\bin set EC2_URL=https://ec2.us-west-1.amazonaws.com Configuration is nearly done!

Configuring Command Line Tools X.509 Certificates: REM Path to Primary Key and Certificate retrieved from AWS set EC2_PRIVATE_KEY=c:\class\aws\aws-pk.pem set EC2_CERT=c:\class\aws\aws-cer.pem We need to generate these two files aws-pk.pem and aws-cer.pem from AWS web console. Go to http://aws.amazon.com/account/, and click on Security credentials Create a new Access Key Save the files as aws-pk.pem and aws-cer.pem in C:\class\aws folder Configuration is done!

Running Command Line Tools Windows: Start a cmd shell cd C:\class\aws aws_env.cmd AWS commands are all start with ec2-something-something or shorted command ec2something, ec2-describe-images or ec2dim are the same commands. All these commands have option -h or --help to get usage help. You might cut and paste some commands from this web page: http://wiki.bioinformatics.ucdavis.edu/index.php/cloud_class_-_command_line Type ec2dim to see what AMIs you have under your account and ec2-describe-instances to show your running instances

Starting/Terminating Instances Starting instance You may start instance using the following command using our own bioinformatics AMI (accb9ae9, your AMI id will be different from mine) ec2-run-instances ami-accb9ae9 --instance-type m1.large --key zwlu@ucdavis.edu Output: RESERVATION r-ab5899ef 324978822037 default INSTANCE i-b90bdefd ami-accb9ae9 pending zwlu@ucdavis.edu 0 m1.large2010-08-19t20:35:47+0000 us-west-1a aki-c397c686 monitoringdisabled ebs You can see your instance using ec2din or see them on our beloved WEB console! Stopping instance ec2-terminate-instances i-b90bdefd Note your AMI, instance ID, etc will be different from mine!

Ephemeral and Persistent Storage Ephermeral Storage: /dev/sdb ( /mnt) is a ephemeral storage and will disappear! Two 420 GB ephemeral storages for type m1.large. To use both ephemeral storages: ec2run ami-9ccd9cd9 --instance-type m1.large --key zwlu@ucdavis.edu -b '/dev/sdc=ephemeral1' These /dev/sdb and /dev/sdc are pre-formatted in the Linux ext3 file system and are ready for use sudo mkdir /mnt2 sudo mount /dev/sdc /mnt2 /dev/sdc will be mounted at /mnt2, you can even use Linux LVM to make them into a single LVM volume of 840 GB.

Ephemeral and Persistent Storage Persistent Storage: Create an EBS volume: ec2-create-volume --size 10 -z us-west-1a VOLUME vol-bd8c41d6 10 us-west-1a creating 2010-08-20T18:23:19+0000 Attach volume to running instance: ec2-attach-volume vol-bd8c41d6 -i i-87b064c3 -d /dev/sdd ATTACHMENT vol-bd8c41d6 i-87b064c3 /dev/sdd attaching 2010-08-20T18:25:41+0000 Drive is available: sudo fdisk -l /dev/sdd Disk /dev/sdd: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track Make file system: sudo mkfs.ext3 /dev/sdd sudo mkdir /mydata sudo mount /dev/sdd /mydata sudo chown ubuntu:ubuntu /mydata Detach volume: sudo umount /mydata on your local machine ec2-detach-volume vol-bd8c41d6 -i i-87b064c3 ATTACHMENT vol-bd8c41d6 i-87b064c3 /dev/sdd detaching 2010-08-20T18:25:41+0000

More Command Lines You may attach this volume to another instance, but you can not attach one volume to more than one instance at the same time, try to see what happens! There are many more tools & options in command line: Examine C:\class\aws\aws-api-tools\bin -h (or help) are your friends to unlock the secrets of these tools AWS forums: http://developer.amazonwebservices.com/connect/forumindex.jspa Helpful websites: http://alestic.com/ http://www.rightscale.com/ Mr. Google helps too!