garystafford / emr-demo Goto Github PK
View Code? Open in Web Editor NEWProject files for the post: Running PySpark Applications on Amazon EMR: Methods for Interacting with PySpark on Amazon Elastic MapReduce.
License: Apache License 2.0
Project files for the post: Running PySpark Applications on Amazon EMR: Methods for Interacting with PySpark on Amazon Elastic MapReduce.
License: Apache License 2.0
In the script create_cfn_stack.py
the create_bucket
function fails for certain regions with the following error:
A client error (IllegalLocationConstraintException) occurred when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
Upon searching a bit I landed on this issue aws/aws-cli#2603
For now I have mitigated the issue by modifying the code for my region and adding the LocationConstraint
def create_bucket(bucket_name):
"""Create an S3 bucket in a specified region
:param bucket_name: Bucket to create
:return: True if bucket created, else False
"""
try:
s3_client.create_bucket(
Bucket=bucket_name,
CreateBucketConfiguration={'LocationConstraint': 'ap-southeast-1'}
)
logging.info(f'New bucket name: {bucket_name}')
except ClientError as e:
logging.info('An error occurred !!', bucket_name)
logging.error(e)
return False
return True
However I think the script can be modified to accommodate for this so it doesn't fail.
output: ERROR - An error occurred (ParameterAlreadyExists) when calling the PutParameter operation: The parameter already exists. To overwrite this value, set the overwrite option in the request to true.
do you have an idea?
Hey Gary,
how can I correct this error
Cluster: demo-cluster-CloudFormation Resolved with errors The given SSH key name was invalid
At the moment the blog IMO assumes that the user running the example either has all the IAM roles figured out or is a root user.
This leads to the script failing multiple times. The README or the wiki can be updated to add the required permissions for running the demo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.