Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 12:13 PM
Hi,
as you have many files, I have a suggestion do not use spark to read them in all at once as it will slow down greatly.
instead use boto3 for the file listing, distribute the list across the cluster and again use boto3 to fetch the files and compact them into parquet, iceberg, delta or orc.
AWS has (had?) an example code (somewhere in GitHub) doing this using EMR and the Java API of spark.