You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure rosetta is installed before expecting rpk to work on a mac m1 😁 .
Problem
I ran into issues after brew-installing redpanda-data/tap/redpanda and running rpk on a fresh M1:
~ ❯❯❯ brew info redpanda
redpanda-data/tap/redpanda: stable 22.1.3
Fastest Queue in the West
https://www.vectorized.io/
/opt/homebrew/Cellar/redpanda/22.1.3 (3 files, 23.5MB) *
Built from source on 2022-05-20 at 20:49:23
From: https://github.com/redpanda-data/homebrew-tap/blob/HEAD/Formula/redpanda.rb
==> Caveats
Redpanda - The fastest queue in the west!
This installs RPK which, with Docker, enables the running of a local cluster
for testing purposes.
You can start a 3 node cluster locally using the following command:
rpk container start -n 3
You can then interact with the cluster using commands like the following:
rpk topic list
When done, you can stop and delete the cluster with the following command:
rpk container purge
For information on how to setup production evironments, check out our
installation guide here: https://vectorized.io/documentation/setup-guide/
~ ❯❯❯ rpk
zsh: bad CPU type in executable: rpk
Solution
Install rosetta via /usr/sbin/softwareupdate --install-rosetta (since rpk tap is an amd64 build) and things will work:
~ ❯❯❯ rpk
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
TL;DR
Make sure
rosetta
is installed before expectingrpk
to work on a mac m1 😁 .Problem
I ran into issues after brew-installing
redpanda-data/tap/redpanda
and runningrpk
on a fresh M1:Solution
Install
rosetta
via/usr/sbin/softwareupdate --install-rosetta
(sincerpk
tap is an amd64 build) and things will work:Beta Was this translation helpful? Give feedback.
All reactions