redhat-gpe / rhte2018_operational_intelligence

1 stars 2 forks source link

Upgrade lab to AMQ Streams 1.0 GA #36

Open nandanj opened 6 years ago

nandanj commented 6 years ago

https://access.redhat.com/products/red-hat-amq-streams has the images and installation documentation. Ensure that we are going off the GA images.

nandanj commented 5 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

nandanj commented 5 years ago

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