I am trying to use "PUT" method in json to an existing kafka connector and trying to blacklist two tables.(using postman)
{
"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
"table.blacklist": [{"name":abc", "type": "string"
"name":"def", "type": "string"}],
}
I tried to pass as a list, also tried without square brackets i am getting an error . Tried passing as a string still same error .
my question is how to pass two variables as list in json
Error:
-08-01 02:07:04,627] WARN (org.eclipse.jetty.servlet.ServletHandler:620)
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token
at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@68885dec; line: 2, column: 68] (through reference chain: java.util.LinkedHashMap["table.blacklist"])
at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/e3439628-be40-4d59-b3f0-33a258e40260%40googlegroups.com.
The REST API accepts JSON, but the actual set of configs are always string -> string. Lists are represented as comma separated strings, so you want"table.blacklist": "abc,def"-Ewen
On Tue, Aug 1, 2017 at 6:50 AM, tt11 <kswath...@gmail.com> wrote:
tried like this also
"table.blacklist": ["abc", "def" ],
On Tuesday, August 1, 2017 at 9:42:04 AM UTC-4, tt11 wrote:I am trying to use "PUT" method in json to an existing kafka connector and trying to blacklist two tables.(using postman)
{"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector", "table.blacklist": [{"name":abc", "type": "string"
"name":"def", "type": "string"}], }
I tried to pass as a list, also tried without square brackets i am getting an error . Tried passing as a string still same error .
my question is how to pass two variables as list in json
Error:
-08-01 02:07:04,627] WARN (org.eclipse.jetty.servlet.ServletHandler:620) javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@68885dec; line: 2, column: 68] (through reference chain: java.util.LinkedHashMap["table.blacklist"]) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/e3439628-be40-4d59-b3f0-33a258e40260%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/228fb910-ac5b-40da-912c-ed979e402c30%40googlegroups.com.