Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Overriding the default endpoint for AmazonSQS client #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakuborlowski
Copy link

Overriding the default endpoint for AmazonSQS client ("sqs.us-east-1.amazonaws.com") with hostname taken from queueUrl attribute. This allows you to connect to the queues in any region.

Without this, attempts to connect to the queue in regions other than us-east-1 end with:

6843 [Thread-18-sqs] INFO  com.amazonaws.request - Received error response: Status Code: 400, AWS Service: null, AWS Request ID: 62c8ecb6-6db3-5d89-b115-a7dec132b567, AWS Error Code: AWS.SimpleQueueService.NonExistentQueue, AWS Error Message: The specified queue does not exist for this wsdl version.
6847 [Thread-18-sqs] ERROR backtype.storm.util - Async loop died!

More info:
http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/sqs/AmazonSQS.html#setEndpoint(java.lang.String)

…amazonaws.com") with hostname taken from queueUrl.
@apetresc
Copy link
Member

apetresc commented Feb 5, 2014

LGTM, I'll give this a test and merge it later tonight.

Thanks, @raZel! :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants