CC Uni-3-2
CC Uni-3-2
• Amazon offers a highly scalable and reliable hosted queue for storing
messages as they travel between distinct components of applications.
• boto.sqs.connect_to_region is function to establish a connection to
SQS service by passing AWS region, access key and secret key.
• conn.create_queue is a function to create a new queue with queue
name as input parameter.
• To know all existing queues conn.get_all_queues is a function.
• queue.write is a function to write into the queue by passing message
as input parameter.
• queue.read is function to read message from the queue.
Python for Amazon Web Services
Amazon EMR
• Amazon EMR is a web service that utilizes Hadoop framework
running on Amazon EC2 and S3.
• Amazon EMR is suitable for massive scale data processing for
applications such as data mining, data warehousing, scientific
simulations etc.
• boto.emr.connect_to_region is function to connect to EMR service
by passing AWS region,access key and secret key.
• After connect to EMR service a job flow step is created.
• There are two types of steps to create a job flow such as streaming
and customer jar.
• To create a streaming job an object of the streaming Step class is
created by specifying the job name, location of the mapper, reducer,
input and output.
Python for Amazon Web Services