K A F K A W I Z E

Loading

In this post we setup Kafkawize and Apache Cassandra on docker and access.

Docker images of Kafkawize are available at: https://hub.docker.com/u/kafkawize

Follow the below steps

  1. Install docker and make sure you have access access to run docker commands like docker ps etc.

Create docker compose files

  1. Create a docker compose file(kafkawize_docker_compose.yml) like below which contains images, properties of Kafkawize ClusterApi and Kafkawize UserInterface Api applications.
version: '2'
 services:
   clusterapi-1:
     image: kafkawize/kw_clusterapi:latest
     ports:
     -   "9343:9343"
     networks:
       - kafka
     extra_hosts:
       - "moby:127.0.0.1"
   uiapi-1:
     image: kafkawize/kw_uiapi:latest
     hostname: localhost
     networks:
       - kafka
     environment:
       CUSTOM_DB_STORETYPE: cassandra
       CUSTOM_CASSANDRADB_URL: cassandra-1
       CUSTOM_CLUSTERAPI_URL: http://clusterapi-1:9343
     ports:
     -   "9097:9097"
     extra_hosts:
       - "moby:127.0.0.1"     
 networks:
     kafka:

Create a cassandra_docker_compose.yml with the below content which contains docker image of Apache Cassandra

version: '2'
 services:
   cassandra-1:
     image: cassandra:latest
     ports:
     -   "9042:9042"
     networks:
       - kafka
     extra_hosts:
       - "moby:127.0.0.1"     
 networks:
     kafka:

Start Cassandra

To run the docker compose file, run the below command where the above file is saved.

docker-compose -f .\cassandra_docker_compose.yml up

Start Kafkawize

docker-compose -f .\kafkawize_docker_compose.yml up

Verify processes

docker ps

We can see the running containers of Cassandra, Kw Cluster Api and UI api applications.

Access Kafkawize

You can now access Kafkawize with the below url

http://localhost:9097/kafkawize

Default Credentials available to access Kafkawize

uiuser1/user USER    Team1
uiuser2/user USER Team2
uiuser3/user USER Team3
uiuser4/user ADMIN Team1
uiuser5/user ADMIN Team2
uiuser6/user ADMIN Team3
superuser/user SUPERUSER Team2
docker exec -ti <docker_container_id> /bin/bash

Conclusion

So in this post we learnt how to run kafkawize on docker by using Apache Cassandra as the metastore.

Documentation is also available :
https://kafkawize.readthedocs.io/en/latest/docker.html

Related Post

Automate processes around your Kafka clusters with workflows, reduced risk full audit, governance.

About Us

Follow Us

Email: info@klaw-project.io

© 2021 Kafkawize Technology Solutions. All rights reserved. Registered company in The Netherlands.