-
Notifications
You must be signed in to change notification settings - Fork 29
Kafka Demo script #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Kafka Demo script #126
Conversation
Signed-off-by: Saad Khan <saakhan@redhat.com>
Signed-off-by: Saad Khan <saakhan@redhat.com>
Signed-off-by: Saad Khan <saakhan@redhat.com>
|
@khansaad Is the demo working fine now? Can you please paste the output here. |
Signed-off-by: Saad Khan <saakhan@redhat.com>
|
|
|
||
| ## Demo workflow | ||
|
|
||
| - Reserve a namespace in ephemeral cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the readme to remove references to ephemeral/bonfire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Saad Khan <saakhan@redhat.com>
|
@khansaad Demo doesn't run and fails with this error Kruize pod log error |
Signed-off-by: Saad Khan <saakhan@redhat.com>
Signed-off-by: Saad Khan <saakhan@redhat.com>
Fixed the issue as part of PR 1555 |
kusumachalasani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, please move the console output and intermediate messages to the log.
Also, please include the consumer commands user can try to look into the messages at the end of log.
common/common_helper.sh
Outdated
| if [ ${CLUSTER_TYPE} == "kind" ]; then | ||
| sed -i 's/"isKafkaEnabled" : "false"/"isKafkaEnabled" : "true"/' ${KRUIZE_CRC_DEPLOY_MANIFEST_MINIKUBE} | ||
| # Replace the existing KAFKA_BOOTSTRAP_SERVERS value | ||
| sed -i "s|value: \"kruize-kafka-cluster-kafka-bootstrap.kafka.svc.cluster.local:9092\"|value: \"$BOOTSTRAP_SERVER\"|g" ${KRUIZE_CRC_DEPLOY_MANIFEST_MINIKUBE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying the demo in multiple namespaces doesn't replace the actual bootstrap server
| # Perform action based on selection | ||
| if [ ${start_demo} -eq 1 ]; then | ||
| echo | ||
| echo "Starting the demo using: " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move all these messages to the log
| kafka_elapsed_time=$(time_diff "${kafka_start_time}" "${kafka_end_time}") | ||
| fi | ||
| elapsed_time=$(time_diff "${start_time}" "${end_time}") | ||
| echo "🕒 Success! Kafka Server setup took ${kafka_elapsed_time} seconds" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throws an error when kafka setup is skipped.
| } | ||
|
|
||
| function consume_messages() { | ||
| echo -n "🔄 Consuming recommendations from the recommendations-topic..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please include some dots to let user know that kafka is consuming messages and is in progress.
…ver and other cosmetic changes Signed-off-by: Saad Khan <saakhan@redhat.com>
|
Updated now. This is how it looks now: Recommendation messages are moved to the log file and URLs are added in the log as well as in the README file for users to have easy access. |
Signed-off-by: Saad Khan <saakhan@redhat.com>
Signed-off-by: Saad Khan <saakhan@redhat.com>
|
@khansaad Can you please do the below minor changes to have all the demos look similar.
#######################################
Success! Kafka Consumer took 20 seconds |
Signed-off-by: Saad Khan <saakhan@redhat.com>
|
@kusumachalasani - Can you please close the review of this PR. |
|
@khansaad The script abruptly ends without mentioning anything. But when I logged into log file it says Can you include the statement to look into the kafka-demo.log even when there are failures so user can know what would have happened. |
|
@khansaad I'm trying to test it on new scalelab machine and I see the demo exits abruptly with the below issue. |
|
@kusumachalasani This issue is occuring due to the recent We can stick to |
Signed-off-by: Saad Khan <saakhan@redhat.com>
|
@kusumachalasani Please try this again now. Have updated the script now to use the latest |
|
@khansaad |
@kusumachalasani Strimzi 0.46 requires following: for Strimzi 0.46.0: You need to update the version. I will update the same in the docs as well |
This PR adds a demo script and related files to run the demo showcasing the working of Kafka consumer.
Note: This works on
openshiftcluster only for now.