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

Fix Python TaskMetrics.__init__ #42

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

brian-tecton-ai
Copy link
Contributor

gatherAccumulable was removed from the constructor from the parallel
Scala TaskMetrics class; however, the Python constructor was not
updated.

In sparkmeasure pypi 0.21.0 I saw the following error upon running the Python constructor.
py4j.Py4JException: Constructor ch.cern.sparkmeasure.TaskMetrics([class org.apache.spark.sql.SparkSession, class java.lang.Boolean]) does not exist

case class TaskMetrics(sparkSession: SparkSession) {

I tested this with a local Python build and ensure that I was able to construct TaskMetrics and collect metrics.

`gatherAccumulable` was removed from the constructor from the parallel
Scala TaskMetrics class; however, the Python constructor was not
updated.

py4j.Py4JException: Constructor ch.cern.sparkmeasure.TaskMetrics([class org.apache.spark.sql.SparkSession, class java.lang.Boolean]) does not exist
@brian-tecton-ai
Copy link
Contributor Author

Just started checking it out today -- all the docs and example notebooks are super helpful! Ran into this small error, seemed like a quick fix

@LucaCanali LucaCanali merged commit 5bf7003 into LucaCanali:master Aug 22, 2022
@LucaCanali
Copy link
Owner

Merged.
Thank you!

@brian-tecton-ai brian-tecton-ai deleted the python-TaskMetrics branch August 26, 2022 14:46
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.

None yet

2 participants