|
34 | 34 | }, |
35 | 35 | { |
36 | 36 | "cell_type": "code", |
37 | | - "execution_count": 14, |
| 37 | + "execution_count": 8, |
38 | 38 | "metadata": { |
39 | 39 | "scrolled": true |
40 | 40 | }, |
|
46 | 46 | "This CLI is intended for development only, not for production\n", |
47 | 47 | "https://docs.confluent.io/current/cli/index.html\n", |
48 | 48 | "\n", |
49 | | - "Using CONFLUENT_CURRENT: /var/folders/0s/0xdkb9n12yqdb3fs71926z3c0000gp/T/confluent.0nWtkbhu\n", |
| 49 | + "Using CONFLUENT_CURRENT: /var/folders/0s/0xdkb9n12yqdb3fs71926z3c0000gp/T/confluent.RK2J2sUD\n", |
50 | 50 | "Starting zookeeper\n", |
51 | 51 | "zookeeper is [\u001b[0;32mUP\u001b[0m]\n", |
52 | 52 | "Starting kafka\n", |
|
59 | 59 | } |
60 | 60 | ], |
61 | 61 | "source": [ |
62 | | - "! confluent start ksql-server" |
| 62 | + "# Shows correct startup but does not work 100% yet. Better start from Terminal!\n", |
| 63 | + "#! confluent start ksql-server" |
63 | 64 | ] |
64 | 65 | }, |
65 | 66 | { |
|
287 | 288 | }, |
288 | 289 | { |
289 | 290 | "cell_type": "code", |
290 | | - "execution_count": 7, |
| 291 | + "execution_count": 5, |
291 | 292 | "metadata": {}, |
292 | 293 | "outputs": [ |
293 | 294 | { |
|
311 | 312 | }, |
312 | 313 | { |
313 | 314 | "cell_type": "code", |
314 | | - "execution_count": 8, |
| 315 | + "execution_count": 6, |
315 | 316 | "metadata": {}, |
316 | 317 | "outputs": [ |
317 | 318 | { |
|
320 | 321 | "True" |
321 | 322 | ] |
322 | 323 | }, |
323 | | - "execution_count": 8, |
| 324 | + "execution_count": 6, |
324 | 325 | "metadata": {}, |
325 | 326 | "output_type": "execute_result" |
326 | 327 | } |
|
335 | 336 | }, |
336 | 337 | { |
337 | 338 | "cell_type": "code", |
338 | | - "execution_count": 12, |
| 339 | + "execution_count": 7, |
339 | 340 | "metadata": {}, |
340 | | - "outputs": [], |
| 341 | + "outputs": [ |
| 342 | + { |
| 343 | + "data": { |
| 344 | + "text/plain": [ |
| 345 | + "[{'@type': 'currentStatus',\n", |
| 346 | + " 'statementText': \"CREATE STREAM creditcardfraud_per_user WITH (VALUE_FORMAT='AVRO', KAFKA_TOPIC='creditcardfraud_per_user') AS SELECT Time, Amount, Class FROM creditcardfraud_source c INNER JOIN USERS u on c.user = u.userid WHERE u.USERID = 1;\",\n", |
| 347 | + " 'commandId': 'stream/CREDITCARDFRAUD_PER_USER/create',\n", |
| 348 | + " 'commandStatus': {'status': 'SUCCESS',\n", |
| 349 | + " 'message': 'Stream created and running'}}]" |
| 350 | + ] |
| 351 | + }, |
| 352 | + "execution_count": 7, |
| 353 | + "metadata": {}, |
| 354 | + "output_type": "execute_result" |
| 355 | + } |
| 356 | + ], |
341 | 357 | "source": [ |
342 | | - "# TODO Bugfix needed in ksql-python to create a JOIN statement:\n", |
343 | | - "# https://github.com/bryanyang0528/ksql-python/issues/53\n", |
344 | | - "# client.ksql('CREATE STREAM creditcardfraud_per_user WITH (VALUE_FORMAT='AVRO', KAFKA_TOPIC='creditcardfraud_per_user') AS SELECT Time, Amount, Class FROM creditcardfraud_source c INNER JOIN USERS u on c.user = u.userid WHERE u.USERID = 1')" |
| 358 | + "client.ksql(\"CREATE STREAM creditcardfraud_per_user WITH (VALUE_FORMAT='AVRO', KAFKA_TOPIC='creditcardfraud_per_user') AS SELECT Time, Amount, Class FROM creditcardfraud_source c INNER JOIN USERS u on c.user = u.userid WHERE u.USERID = 1\")" |
345 | 359 | ] |
346 | 360 | }, |
347 | 361 | { |
348 | 362 | "cell_type": "markdown", |
349 | 363 | "metadata": {}, |
350 | 364 | "source": [ |
351 | | - "## TODO => The following section will be fixed soon (when Magnus is back at work)\n", |
| 365 | + "## TODO => The following section will be fixed soon\n", |
352 | 366 | "# Mapping from KSQL to Numpy / Pandas for Machine Learning Tasks" |
353 | 367 | ] |
354 | 368 | }, |
|
0 commit comments