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

rpk cli missing redpanda on MacOS #3666

Closed
scallister opened this issue Feb 1, 2022 · 6 comments · Fixed by #4291
Closed

rpk cli missing redpanda on MacOS #3666

scallister opened this issue Feb 1, 2022 · 6 comments · Fixed by #4291
Assignees
Labels
community kind/enhance New feature or request

Comments

@scallister
Copy link

Version & Environment

  • MacOS 11.6.2
  • Ubuntu 20.04

Redpanda version: (use rpk version):

  • Brew version v21.11.3 (rev b3e78b1d5c2cb9d8bb11138738d3e6854cca4802)
  • Linux version v21.11.3 (rev b3e78b1)

What went wrong?

The redpanda command, specifically rpk redpanda admin broker decommission is missing.

What should have happened instead?

The rpk tool should have the redpanda subcommand both in Linux and in Brew. The specific functionality I'm interested in is the ability to decommission servers using the Brew version.

How to reproduce the issue?

  1. brew install vectorizedio/tap/redpanda
  2. rpk redpanda --help
  3. On MacOS the rpk will then fail to have this subcommand.

Additional information

I’ve noticed the brew installable version of rpk, v21.11.3 (rev b3e78b1) has different commands than the rpk that ships with Redpanda :thinking_face: v21.11.3 (rev b3e78b1)

For example the redpanda command is missing from the brew version even though that is listed as version 21.11.3.

Brew output:

scallister:~ $ rpk version
v21.11.3 (rev b3e78b1d5c2cb9d8bb11138738d3e6854cca4802)
scallister:~ $ rpk --help
rpk is the Redpanda CLI & toolbox.

Usage:
  rpk [command]

Available Commands:
  acl         Manage ACLs and SASL users.
  cluster     Interact with a Redpanda cluster.
  container   Manage a local container cluster.
  generate    Generate a configuration template for related services.
  group       Describe, list, and delete consumer groups and manage their offsets.
  help        Help about any command
  plugin      List, download, update, and remove rpk plugins.
  topic       Create, delete, produce to and consume from Redpanda topics.
  version     Check the current version.
  wasm        Deploy and remove inline WASM engine scripts.

Flags:
  -h, --help      help for rpk
  -v, --verbose   Enable verbose logging (default: false).

Use "rpk [command] --help" for more information about a command. 

And then here is the output from the rpk that ships with the debian installed package:

ubuntu@:~$ rpk version
v21.11.3 (rev b3e78b1)
ubuntu:~$ rpk --help
rpk is the Redpanda CLI & toolbox.

Usage:
  rpk [command]

Available Commands:
  acl         Manage ACLs and SASL users.
  cluster     Interact with a Redpanda cluster.
  container   Manage a local container cluster.
  debug       Debug the local Redpanda process.
  generate    Generate a configuration template for related services.
  group       Describe, list, and delete consumer groups and manage their offsets.
  help        Help about any command
  iotune      Measure filesystem performance and create IO configuration file.
  plugin      List, download, update, and remove rpk plugins.
  redpanda    Interact with a local Redpanda process
  topic       Create, delete, produce to and consume from Redpanda topics.
  version     Check the current version.
  wasm        Deploy and remove inline WASM engine scripts.

Flags:
  -h, --help      help for rpk
  -v, --verbose   Enable verbose logging (default: false).

Use "rpk [command] --help" for more information about a command.
@scallister scallister added the kind/bug Something isn't working label Feb 1, 2022
@ivotron
Copy link
Member

ivotron commented Feb 2, 2022

thanks @scallister. Redpanda only runs natively on Linux. For macOS, please check rpk container (requires docker). Please take a look at the macOS getting started guide for more. Let us know if you have any other question

@ivotron ivotron closed this as completed Feb 2, 2022
@ivotron ivotron removed the kind/bug Something isn't working label Feb 2, 2022
@emaxerrno emaxerrno reopened this Feb 3, 2022
@emaxerrno
Copy link
Contributor

@ivotron you are right, but the concern that a user from a mac computer should be able to send an admin command to a redpanda cluster to decomission a node

The redpanda command, specifically rpk redpanda admin broker decommission is missing.

I think we may move the broker decomission to a build-path that is non linux only tho.

it makes sense to me to be able to decomission a node from a non linux box.

@emaxerrno
Copy link
Contributor

cc: @vsaraswat for visibility

@emaxerrno emaxerrno added the kind/enhance New feature or request label Feb 3, 2022
@vsaraswat
Copy link

Agree--Mac users should be able to talk to remote clusters.

@ivotron
Copy link
Member

ivotron commented Feb 4, 2022

it makes sense to me to be able to decomission a node from a non linux box.

i see, yeah, that makes todal sense. thanks for clarifying!

@andrewhsu
Copy link
Member

/backport v21.11.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment