Comments (3)
Hi @AdrianoNicolucci , does it succeed with a vanilla boto3 call and not with aws sdk for pandas? is athena endpoint also set?
from aws-sdk-pandas.
Hi @AdrianoNicolucci , does it succeed with a vanilla boto3 call and not with aws sdk for pandas? is athena endpoint also set?
@kukushking After testing it with a table that is just a csv table instead, I'm still getting the same issue of the lambda function timing out since it can't connect to athena. So perhaps it has nothing to do with the iceberg table specifically. However, When I attempt to query directly with boto3, I can see the query reach the athena service which tells me there is an issue somewhere with this method.
from aws-sdk-pandas.
After reviewing the logs and doing some further debugging, it looks like the read_sql_query
method is trying to call the sts service to get the account_id, using the global instead of the regional endpoint. I'm confused why it's trying to use the global sts endpoint instead of the regional one.
error message
File "/opt/python/awswrangler/sts.py", line 33, in get_account_id
return _utils.client(service_name="sts", session=boto3_session).get_caller_identity()["Account"]
Here are the global endpoint configurations I have tried to set to force it to use the region endpoints but with no luck:
os.environ["AWS_STS_REGIONAL_ENDPOINTS"] = "regional"
wr.config.glue_endpoint_url = "https://glue.us-east-2.amazonaws.com"
wr.config.athena_endpoint_url = "https://athena.us-east-2.api.aws.com"
wr.config.sts_endpoint_url = "https://sts.us-east-2.amazonaws.com"
from aws-sdk-pandas.
Related Issues (20)
- Library is too large to deploy as a Lambda layer HOT 8
- EndpointDiscoveryRefreshFailed: Endpoint Discovery failed to refresh the required endpoints. while using timstream api HOT 2
- AWS SDK support for Timestream influxDB HOT 1
- wr.athena.to_iceberg touches file in awswrangler default athena bucket even if s3_output is specified HOT 2
- aws wrangler - s3.to_csv stripes 00:00:00 in timestamps HOT 4
- Data is not being totally written with append using awswrangler to_deltalake with multiple lambdas running in parallel HOT 1
- awswrangler.s3.read_parquet_metadata does not support fixed_size_binary datatype
- filters for awswrangler.s3.read_parquet HOT 1
- Question regarding wr.athena.to_iceberg HOT 4
- Support client-side parameter resolution in wr.athena.create_ctas_table HOT 1
- Cannot write parquet in an S3 path that includes white spaces when using ray HOT 1
- Provide option to skip commit in postgresql.to_sql to allow usage of transactions HOT 1
- Incorrect error message or implementation for datetime formatting? HOT 1
- Unsupported Athena type: json
- Requests for Additional Argument `name_function` on `awswrangler.s3.to_parquet()` HOT 1
- Support IAM Trusted Identity Propagation and Lake Formation with Athena
- Support IAM Trusted Identity Propagation with Redshift
- Upsert column parameters HOT 1
- Get column parameters HOT 2
- s3.read_parquet_table and exception "Unknown parameter in input: "ExcludeColumnSchema", must be one of: CatalogId, DatabaseName, TableName, Expression, NextToken, Segment, MaxResults" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-pandas.