mirror of https://github.com/apache/druid.git
allow Kafka consumer group.id to be overriden by config (#3765)
This commit is contained in:
parent
6386e6a4dc
commit
7f087cdd3b
|
@ -594,11 +594,13 @@ public class KafkaSupervisor implements Supervisor
|
|||
private KafkaConsumer<byte[], byte[]> getKafkaConsumer()
|
||||
{
|
||||
final Properties props = new Properties();
|
||||
|
||||
props.setProperty("metadata.max.age.ms", "10000");
|
||||
props.setProperty("group.id", String.format("kafka-supervisor-%s", getRandomId()));
|
||||
|
||||
props.putAll(ioConfig.getConsumerProperties());
|
||||
|
||||
props.setProperty("enable.auto.commit", "false");
|
||||
props.setProperty("metadata.max.age.ms", "10000");
|
||||
props.setProperty("group.id", String.format("kafka-supervisor-%s", getRandomId()));
|
||||
|
||||
ClassLoader currCtxCl = Thread.currentThread().getContextClassLoader();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue