message-hub

Timeout connecting to message-hub on Bluemix

北城余情 提交于 2019-12-10 19:12:55
问题 I'm trying to connect to a Message Hub Service. I can connect if I use the REST API but when I try to connect from my Java program there's always a timeout I'm using the next configuration: Properties producerProps = new Properties(); producerProps.put(SslConfigs.SSL_PROTOCOL_CONFIG, "TLSv1.2"); producerProps.put(SslConfigs.SSL_ENABLED_PROTOCOLS_CONFIG, "TLSv1.2"); producerProps.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, "/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre

Consumer Stuck in Re-join

风流意气都作罢 提交于 2019-12-04 22:55:24
问题 I've read other threads and I've gotten around the problem by using a new group ID, however I'd like to understand what could cause this. I have a topic with 16 partitions, I've set session.timeout.ms=30000, and max.poll.interval.ms=30000000. I run my program, and ctrl+c it, so it's not closing properly. After I guess, 16 times, I get stuck in this re-join issue. session.timeout.ms is the heartbeat timeout, so after 30 seconds it should kick my consumer right and my partitions should "free up

Can I call the Bluemix message hub service from Python?

依然范特西╮ 提交于 2019-12-04 05:07:01
问题 The kafka-python client supports Kafka 0.9 but doesn't obviously include the new authentication and encryption features so my guess is that it only works with open servers (as in previous releases). In any case, even the Java client needs a special message hub login module to connect (or so it would seem from the example) which suggests that nothing will work unless there is a similar module available for Python. My specific scenario is that I want to use the message hub service from a

When does the Apache Kafka client throw a “Batch Expired” exception?

梦想的初衷 提交于 2019-11-27 06:53:34
Using the Apache Kafka Java client (0.9), I'm trying to send a long series of records to the broker using the Kafka Producer class . The asynchronous send method returns immediately for a while, then starts blocking on each call for a short time period. After around thirty seconds, the client starts throwing exceptions ( TimeoutException ), with the message "Batch expired" . What circumstances cause this exception to be thrown? This exception indicates you are queueing records at a faster rate than they can be sent. When you call the send method, the ProducerRecord will be stored in an

When does the Apache Kafka client throw a “Batch Expired” exception?

怎甘沉沦 提交于 2019-11-26 12:39:32
问题 Using the Apache Kafka Java client (0.9), I\'m trying to send a long series of records to the broker using the Kafka Producer class. The asynchronous send method returns immediately for a while, then starts blocking on each call for a short time period. After around thirty seconds, the client starts throwing exceptions (TimeoutException), with the message \"Batch expired\" . What circumstances cause this exception to be thrown? 回答1: This exception indicates you are queueing records at a