Open nandanj opened 6 years ago
If we use a VM of the AMQ OCP VM flavor, then the following should suffice to get Kafka up and running on it.
To install AMQ Streams, download and extract the install_and_examples.zip file from the AMQ Streams download site [https://access.redhat.com/node/3596931/423/1]
% oc new-project kafkaproject % sed -i 's/namespace: ./namespace: kafkaproject/' install/cluster-operator/RoleBinding*.yaml % oc apply -f install/cluster-operator -n kafkaproject % oc get pods -w % oc apply -f examples/templates/cluster-operator/ -n kafkaproject % oc apply -f examples/kafka/kafka-persistent.yaml % oc apply -f examples/kafka-connect/kafka-connect.yaml % oc get po
Simple test to check the Kafka deployment
% oc run kafka-producer -ti --image=registry.access.redhat.com/amqstreams-1/amqstreams10-kafka-openshift:1.0.0 --rm=true --restart=Never -- bin/kafka-console-producer.sh --broker-list my-cluster-kafka-bootstrap:9092 --topic mytopic
% oc run kafka-consumer -ti --image=registry.access.redhat.com/amqstreams-1/amqstreams10-kafka-openshift:1.0.0 --rm=true --restart=Never -- bin/kafka-console-consumer.sh --bootstrap-se rver my-cluster-kafka-bootstrap:9092 --topic mytopic --from-beginning
https://access.redhat.com/products/red-hat-amq-streams has the images and installation documentation. Ensure that we are going off the GA images.