Docker - Neethahiremath/Wiki GitHub Wiki
Docker cassandra command: docker run -p 9042:9042 -e DS_LICENSE=accept --name my-dse -d datastax/dse-server:6.7.1 -k
docker exec -it --user root my-dse bash
cqlsh IP -u username -p password
Docker Landoop Kafka command:
docker run -h 0.0.0.0 -p 2181:2181 -p 3030:3030 -p 8081-8083:8081-8083 -p 9092:9092 -p 9581-9585:9581-9585 landoop/fast-data-dev:cp3.3.0
docker confluent:
Step 1: Download and Start Confluent Platform Using Docker
- Clone the confluentinc/cp-all-in-one GitHub repository.
- cd cp-all-in-one
- git checkout 6.0.0-post
- cd cp-all-in-one
- docker-compose up -d
- docker-compose ps Navigate to the Control Center web interface at http://localhost:9021.
Docker opscenter:
docker run -e DS_LICENSE=accept -d -p 8888:8888 --name my-opscenter datastax/dse-opscenter
Docker postgres:
docker run --name my-postgres -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -p 54320:5432 postgres:12
psql -h localhost -p 5432 -d postgres -U user --password password
docker exec -it my-postgres bash
kafka commands:
#List all topics kafka-topics --list --zookeeper localhost:2181
#List specific topic kafka-topics --list --zookeeper localhost:2181 --topic newtesttopic
#Create topic kafka-topics --create --zookeeper localhost:2181 --topic newtesttopic --partitions 3 --replication-factor 1
#Describe topic kafka-topics --describe --zookeeper localhost:2181 --topic newtesttopic
#Console consumer kafka-console-consumer --bootstrap-server localhost:9092 --topic testtopic --from-beginning
#Console Producer kafka-console-producer --broker-list localhost:9092 --topic testtopic
#To check lag of the consumer group kafka-consumer-groups --bootstrap-server localhost:9092 --describe --group=group_name
#Configs change kafka-topics --zookeeper localhost:2181 --alter --topic newtesttopic --config retention.ms=1