Typo in ./run.sh script message
varsharma-12 opened this issue · 1 comments
Description
typo in message of ./run.sh
This script expects Confluent Platform version 7.4.1 but the running version is could.
To proceed please either: change the examples repo branch to could or update the running Confluent Platform to version 7.4.1.
https://docs.confluent.io/platform/current/tutorials/examples/security/rbac/docs/index.html
[root@broker1 scripts]# export CONFLUENT_HOME=/usr/bin/confluent
[root@broker1 scripts]# ./run.sh
✔ Confluent Platform installed
confluentinc/cli info checking S3 for tag '3.15.1'
confluentinc/cli info found version: 3.15.1 for 3.15.1/linux/amd64
confluentinc/cli info NOTICE: see licenses located in /tmp/tmp.r5WTe8UmdF/confluent
confluentinc/cli info installed /tmp/tmp.RjZbdooHe5/confluent
confluentinc/cli info please ensure /tmp/tmp.RjZbdooHe5 is in your PATH
This script expects Confluent Platform version 7.4.1 but the running version is could.
To proceed please either: change the examples repo branch to could or update the running Confluent Platform to version 7.4.1.
Environment
-
7.4.1-post, 7.5.0-post
-
Operating System:
-RHEL 9, MacOS
Hi, I think it's not a Typo error.
basically while executing the "/examples/utils/helper.sh" script causing an error, in below peace of code:
TMP_DIR=`mktemp -d`
curl -sL https://raw.githubusercontent.com/confluentinc/cli/main/install.sh | sh -s -- -b $TMP_DIR 3.15.1
actual_version=$( $TMP_DIR/confluent local version 2>&1 | tail -1 | awk -F':' '{print $2;}' | awk '$1 > 0 { print $1}' )
variable actual_version print below output:
The local commands are intended for a single-node development environment only, NOT for production usage. See more: https://docs.confluent.io/current/cli/index.html As of Confluent Platform 8.0, Java 8 is no longer supported.
Error: could not find share/java/confluent-common/common-config-*.jar in CONFLUENT_HOME
So, the last line extracted according to the code is: "tail -1 | awk -F':' '{print $2;}' | awk '$1 > 0 { print $1}'"
Error: could not find share/java/confluent-common/common-config-*.jar in CONFLUENT_HOME
then it will separate the line with ":" delimiter and print "could" from that line via awk script code to print 2nd than 1st field.
here, probably we need to fix the "confluent/confluent local version" confluent command with two argument local and version which execute during runtime or by setting the proper PATH for it might be.
I hope this makes sense, thanks!