devshawn / kafka-shell

⚡A supercharged, interactive Kafka shell built on top of the existing Kafka CLI tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot launch kafka-shell

PGDataHome opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

here's my output
hadoop@pascal-asus:/kafka$ kafka-shell
Invalid user configuration (root): None is not of type 'object'
hadoop@pascal-asus:
/kafka$

To Reproduce
Steps to reproduce the behavior:

  1. Run kafka-shell
  2. ...

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [i.e. macOS Mojave]
  • Version [e.g. 0.1.0]

Additional context
Add any other context about the problem here.

Hi @PGDataHome, can you share your contents of the config.yaml file?

cat ~/.kafka-shell/config.yaml

If you haven't modified the config, you should be able to delete it and re-launch kafka-shell and it will generate a new one.

Hi @PGDataHome, thanks for the very helpful stacktrace. I believe this is happening due to an outdated pyyaml version on your machine. That package is not currently pinned to a newer version in kafka-shell as I'm using a wrapper library that includes it. I'll update the repo to pin the module, but you should be able to fix this by running:

rm ~/.kafka-shell/config.yaml && pip3 install 'pyyaml==5.1'

Then, you can run kafka-shell. I hope that helps!

Happy to hear!