https://delta.io logo
r

Rahul Sharma

01/13/2023, 7:13 AM
Hello Team, i am not able to import below package
Copy code
from pyspark.sql.streaming import StreamingQueryListener
getting ImportError: cannot import name ‘StreamingQueryListener’ from ‘pyspark.sql.streaming’ (/usr/lib/spark/python/pyspark/sql/streaming.py)
j

Jon Stockham

01/13/2023, 8:15 AM
Are you using databricks?
r

Rahul Sharma

01/13/2023, 8:16 AM
nope ,i am using EMR
j

Jon Stockham

01/13/2023, 8:18 AM
I think this only works in the databricks runtime, normally StreamingQueryListener isn't importable through pyspark.
r

Rahul Sharma

01/13/2023, 8:19 AM
is there any way @Jon Stockham
j

Jon Stockham

01/13/2023, 8:55 AM
c

Christopher Grant

01/14/2023, 5:53 AM
what version of spark are you using?
r

Rahul Sharma

01/14/2023, 5:55 AM
I am using spark 3.1.1
c

Christopher Grant

01/14/2023, 6:02 AM
looks like it’ll be part of OSS 3.4.0, which will be cut on monday
6 Views