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

Efficiency improvements in OpenOA - ENTR warehouse constructor, use PySpark and Arrow in OpenOA ENTR Constructor #29

Open
ejsimley opened this issue Apr 11, 2022 · 0 comments
Assignees

Comments

@ejsimley
Copy link
Contributor

ejsimley commented Apr 11, 2022

We found that using PyHive and HiveThriftServer2 to load data into OpenOA is unacceptably slow (~1 minute to load La Haute Borne data into a PlantData). This ticket aims to overcome this issue by switching the ENTR constructor to use PySpark directly instead of PyHive, and ensure reasonably correct optimizations are made (e.g., Apache Arrow, number and size of Spark executors which makes sense for the demo).

Impacted Repositories:

  • entr/entr_runtime
    • remove automatic pyhive at startup
    • tune spark standalone cluster
  • entr/openoa
    • switch entr constructor to use pyspark dataframes instead of pyhive
@jordanperr jordanperr changed the title Efficiency improvements in OpenOA - ENTR warehouse constructor, preserve Spark Dataframe in PlantData Efficiency improvements in OpenOA - ENTR warehouse constructor, use PySpark and Arrow in OpenOA ENTR Constructor Dec 2, 2022
@jordanperr jordanperr self-assigned this Dec 2, 2022
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

No branches or pull requests

2 participants