yihua commented on issue #7487:
URL: https://github.com/apache/hudi/issues/7487#issuecomment-1376840871
Hi @AdarshKadameriTR to fully understand where these S3 requests / API calls
come from, you should enable S3 request logs by setting
`log4j.logger.com.amazonaws.request=DEBUG` in log4j properties file and the
following Spark configs:
```
--conf
spark.driver.extraJavaOptions="-Dlog4j.configuration=file:/<path>/s3-debug.log4j.properties"
--conf
spark.executor.extraJavaOptions="-Dlog4j.configuration=file:/<path>/s3-debug.log4j.properties"
```
Then in the driver and executor logs you'll see request logs like:
```
DEBUG request: Sending Request: GET
https://<bucket>.s3.us-east-2.amazonaws.com / Parameters:
({"list-type":["2"],"delimiter":["/"],"max-keys":["5000"],"prefix":["table/.hoodie/metadata/.hoodie/"],"fetch-owner":["false"]}Headers:
...
```
This helps you understand which prefix / directory triggers the most S3
requests, and then we can dig deeper into why that's happening.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]