Window DStream print(n)
Prints the first ten elements (default to 10) of every batch of data in a DStream on the driver node running the streaming application. This is useful for development and debugging.
Python API This is called pprint() in the Python API.
Example:
1
messages4.print()
2
​
3
ssc.start()
4
ssc.awaitTermination()
Copied!
​
Last modified 1yr ago
Copy link