kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhanuka ranasinghe <dhanuka.priyan...@gmail.com>
Subject Can't send json array as configuration
Date Tue, 04 Oct 2016 06:56:52 GMT
Hi All,

When trying to reconfigure kafka standalone connector I am getting below
Exception. Could you please help on this?

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not
deserialize instance of java.lang.String out of START_ARRAY token


Error payload:

{"connector.class":"org.apache.kafka.connect.socket.SocketSourceConnector",
"tasks.max":"4", "topics":"socket-test", "schema.name":"socketschema","
type.name":"kafka-connect","schema.ignore":"true", "tcp.port":"12345",
"batch.size":"2","events_stateTriggerId":["monitoredCIName","producer","stateTriggerId","locationCode"]
}




working payload:

{"connector.class":"org.apache.kafka.connect.socket.SocketSourceConnector",
"tasks.max":"4", "topics":"socket-test", "schema.name":"socketschema","
type.name":"kafka-connect","schema.ignore":"true", "tcp.port":"12345",
"batch.size":"2" }


Cheers,
Dhanuka
-- 
Nothing Impossible,Creativity is more important than knowledge.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message