Code + goodies used in Prof. Baines' STA 250 Course (UC Davis, Fall 2013)
ssh
into your instance. Using the DNS, ssh
into your session as follows:
ssh -i /path/to/yourkeypair.pem hadoop@ec2-xxxx.us-west-2.compute.amazonaws.com
Where you need to replace the DNS with the one corresponding to your job.
scp -i yourkey.pem file_to_copy hadoop@(amazon_dns):~/
The above command assumes your private key file is stored in the directory from which you are
ssh-ing (if not, just specify the full path), and you must replace (amazon_dns)
with the public DNS shown in the AWS console. Similarly, to copy results back to your
local machine upon completion:
scp -i yourkey.pem hadoop@(amazon_dns):~/file_to_copy dest_to_copy_to
Happy coding! :)