Skip to content
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

Typo in ./run.sh script message #1231

Open
varsharain-a11y opened this issue Sep 4, 2023 · 1 comment
Open

Typo in ./run.sh script message #1231

varsharain-a11y opened this issue Sep 4, 2023 · 1 comment

Comments

@varsharain-a11y
Copy link
Member

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

@chrajeshdagur
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants