Skip to content

Instantly share code, notes, and snippets.

@apurvam
Last active January 25, 2018 00:31
Show Gist options
  • Save apurvam/f206f1009291d898df80bb781e8428af to your computer and use it in GitHub Desktop.
Save apurvam/f206f1009291d898df80bb781e8428af to your computer and use it in GitHub Desktop.
An example of how to dump the contents of a topic using 'print'.
ksql> print 'pageviews_kafka_topic_json';
Format:JSON
{"ROWTIME":1516753301093,"ROWKEY":"1","viewtime":1516753300961,"pageid":"Page_53","userid":"User_9"}
{"ROWTIME":1516753301458,"ROWKEY":"11","viewtime":1516753301458,"pageid":"Page_38","userid":"User_5"}
{"ROWTIME":1516753301660,"ROWKEY":"21","viewtime":1516753301660,"pageid":"Page_25","userid":"User_2"}
^C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment