Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Error: macOS version >= 10.13 is required using Big Sur #136

Open
FeDeGbR89 opened this issue Nov 17, 2020 · 5 comments
Open

Error: macOS version >= 10.13 is required using Big Sur #136

FeDeGbR89 opened this issue Nov 17, 2020 · 5 comments

Comments

@FeDeGbR89
Copy link

Hi,
I've just updated macOs to 11.0.1 (Big Sur), and every time I try to execute confluent local start kafka or confluent local start schema-registry or confluent local start (I tried with these three commands), I get this error:
Error: macOS version >= 10.13 is required for all Confluent Platform features to work (detected macOS: 11.0.1). Error: exit status 127.
I think that the trouble is in validate_os_version() function. But I don't know if Big Sur is already supported by Confluent Platform.

I've the last version of Confluent Platform (6.0.0).

@valdo404
Copy link

valdo404 commented Nov 18, 2020

Same issue here. In the meantime you can do the following:

zookeeper-server-start /usr/local/Cellar/confluent-platform/5.5.1/libexec/etc/kafka/zookeeper.properties
kafka-server-start /usr/local/Cellar/confluent-platform/5.5.1/libexec/etc/kafka/server.properties
schema-registry-start /usr/local/Cellar/confluent-platform/5.5.1/libexec/etc/schema-registry/schema-registry.properties

n3world added a commit to n3world/confluent-cli that referenced this issue Nov 24, 2020
confluentinc#136

Only error out if MAC OS major version is 10 and minor version is less
than 13. Currently it will error out if the major version is greater
than or equal to 10 and minor version is less than 13.
@rnatarajan
Copy link

Ran into similar issues.
Figuring out the correct local config file were but difficult.
Hence did the following work around to use confluent local start.
confluent local start uses sw_vers to find the mac version.
Created a local script sw_vers placed this file in confluent bin directory.
cat sw_vers
echo "10.13"
Export path such that confluent bin directory takes precedence.
export PATH=$CONFLUENT_HOME/bin:$PATH
Use confluent local start to start the platform.

@rmzzz
Copy link

rmzzz commented Feb 3, 2021

@rnatarajan , thanks for finding problem spot in script.
Inspired by your finding, instead of workarounding sw_vers, I've just fixed bug in script locally, i.e. the line:
if [[ ${mac_version_major} -lt 10 || ( ${mac_version_major} -ge 10 && ${mac_version_minor} -lt 13 ) ]]; then
means (let M - major version, m - minor): if ( M < 10 || M >= 10 && m < 13 ) then error.
The condition is obviously wrong, because it will true for all M < 10 || m < 13
The fix is: if ( M < 10 || M == 10 && m < 13 ) then error.
that is:
if [[ ${mac_version_major} -lt 10 || ( ${mac_version_major} -eq 10 && ${mac_version_minor} -lt 13 ) ]]; then

--- update ---
as I tried to create pull request, I've realized that the same fix is already proposed in #137

@Elizabeth030483
Copy link

Elizabeth030483 commented Sep 24, 2021

Hey,
I am facing the issue similar kind of issue. Any inputs are much appreciated. I have a feature to test quickly.

Trying on my mac (version 11.5.2 BigSur):
Liz's MacBook$ confluent local start
The local commands are intended for a single-node development environment
only, NOT for production usage. https://docs.confluent.io/current/cli/index.html

Error: macOS version >= 10.13 is required for all Confluent Platform features to work (detected macOS: 11.5.2).
Error: exit status 127

Liz's MacBook$ confluent version
confluent - Confluent CLI

Version: v1.7.0
Git Ref: f786f2e
Build Date: 2020-05-15T22:04:03Z
Go Version: go1.14.2 (darwin/amd64)
Development: false

Liz's MacBook$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home

@OneCricketeer
Copy link

OneCricketeer commented Oct 19, 2021

Go Version: go1.14.2 (darwin/amd64)

This repo is not for the Go based CLI, as per the README

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

No branches or pull requests

6 participants