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

Migrate to Spark 3's DataSource v2 interfaces #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mojodna
Copy link

@mojodna mojodna commented Apr 3, 2024

This allows this library to run against various Spark 3.x versions (tested against 3.3.x and 3.5.x using assemblies generated using this branch). Prior to updating the interfaces, I refreshed the dependencies (including migrating from Spark 2.11 to 2.12) and addressed deprecations (excepting sbt's changes to how integration tests are defined).

useLocal works in a cluster environment, but I'm unable to read PBFs larger than the included sample.pbf (e.g., Geofabrik extracts) from S3 directly: it begins to read the remote object, but the resulting DataFrame contains 0 rows. I suspect that this is due to how parallelpbf handles Hadoop's FSDataInputStream, potentially across multiple threads, but I've been unable to locate the source of the problem.

I'd like to share this as-is to accelerate any potential efforts by others while recognizing that there is still work to be done.

Fixes #3.

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

Successfully merging this pull request may close these issues.

Any plans for Spark-3.x migration?
1 participant