I have java class implementing Runnable and instantiating kafka consumer in bluemix. This class is throwing below exception when trying to instantiate KafkaConsumer
. The jaas.conf
file is stored in a shared directory. This was working fine for the past 1 month. It started throwing this error today. I do not remember making any changes to my code. I am using kafka-client 0.9.0.0. I also tried with kafka client 0.9.0.1 with same result.
org.apache.kafka.common.KafkaException:
java.lang.IllegalArgumentException: Could not find a
'KafkaClient' entry in `/home/vcap/app/wlp/usr/shared/config/lib
/global/jaas.conf`.
The file jaas.conf is present at the location it is looking for and has following content in it.
KafkaClient {
com.ibm.messagehub.login.MessageHubLoginModule required
serviceName="kafka"
username="xxxxxxx"
password="xxxxxxx"
};