# Help getting POC working-Control Center won't connect to Kafka

**URL:** <https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005>\
**Category:** Ops\
**Created:** [26 January 2022 21:46 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005 "2022-01-26T21:46:04Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [28 January 2022 06:44 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/22 "2022-01-28T06:44:41Z")

</div>

> [@pebriggs](#):
>
> We should be able to run Zookeeper, Kafka, and Control Center on the same machine right? Using localhost for all the host names?

yes this should work  
but again: does kafka and zookeeper run properly before you try to start the control-center?

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [28 January 2022 07:42 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/23 "2022-01-28T07:42:36Z")

</div>

check these basic config files, should work for a single node setup

> **[kafka-ops/etc/single\_node\_setup\_with\_control\_center at master ·...](https://github.com/mmuehlbeyer/kafka-ops/tree/master/etc/single_node_setup_with_control_center)**
>
> master/etc/single\_node\_setup\_with\_control\_center

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [28 January 2022 16:29 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/24 "2022-01-28T16:29:21Z")

</div>

Trying these configs right now…first issue was wrong cluster in meta.properties…is it ok to delete this file or is there a better process?

This worked!!! Dude, you are the man! Now to get Debezium working!

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [31 January 2022 16:42 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/25 "2022-01-31T16:42:00Z")

</div>

So it looks like we have things running…feels like removing all the license stuff and setting that ONE value to localhost, even though the comment says it should not be localhost, got us working.

Now we have to figure out how to use the Debezium SQL connector and it must use Windows Authentication to connect to SQL…any thoughts on that?  
Do we configure Kafka? Kafka Connect? Or just the Debezium connector? We have to use windows auth for the connector to connect to SQL.

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [1 February 2022 08:20 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/26 "2022-02-01T08:20:44Z")

</div>

basically you need Kafka connect yes

I’m not the super debezium specialist but though according to the docs you should be able to configure Kerberos auth

[https://debezium.io/documentation/reference/stable/connectors/sqlserver.html#debezium-sqlserver-connector-pass-through-database-driver-configuration-properties](https://debezium.io/documentation/reference/stable/connectors/sqlserver.html#debezium-sqlserver-connector-pass-through-database-driver-configuration-properties)

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [1 February 2022 15:11 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/27 "2022-02-01T15:11:36Z")

</div>

Ok working on that now…currently our Control Center is showing unhealthy cluster due to topic named confluent telemetry metrics…we disabled self balancing as we only have one node but unsure why we are getting this message. Thoughts?

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [1 February 2022 15:31 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/28 "2022-02-01T15:31:34Z")

</div>

you could disable telemetry metrics  
with setting `confluent.reporters.telemetry.auto.enable` in server.properties  
to false

[https://docs.confluent.io/platform/current/installation/configuration/broker-configs.html#brokerconfigs\_confluent.reporters.telemetry.auto.enable](https://docs.confluent.io/platform/current/installation/configuration/broker-configs.html#brokerconfigs_confluent.reporters.telemetry.auto.enable)

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [1 February 2022 15:32 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/29 "2022-02-01T15:32:47Z")

</div>

We could but we want to see these metrics to ensure our stuff is working.

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [1 February 2022 15:44 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/30 "2022-02-01T15:44:45Z")

</div>

so I would recommend to check the replication factor of the topic and change it to 1

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [1 February 2022 16:33 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/31 "2022-02-01T16:33:00Z")

</div>

Ok we were able to resolve…now we are stuck trying to get the Debezium connector to connect to our SQL server via integrated security. Right now it fails with the following:  
Connector configuration is invalid and contains the following 2 errors:  
A value is required  
A value is required

Super specific error message

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [1 February 2022 17:25 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/32 "2022-02-01T17:25:58Z")

</div>

We got it…documentation is not thorough at all…added the two history properties and working now…connector is pulling data into the topic.

Now for the target!

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [3 February 2022 15:11 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/33 "2022-02-03T15:11:03Z")

</div>

Ok so we have made some progress but now we are stuck…you have helped us so much, hoping you can bring us to the finish line…we have the snapshot working as well as CDC changes flowing into a topic…the issue now is our JDBC sink connector…when we fire that up we get an error…

```auto
Error: Sink connector 'portfoliogrpmanconfigtarget' is configured with 'delete.enabled=false' and 'pk.mode=record_key' and therefore requires records with a non-null Struct value and non-null Struct schema, but found record at (topic='dbo.GroupMember',partition=0,offset=0,timestamp=1643844482140) with a String value and string value schema. (org.apache.kafka.connect.runtime.WorkerSinkTask:636)
org.apache.kafka.connect.errors.ConnectException: Sink connector 'portfoliogrpmanconfigtarget' is configured with 'delete.enabled=false' and 'pk.mode=record_key' and therefore requires records with a non-null Struct value and non-null Struct schema, but found record at (topic='GroupMember',partition=0,offset=0,timestamp=1643844482140) with a String value and string value schema.

```

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [3 February 2022 15:30 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/34 "2022-02-03T15:30:21Z")

</div>

could you share your connector configuration?

and some links for further reading:

> <https://stackoverflow.com/questions/61186281/kafka-connect-caused-by-org-apache-kafka-connect-errors-connectexception-pk>

> <https://stackoverflow.com/questions/61079658/kafka-confluent-how-to-use-pk-mode-record-key-for-upsert-and-delete-mode-in-jdb>

blog post by @rmoff

> **[Kafka Connect JDBC Sink deep-dive: Working with Primary Keys](https://rmoff.net/2021/03/12/kafka-connect-jdbc-sink-deep-dive-working-with-primary-keys/)**

hth,  
michael

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [3 February 2022 15:59 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/35 "2022-02-03T15:59:41Z")

</div>

```auto
bootstrap.servers=localhost:9092
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
key.converter.schemas.enable=true
value.converter.schemas.enable=true
offset.storage.file.filename=/tmp/connect.offsets
offset.flush.interval.ms=10000
plugin.path=/usr/share/java,/devkafka/confluent-7.0.1/share/confluent-hub-components

```

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [4 February 2022 06:26 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/36 "2022-02-04T06:26:21Z")

</div>

thx and your connector config?

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [4 February 2022 14:55 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/37 "2022-02-04T14:55:07Z")

</div>

Ok so we started up the schema registry service, changed our connector to use Avro and we are successfully sending rows from the source into a topic. The issue now is getting the rows from the topic into the target.  
Here is our sink config:

```auto
name=portfoliogrpmanconfigtargetlatestv10
connector.class=io.confluent.connect.jdbc.JdbcSinkConnector
tasks.max=1
connection.url=jdbc:sqlserver://server;databaseName=PortfolioManager;integratedSecurity=true;authenticationScheme=JavaKerberos
table.include.list=GroupMember
topics=server.dbo.GroupMember
key.converter= io.confluent.connect.avro.AvroConverter
value.converter=io.confluent.connect.avro.AvroConverter
key.converter.schema.registry.url=http://localhost:8081
value.converter.schema.registry.url=http://localhost:8081
delete.enabled=true
insert.mode=upsert
batch.size=10000
table.name.format=GroupMember
pk.mode=record_key
pk.fields=GroupID,MemberGroupID

```

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [4 February 2022 17:54 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/38 "2022-02-04T17:54:00Z")

</div>

Here is what we are getting now…it is like it is trying to add a column bc the source table or schema has it? But it doesn’t

```auto
Unable to find fields [SinkRecordField{schema=Schema{io.debezium.connector.sqlserver.Source:STRUCT}, name='source', isPrimaryKey=false}, SinkRecordField{schema=Schema{STRUCT}, name='transaction', isPrimaryKey=false}, SinkRecordField{schema=Schema{server.sddev.lpl.com.dbo.GroupMember.Value:STRUCT}, name='before', isPrimaryKey=false}, SinkRecordField{schema=Schema{INT64}, name='ts_ms', isPrimaryKey=false}, SinkRecordField{schema=Schema{server.sddev.lpl.com.dbo.GroupMember.Value:STRUCT}, name='after', isPrimaryKey=false}, SinkRecordField{schema=Schema{STRING}, name='op', isPrimaryKey=false}] among column names [MemberGroupID, SortOrder, GroupID] (io.confluent.connect.jdbc.sink.DbStructure:276)
[2022-02-04 07:14:21,658] ERROR [portfoliogrpmanconfigtargetlatestv11|task-0] WorkerSinkTask{id=portfoliogrpmanconfigtargetlatestv11-0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. Error: Cannot ALTER TABLE "dbo"."GroupMember" to add missing field SinkRecordField{schema=Schema{io.debezium.connector.sqlserver.Source:STRUCT}, name='source', isPrimaryKey=false}, as the field is not optional and does not have a default value (org.apache.kafka.connect.runtime.WorkerSinkTask:636)
io.confluent.connect.jdbc.sink.TableAlterOrCreateException: Cannot ALTER TABLE "dbo"."GroupMember" to add missing field SinkRecordField{schema=Schema{io.debezium.connector.sqlserver.Source:STRUCT}, name='source', isPrimaryKey=false}, as the field is not optional and does not have a default value
        at io.confluent.connect.jdbc.sink.DbStructure.amendIfNecessary(DbStructure.java:182)
        at io.confluent.connect.jdbc.sink.DbStructure.createOrAmendIfNecessary(DbStructure.java:83)

```

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [7 February 2022 07:22 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/39 "2022-02-07T07:22:02Z")

</div>

Hi @pebriggs  
seems to be related to:

> [@pebriggs](#):
>
> `Error: Cannot ALTER TABLE “dbo”.“GroupMember” to add missing field SinkRecordField{schema=Schema{io.debezium.connector.sqlserver.Source:STRUCT}, name=‘source’, isPrimaryKey=false}, as the field is not optional and does not have a default value (org.apache.kafka.connect.runtime.WorkerSinkTask:636)`

seems as there is difference in your schema and target table see also

> <https://stackoverflow.com/questions/46596176/kafka-connect-cannot-alter-to-add-missing-field-sinkrecordfieldschema-schema>

---

<div class="post-metadata">

**Author:** ![pebriggs](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pebriggs](https://forum.confluent.io/u/pebriggs)\
**Post date:** [7 February 2022 14:44 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/40 "2022-02-07T14:44:23Z")

</div>

We finally got things working but we had to add a bunch of transforms and column whitelist. It’s like the topic had schema had more data than we needed so we had to specify what we want extracted and written to target.  
Thanks so much for your help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [14 February 2022 14:44 UTC](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005/41 "2022-02-14T14:44:30Z")

</div>

Closed on 14 February 2022 14:44 UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.confluent.io/t/help-getting-poc-working-control-center-wont-connect-to-kafka/4005.md?page=1)
