You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First we need to start a local Kafka ecosystem to use KSQL. This can be done in Jupyter or from your development environment or command line.
15
18
16
-
We also need to create some test data: Either start a data generator to create a continous feed of streaming data, integrate with a file via a bash script, or use Kafka Connect for a real continuous data stream of any source data.
19
+
We also need to create some test data: Either start a data generator to create a continuous feed of streaming data, integrate with a file via a bash script, or use Kafka Connect for a real continuous data stream of any source data.
17
20
18
21
This is not part of the ML-related tasks, but just to get some test data into a Kafka topic:
19
22
@@ -23,7 +26,7 @@ This is not part of the ML-related tasks, but just to get some test data into a
You can also use an easy-to-use Data Generator; either as standalone script or Kafka Connect connector. More details and examples in the blog post "Easy Ways to Generate Test Data in Kafka" (https://www.confluent.io/blog/easy-ways-generate-test-data-kafka).
69
+
You can also use an easy-to-use Kafka data generator; either as standalone script or Kafka Connect connector. See the blog post "Easy Ways to Generate Test Data in Kafka" (https://www.confluent.io/blog/easy-ways-generate-test-data-kafka) for details and examples about the Kafka data generator.
67
70
68
71
== Demo in Jupyter Notebook
69
-
Now go to the Jupyter Notebook 'python-jupyter-apache-kafka-ksql-tensorflow-keras.ipynb' to do the preprocessing and interactive analysis with Python + KSQL, then the model training with Python + Keras.
72
+
Now go to the Jupyter Notebook 'python-jupyter-apache-kafka-ksql-tensorflow-keras.ipynb' (https://github.com/kaiwaehner/python-jupyter-apache-kafka-ksql-tensorflow-keras/blob/master/live-demo___python-jupyter-apache-kafka-ksql-tensorflow-keras.adoc) to do the preprocessing and interactive analysis with Python + KSQL, then the model training with Python + TensorFlow / Keras.
70
73
71
74
[source,bash]
72
75
----
73
76
// Terminal
74
77
jupyter notebook
75
78
----
76
79
77
-
== Commands to create KSQL Streams and to consume events
78
-
Some options to consume the data for testing:
80
+
== Commands to create the KSQL Streams and to consume events
81
+
These KSQL statements can be used from KSQL CLI (not via Python API):
You can also oconsume the data outside of Jupyter (for instance helpful if you need to find out if a problem is due to Python issues or Kafka / KSQL issues):
0 commit comments