2

I need to set a 'group.id' property in my KSQL application.

I know that is possible in Kafka Stream application by 'application.id' property, but it dosn't work for KSQL.

1 Answers1

1

I think you're looking for ksql.service.id. Ref: https://docs.confluent.io/current/ksql/docs/faq.html#how-do-i-add-ksql-servers-to-an-existing-ksql-cluster

Robin Moffatt
  • 30,382
  • 3
  • 65
  • 92
  • From documentation, I found "If multiple KSQL servers connect to the same Kafka cluster (i.e. the same bootstrap.servers) and have the same ksql.service.id they will form a KSQL cluster and share the workload", but I need to set up consumer group ID for the single KSQL continuous query. – Marco Catalano Jun 28 '19 at 14:39
  • The use case is: 1) start the query 2) terminate and drop query 3) re-start the same query (i need to re-start from last committed offset, not from earliest/latest) – Marco Catalano Jun 28 '19 at 14:41
  • 1
    That's not currently possible with KSQL – Robin Moffatt Jul 04 '19 at 11:02
  • 1
    @RobinMoffatt Is this feature on KSQL's roadmap? Restoring the query from the last committed offset seems a rather common use case. – Lucas Cardozo Mar 03 '20 at 21:08
  • @RobinMoffatt is that use case possible now with ksql? – iamabhaykmr Jan 28 '21 at 16:18
  • updated link https://docs.confluent.io/platform/current/ksqldb/faq.html#how-do-i-add-ksqldb-servers-to-an-existing-ksqldb-cluster – Sergei Vavilov Jul 15 '22 at 03:17