Skip to end of banner
Go to start of banner

Computation Examples

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

On This page

On Related Pages

First-Time Setup

Sign up to AWS

  1. Create an AWS Account
    • Use your firstName.lastName@sagebase.org email address for the account name
    • Enter Sage Bionetworks' physical address for the address
    • You will need to use your own credit card temporarily
  2. Send Mike Kellen an email to have your new AWS account added to the consolidated bill
    • Once this is done, you will no longer be billed on your own credit card

Subscribe to services

  1. Sign up for EC2 http://aws.amazon.com/ec2/
  2. Sign up for S3 http://aws.amazon.com/s3/
  3. Sign up for ElasticMapReduce http://aws.amazon.com/elasticmapreduce/
  4. Sign up for Simple DB http://aws.amazon.com/simpledb/

Configure EC2

  1. Use the AWS console to create a new SSH key named SageKeyPair
  2. Download it to your home directory on the shared servers
  3. Fix the permissions on it
    chmod 600 ~/SageKeyPair.pem
    

Configure S3

  1. Use the AWS console to make a new S3 bucket named sagebio-YourUnixUsername Note: Do not put any underscores in your bucket name. Only use hyphens, lowercase letters and numbers.
  2. Make these five subdirectories
    1. scripts
    2. input
    3. output
    4. results
    5. logs

Set up your config files for the AWS command line tools installed on the shared servers

Get your credentials

Get your security credentials from your AWS Account

  • Access Key ID
  • Secret Access Key

Set up s3curl

Set up your configuration files for the s3curl AWS tool installed on the shared servers (belltown, sodo, ballard, ...)

  1. ssh to belltown
  2. Create the configuration file for s3curl command line tool
    ~>cat .s3curl 
    #!/bin/perl
    %awsSecretAccessKeys = (
        YourUnixUsername => {
            id => 'YourAccessKeyID',
            key => 'YourSecretAccessKey',
        },
    );
    
  3. Test that you can run s3curl
    ~>/work/platform/bin/s3curl.pl --id $USER https://s3.amazonaws.com/sagebio-$USER/ | head -c 200
    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>sagetestemr</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>
    

Set up the Elastic MapReduce command line tools

Set up your configuration files for the Elastic MapReduce AWS tool installed on the shared servers (belltown, sodo, ballard, ...)

  1. ssh to belltown
  2. Create the configuration file for the Elastic Map Reduce command line tool
    ~>cat $USER-credentials.json 
    {
    "access_id": "YourAWSAccessKeyID",
    "private_key": "YourAWSSecretAccessKey",
    "keypair": "SageKeyPair",
    "key-pair-file": "~/SageKeyPair.pem",
    "log_uri": "s3n://sagebio-YourUnixUsername/logs/",
    "region": "us-east-1"
    }
    
  3. Test that you can run it
    ~>/work/platform/bin/elastic-mapreduce-cli/elastic-mapreduce --credentials ~/$USER-credentials.json --help
    Usage: elastic-mapreduce [options]
    
      Creating Job Flows
            --create                     Create a new job flow
            --name NAME                  The name of the job flow being created
            --alive                      Create a job flow that stays running even though it has executed all its steps
            --with-termination-protection
                                         Create a job with termination protection (default is no termination protection)
            --num-instances NUM          Number of instances in the job flow
    ...
    

Other useful tools

nano text editor

The nano editor is available on sodo/ballard/belltown/etc... and on the miami cluster. It does not use X windows. If you need a simple text editor and are not familiar with vi or emacs, nano is a good choice and installed by default on many linux systems.

~>ssh ndeflaux@pegasus.ccs.miami.edu
ndeflaux@pegasus.ccs.miami.edu's password: 
Last login: Thu May 19 18:59:51 2011 from dhcp149019.fhcrc.org


***********************************************************************
*                                                                     *
* Welcome to Pegasus Linux Cluster at CCS/University of Miami.        *
*                                                                     * 
* ....
*                                                                     *
***********************************************************************

[ndeflaux@u01 ~]$ nano file.txt
[ndeflaux@u01 ~]$ 

  • No labels