spark-deep-learning icon indicating copy to clipboard operation
spark-deep-learning copied to clipboard

DeepImageFeaturizer does not work with Structured Streaming

Open mhamilton723 opened this issue 6 years ago • 2 comments

Somewhere in there you are probably dropping down into RDD apis.

mhamilton723 avatar Jun 11 '18 18:06 mhamilton723

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.

sueann avatar Jun 11 '18 18:06 sueann

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!

dimagoldin avatar Jul 07 '18 06:07 dimagoldin