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

Convert RecordLoader.loadArchives to a Spark Data Source #371

Closed
ruebot opened this issue Nov 5, 2019 · 4 comments
Closed

Convert RecordLoader.loadArchives to a Spark Data Source #371

ruebot opened this issue Nov 5, 2019 · 4 comments
Labels

Comments

@ruebot
Copy link
Member

ruebot commented Nov 5, 2019

Since we're pivoting to full DataFrame support (#223, #190), we should convert/migrate RecordLoader.loadArchives, and any other related functions to a Spark Data Source. That way we could do things like:

spark.read.format("webArchive")
  .option("mode", "FAILFAST")
  .option("inferSchema", "true")
  .option("/path/to/files")
  .schema(someSchema)
  .load()

Then, we could, (since it's an open issue #147) write WARCs that way too? 🤷‍♂️

spark.write.format("webArchive")
  .option("mode", "OVERWRITE")
  .option("/path/to/files")
  .save()

These are the Spark core data sources:

  • CSV
  • JSON
  • Parquet
  • ORC
  • JDBC/ODBC
  • Plain-text
  • Avro

Community implemented data sources:

  • Cassandra
  • HBase
  • MongoDB
  • AWS Redshift
  • XML
@ruebot
Copy link
Member Author

ruebot commented Mar 30, 2020

@ruebot
Copy link
Member Author

ruebot commented Oct 1, 2020

Cassandra example

@ruebot
Copy link
Member Author

ruebot commented May 17, 2022

I'm thinking this is out of scope for this project given the work being done on #494 now. So, I'm going to close it as won't fix.

@ruebot ruebot closed this as completed May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants