westonpace commented on issue #36007: URL: https://github.com/apache/arrow/issues/36007#issuecomment-1589861318
Ok. I hadn't noticed the default region was configured for me in `~/.aws/config` (and not `credentials`). If I remove that file then I see a delay even if I have credentials. It appears to be the same basic idea, AWS is attempting to get the region from some EC2 address and, depending on how your network is configured, it may take a long time for it to realize that doesn't work: ``` [TRACE] 2023-06-13 18:55:34.572 EC2MetadataClient [139814276814784] Getting current region for ec2 instance [TRACE] 2023-06-13 18:55:34.572 EC2MetadataClient [139814276814784] Retrieving credentials from http://169.254.169.254/latest/meta-data/placement/availability-zone [TRACE] 2023-06-13 18:55:34.572 CurlHttpClient [139814276814784] Making request to http://169.254.169.254/latest/meta-data/placement/availability-zone [TRACE] 2023-06-13 18:55:34.572 CurlHttpClient [139814276814784] Including headers: [TRACE] 2023-06-13 18:55:34.572 CurlHttpClient [139814276814784] host: 169.254.169.254 [TRACE] 2023-06-13 18:55:34.573 CurlHttpClient [139814276814784] user-agent: aws-sdk-cpp/1.10.13 Linux/5.19.0-43-generic x86_64 GCC/10.4.0 [TRACE] 2023-06-13 18:55:34.573 CurlHttpClient [139814276814784] x-aws-ec2-metadata-token: [DEBUG] 2023-06-13 18:55:34.573 CurlHandleContainer [139814276814784] Attempting to acquire curl connection. [INFO] 2023-06-13 18:55:34.573 CurlHandleContainer [139814276814784] Connection has been released. Continuing. [DEBUG] 2023-06-13 18:55:34.573 CurlHandleContainer [139814276814784] Returning connection handle 0x5615e85f8ff0 [DEBUG] 2023-06-13 18:55:34.573 CurlHttpClient [139814276814784] Obtained connection handle 0x5615e85f8ff0 [DEBUG] 2023-06-13 18:55:34.573 CURL [139814276814784] (Text) Trying 169.254.169.254:80... [DEBUG] 2023-06-13 18:55:35.107 CURL [139814276814784] (Text) connect to 169.254.169.254 port 80 failed: No route to host [DEBUG] 2023-06-13 18:55:35.107 CURL [139814276814784] (Text) Failed to connect to 169.254.169.254 port 80 after 533 ms: Couldn't connect to server ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org