Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redis Sink Connector error (QuickStart document)

See original GitHub issue

I’d like to use redis sink connector and follow this instruction but the connector error and cannot sink to redis (error below)

# kafka-avro-console-producer --broker-list localhost:9092 --topic redistopic --property value.schema='{"type":"record","name":"User","namespace":"com.datamountaineer.strea mreactor.connect.redis","fields":[{"name":"firstName","type":"string"},{"name":"lastName","type":"string"},{"name":"age","type":"int"},{"name":"salary","type":"double"}]}' SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/confluent/share/java/kafka-serde-tools/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/confluent/share/java/schema-registry/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] {"firstName": "John", "lastName": "Smith", "age":30, "salary": 4830}

after use kafka-avro-console-producer and input sample data the connector will fail

Task 0 is FAILED

connector.class com.datamountaineer.streamreactor.connect.redis.sink.RedisSinkConnector connect.redis.sink.kcql INSERT INTO TABLE1 SELECT * FROM redis-topic task.class com.datamountaineer.streamreactor.connect.redis.sink.RedisSinkTask topics redis-topic tasks.max 1 connect.redis.connection.port 6379 name RedisSinkConnector [Redis IP] TRACE:

org.apache.kafka.connect.errors.ConnectException: Exiting WorkerSinkTask due to unrecoverable exception. at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages( at org.apache.kafka.connect.runtime.WorkerSinkTask.poll( at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration( at org.apache.kafka.connect.runtime.WorkerSinkTask.execute( at org.apache.kafka.connect.runtime.WorkerTask.doRun( at at java.util.concurrent.Executors$ at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at

Could you please suggest me how to solve this and how to use redis sink connector?

PS. cassandra sink work properly, I try to reconfigure/reinstall manually and try to use fast-data-dev docker but still same error

Thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

stheppicommented, Jun 1, 2017

There is a problem with the connector. It builds the key on the transformed struct, which in this case is just containing age ( Select age from redistopic PK firstName). Until we fix this you need to add the field for your key in the Select fields. For example : select age, firstName from redistopic PK firstName

devhatoricommented, Jun 2, 2017

@stheppi @Antwnis Thank you for your advice, now I can sink to redis with landoop container when I added ‘PK firstName’ to kcql. I’ll reinstall production server again.

thank you so much again!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redis Sink Connector for Confluent Cloud Quick Start
This is a Quick Start for the managed cloud connector. ... The Kafka Connect Redis Sink connector for Confluent Cloud is used to...
Read more >
Redis Sink
This Redis sink connector allows you to write messages from Kafka to Redis. ... These error polices allow you to control the behaviour...
Read more >
Quickstart | Couchbase Docs
Couchbase Sink Connector. Now let's talk about the sink connector, which reads messages from one or more Kafka topics and writes them to...
Read more >
RHEA-2022:5682 - Product Enhancement Advisory
Debezium connectors in version 1.9.4 are now available for Red Hat ... (redis sink); DBZ-3710 - Invalid default value error on captured ...
Read more >
Create a Redis®* stream reactor sink connector by
Define a Kafka Connect configuration file#. Define the connector configurations in a file (we'll refer to it with the name redis_sink.json ) with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found