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/kafka$
Invalid user configuration (root): None is not of type 'object'
hadoop@pascal-asus:
To Reproduce
Steps to reproduce the behavior:
- Run
kafka-shell
- ...
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!