Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

driver is error for cn regions #70

Closed
hbuzhuhaoju opened this issue Dec 23, 2020 · 3 comments
Closed

driver is error for cn regions #70

hbuzhuhaoju opened this issue Dec 23, 2020 · 3 comments

Comments

@hbuzhuhaoju
Copy link

Dear Developer:
I used your latest Athena driver ,v1.10, but driver also throw exception for China region;

An error has been thrown from the AWS SDK client. Unable to execute HTTP request: athena.cn-north-1.amazonaws.com: Name or service not known [Execution ID not available]

Please forgive my bad english

@hbuzhuhaoju
Copy link
Author

image

@dacort
Copy link
Owner

dacort commented Dec 28, 2020

@hbuzhuhaoju Sorry it didn't work for you. It should have in v1.1.0, but I'm glad you figured out how to get it work.

I'm currently on vacation, but will try to double check this functionality when I'm back.

Edit: after looking at your screenshot, it looks like I missed the ".cn" at the end of the endpoint url. :(

@dacort
Copy link
Owner

dacort commented Feb 18, 2021

I think what may have happened here is that, by default, the Athena driver uses results set streaming, which also uses port 444 instead of port 443. I'm guessing you weren't able to connect to port 444 and the connection timed out. That's why the EndpointOverride to port 443 worked. The driver is building the endpoint URL correctly. What I'm wondering is if result set streaming is available in cn region? But I think the Athena driver would take care of that automatically...

Debug logs:

Feb 17 16:30:14.399 DEBUG 56 com.simba.athena.athena.api.AJClient.AJClient: Building Athena Streaming client with endpoint = 'https://athena.cn-north-1.amazonaws.com:444' and region = 'cn-north-1'.

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

No branches or pull requests

2 participants