Skip to content

[BUG] NDS power run fails with TypeError: 'JavaPackage' object is not callable #229

@jihoonson

Description

@jihoonson

Describe the bug
The power_run script fails with the error below.

...
found com.nvidia.spark.rapids.listener.Manager 'JavaPackage' object is not callable
TaskFailureListener is registered.
...
(run the first query)
...
Traceback (most recent call last):
  File "/tmp/ab/spark-rapids-benchmarks/nds/nds_power.py", line 672, in <module>
    run_query_stream(args.input_prefix,
  File "/tmp/ab/spark-rapids-benchmarks/nds/nds_power.py", line 475, in run_query_stream
    summary = q_report.report_on(run_one_query,warmup_iterations,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/ab/spark-rapids-benchmarks/nds/PysparkBenchReport.py", line 144, in report_on
    listener.unregister()
  File "/tmp/ab/spark-rapids-benchmarks/nds/python_listener/PythonListener.py", line 48, in unregister
    manager.unregister(self.uuid)
TypeError: 'JavaPackage' object is not callable

This bug seems to have been introduced in #226.

Steps/Code to reproduce bug

Run the nds power_run script.

Expected behavior
It should not fail.

Environment details (please complete the following information)

I ran the script in my workstation with Spark 3.5.5. I did not use the listener as it is optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ? - Needs TriageNeed team to review and classifybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions