We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug Report:
Scenario:
... ehConf = {} ehConf['eventhubs.useExclusiveReceiver'] = False ehConf['eventhubs.connectionString'] = spark.sparkContext._jvm.org.apache.spark.eventhubs.EventHubsUtils.encrypt( connectionString) startingEventPosition = { "offset": "-1", "seqNo": -1, # not in use "enqueuedTime": None, # not in use "isInclusive": True } endingEventPosition = { "offset": "@latest", "seqNo": -1, "enqueuedTime": None, "isInclusive": True } ehConf["eventhubs.startingPosition"] = dumps(startingEventPosition) ehConf["eventhubs.endingPosition"] = dumps(endingEventPosition) qs=spark.readStream.format("eventhubs")\ .options(**ehConf)\ .load()\ .writeStream\ .foreachBatch(lambda bdf,bid: my_func(bdf,bid,schema,storage_format,coalesced_output))\ .option("checkpointLocation", checkpoint)\ .start() monitor_thread = threading.Thread(target=monitor,args=(qs,)) monitor_thread.start() monitor_thread.join() qs.awaitTermination() def monitor(qs:StreamingQuery): time.sleep(10) while True: if not qs.status.get('isDataAvailable'): print("Stopping Query Stream") qs.stop() break else: time.sleep(1) ... sparkSession.stop()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report:
Scenario:
The text was updated successfully, but these errors were encountered: