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
Copy file name to clipboardExpand all lines: README.rst
+17-7
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,26 @@ Or
29
29
Getting Started
30
30
---------------
31
31
32
+
Setup for KSQL
33
+
~~~~~~~~~~~~~~~
34
+
32
35
This is the GITHUB page of KSQL. https://github.com/confluentinc/ksql
33
36
34
-
Setup
35
-
~~~~~
37
+
If you have installed open source Confluent CLI (e.g. by installing Confluent Open Source or Enterprise Platform), you can start KSQL and its dependencies with one single command:
38
+
39
+
.. code:: bash
40
+
41
+
confluent start ksql-server
42
+
43
+
Setup for ksql-python API
44
+
~~~~~~~~~~~~~~~~~~~~~~~~~
36
45
37
46
- Setup for the KSQL API:
38
47
39
48
.. code:: python
40
49
41
50
from ksql importKSQLAPI
42
-
client = KSQLAPI('http://ksql-server:8080')
51
+
client = KSQLAPI('http://ksql-server:8088')
43
52
44
53
- Setup for KSql API with logging enabled:
45
54
@@ -82,13 +91,14 @@ It will execute sql query and keep listening streaming data.
82
91
83
92
client.query('select * from table1')
84
93
85
-
This command returns a generator. It can be printed e.g. by reading its values via `next(query)` or a for loop:
94
+
This command returns a generator. It can be printed e.g. by reading its values via `next(query)` or a for loop. Here is a complete example:
0 commit comments