docker-compose exec -T cli bash << 'EOF'
echo "Altering number of partitions from 3 to 7..."
kafka-topics --bootstrap-server kafka:9092 --describe --topic test
-kafka-topics --bootstrap-server kafka:9092 --describe --topic test
kafka-topics --bootstrap-server kafka:9092 --alter --topic test --partitions 7
kafka-topics --bootstrap-server kafka:9092 --describe --topic test
EOF