Skip to content
New issue

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

chap3 - streaming write results in console #32

Open
maelfosso opened this issue Oct 26, 2018 · 3 comments
Open

chap3 - streaming write results in console #32

maelfosso opened this issue Oct 26, 2018 · 3 comments

Comments

@maelfosso
Copy link

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 maelfosso changed the title chap2 - streaming write results in console chap3 - streaming write results in console Oct 26, 2018
@bllchmbrs
Copy link
Contributor

bllchmbrs commented Oct 26, 2018

Are you running this on your laptop/desktop computer ?

@maelfosso
Copy link
Author

@anabranch
I'm running it on my laptop.

Is there anything I forget to install ?

@bllchmbrs
Copy link
Contributor

Is it in a notebook of some sort or just in the terminal?

I would recommend running all the code again, you should definitely see it. This has never been reported before and I know a lot of people have run it so it's likely something you're doing. If you can provide more specifics about what you're doing, I can help more but with the information you're providing me I don't have much to go off of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants