...
Name this script bootstrapLatestR.sh
and it should contain the following code:
Code Block |
---|
#!/bin/bash ########################################### # How to get the latest version of R onto Elastic MapReduce #cat >/etc/apt/sources.list <<EOF deb http://http.us.debian.org/debian lenny main contrib non-free deb http://www.r-bloggers.com/bootstrapping-the-latest-r-into-amazon-elastic-map-reduce/ ########################################### # Perform the debian R upgrade echo "http.us.debian.org/debian stable main contrib non-free deb http://security.debian.org lenny/updates main contrib non-free deb http://security.debian.org stable/updates main contrib non-free deb http://cran.fhcrc.org/bin/linux/debian lenny-cran/" | sudomain teecontrib non-a /etc/apt/sources.listfree EOF sudo apt-get update sudo apt-get -t lenny-cran install --yes --force-yes r-base r-base-dev |
What is going on in this script?
- http://www.r-bloggers.com/bootstrapping-the-latest-r-into-amazon-elastic-map-\
reduce/ - http://stackoverflow.com/questions/4473123/script-to-load-latest-r-onto-a-fresh-debian-machine
- https://forums.aws.amazon.com/thread.jspa?messageID=253397
Create the mapper script
The following script will output each word found in the input passed line by line to STDIN with its count of 1.
...