--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/682cdc63-70f9-4ee1-8e5a-6729cfc96012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
p.put(StreamsConfig.APPLICATION_ID_CONFIG, "testApp")
p.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092")
p.put(StreamsConfig.NUM_STANDBY_REPLICAS_CONFIG, "1")
p.put(StreamsConfig.REPLICATION_FACTOR_CONFIG, "1")
p.put(StreamsConfig.NUM_STREAM_THREADS_CONFIG, "1")
p.put(StreamsConfig.APPLICATION_SERVER_CONFIG, s"$apiHost:$apiPort")
We create the state store as follows.
Stores.create("TestStateStore")
.withKeys(stringSerde)
.withValues(jsonFormatSerde[T])
.inMemory()
.build()
.asInstanceOf[StateStoreSupplier[KeyValueStore[_,_]]]
Hi,Which version of streams are you using?Can you provide some code?Thanks,Damian
On Mon, 4 Sep 2017 at 11:26 Hari Thiruppathi <harithi...@gmail.com> wrote:
Hi,--We are using Kafka Streams to process an events stream and build an in-memory state store to serve processed data. We run the streams against 2 topics, with 4 partitions each. I am running it on my laptop with 2 kafka brokers and replication factor for both the source topics and internal topics set to 1. We try to create 3 in memory state stores with standby replicas set to 1. We also built an API on top of this to serve data from the in memory state store. When we bring up the first instance of our streams app, everything seems to work fine. Once the second instance is started, the streams break in both instances with the following error.[ERROR] stream-thread [StreamThread-1] Streams application error during processing:java.lang.IllegalStateException: Consumer is not subscribed to any topics or assigned any partitionsat org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:989)at org.apache.kafka.streams.processor.internals.StreamThread.maybeUpdateStandbyTasks(StreamThread.java:723)at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:648)at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:361)[error] (StreamThread-1) java.lang.IllegalStateException: Consumer is not subscribed to any topics or assigned any partitionsThis doesn't happen when we specify the state store as a persistent.RegardsHari
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.