Spark-The-Definitive-Guide icon indicating copy to clipboard operation
Spark-The-Definitive-Guide copied to clipboard

chap3 - streaming write results in console

Open maelfosso opened this issue 5 years ago • 3 comments

Hi,

I start learning Apache Spark by reading that book. I'm now at chapter 3 - Streaming part. For snippet code, I choose python3 My problem is that nothing is displayed in console, as said in the book, from that code

purchaseByCustomerPerHour.writeStream \
    .format("console") \
    .queryName("customer_purchases_3") \
    .outputMode("complete") \
    .start() \
    .show() 

I don't know if I'm doing something wrong but tell me how to display result in console at start and at every update too

maelfosso avatar Oct 26 '18 04:10 maelfosso