OpenKommander is a command line utility and admin UI for Apache Kafka compatible brokers.
- Podman (required for running the development environment)
- Make (required for running development commands)
-
Install Podman Follow the installation instructions for your operating system on the Podman website.
-
Clone the repository
git clone https://github.com/IBM/openkommander.git cd openkommander
-
Start the development environment
make dev
-
Execute into the container
podman exec -it openkommander-app-1 bash
Note: Replace
openkommander-app-1
in case your is different -
Run the application
go run main.go
The application uses a configuration file located at config/config.yaml
. By default, it is configured for the development environment:
kafka:
broker: kafka:9093
You can modify config/config.yaml
to connect to different Kafka clusters:
# Development environment (default)
kafka:
broker: kafka:9093
# Custom environment example
kafka:
broker: localhost:9092 # For local Kafka installation
# broker: kafka-cluster.example.com:9093 # For remote cluster
The configuration file is loaded when the application starts. If you need to connect to a different broker after starting the application, you can use the login
command with a custom broker address:
> login
Enter broker address [kafka:9093]: localhost:9092
After running the application, you can use the following commands:
Command | Description | Arguments |
---|---|---|
login |
Connect to a Kafka cluster | Optional broker address (default from config.yaml) |
logout |
End the current session | None |
session |
Display current session information | None |
metadata |
Display cluster information | None |
help |
Display available commands | None |
exit |
Exit the application | None |
-
Start the application:
go run main.go
-
Connect to the cluster:
> login Connected to Kafka cluster at kafka:9093
-
View session information:
> session Current session: Brokers: [kafka:9093], Authenticated: true
-
View cluster information:
> metadata Cluster Brokers: - kafka:9093 (ID: 1)
-
End session and exit:
> logout Logged out successfully! > exit Exiting application.