I am trying to follow these instructions for connecting locally to my heroku kafka using kafkacat: https://gist.github.com/crcastle/cb21c2148fc57ad89753bf28b561d910
I am creating an env file like this:
heroku config -s > .env
and then running this script to try to listen
#! /usr/bin/env bash
set -e
source .env
kafkacat -C -t ${KAFKA_PREFIX}test-topic -b $KAFKA_URL \
-X security.protocol=ssl \
-X ssl.key.location=<(echo $KAFKA_CLIENT_CERT_KEY) \
-X ssl.ca.location=<(echo $KAFKA_TRUSTED_CERT) \
-X ssl.certificate.location=<(echo $KAFKA_CLIENT_CERT)
Then I get this error:
% ERROR: Failed to create producer: ssl.ca.location failed: No error
Funny thing is it says producer even though I am trying to consume.
I can produce and consume from the same topic using
heroku kafka:topics:write test-topic "test 1"
and
heroku kafka:topics:tail test-topic