spark-deep-learning
spark-deep-learning copied to clipboard
DeepImageFeaturizer does not work with Structured Streaming
Somewhere in there you are probably dropping down into RDD apis.
Yeah RDDs are used in TensorFrames which is what is underneath the Featurizer. UDFs can be used as a workaround but we don't have it productionized in this package.
I am getting the following error:
pyspark.sql.utils.AnalysisException: 'Queries with streaming sources must be executed with writeStream.start();;
when doing this:
p_model.transform(imageStream).select("probability", "prediction").writeStream.format("console").start().awaitTermination()
Could you please show an example of the workaround? i wasnt able to use the model correctly as a UDF Thanks!