sergioferragut commented on code in PR #14742:
URL: https://github.com/apache/druid/pull/14742#discussion_r1289196907
##########
examples/quickstart/jupyter-notebooks/notebooks/02-ingestion/01-streaming-from-kafka.ipynb:
##########
@@ -209,9 +177,25 @@
"metadata": {},
"outputs": [],
"source": [
- "import multiprocessing as mp\n",
- "from datetime import datetime\n",
- "import DruidDataDriver"
+ "headers = {\n",
+ " 'Content-Type': 'application/json'\n",
+ "}\n",
+ "\n",
+ "datagen_request = {\n",
+ " \"name\": \"social_stream\",\n",
+ " \"target\": { \"type\": \"kafka\", \"endpoint\": kafka_host,
\"topic\": topic_name },\n",
+ " \"config_file\": \"social/social_posts.json\", \n",
+ " \"total_events\":50000,\n",
+ " \"concurrency\":100\n",
+ "}\n",
+ "datagen.post(\"/start\", json.dumps(datagen_request), headers=headers)\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "You can check the status of the job with:"
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]