Académique Documents
Professionnel Documents
Culture Documents
http://bit.ly/HvMC1Z
Click Select
Click on Launch...
Select Create a ne& ke' pair fro! the top "rop#"o$n bo%...
Save the keypair $here you can fin" it' an" click on Launch Instances.
(our instance is no$ being launche". Click on +ie& Instances to see it.
)ur instance is initialise"
Click the instance (it*ll have a green light ne%t to it' to "isplay infor!ation about it.
+his $ill be i!portant in a !inute
-nter the path to the key pair file you "o$nloa"e"' i.e. right#click on the file if you*re
not sure.
/ success !essage shoul" appear' no$ $e nee" to save the key in .3++(*s o$n for!at.
Confir! you $ish to save &ithout a passphrase' an" save in the sa!e "irectory.
Connectin- to our instance usin- *u$$, SSH
S$itch back to the /2S console' an" copy the a""ress of your instance' it*ll look
so!ething like ec223"22142152133eu2&est21co/putea/azona&sco/
+his is the a""ress of the instance that $e*ll be using to connect to.
.aste the a""ress here
Scroll "o$n an"
click on Auth
4o$ click on 6ro&se an" navigate to the key you 5ust save" (en"s $ith *ppk* e%tension.
2e "on*t nee" a pass$or" as our key $ill be sent across to the instance.
3npack it:
tar %:f ha"oop#8.99.8.tar.g:
Calculating .A:
su"o bin;hadoop <ar ha"oop#!apre"#e%a!ples#;.5ar pi 1! 1!!!!!!!
Another e:a/ple= usin- so/e actual data
Copy the very interesting B-/@M-.t%t file to our ne$ input fol"er:
su"o cp B-/@M-.t%t LAC-4S-.t%t input
4o$ $e count up the total $or"s an" $hat they are (Ha"oop $ill create the output
fol"er for us:
su"o bin;hadoop <ar ha"oop#!apre"#e%a!ples#;.5ar &ordcount input output
Select S#
+he results have been $ritten to the output fol"er in parts (H@1S for!at.
@ouble#click to "o$nloa".
/!a:on charges by the hour' so !ake sure you close your instance after each session.
Select the instance that is running through EC2 option in the AWS console
Stick to earlier versions of Ha"oop such as !22! (they keep !oving things aroun"' especially the class
files that you*ll nee" to co!pile your co"e to <ar
Sin-le2node !o"e is fine for testing your !ap#re"uce co"e before "eploying it.