Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Unable to use Kafka JDBC connector for MySQL connectivity

Rising Star

am getting below error when trying to run inbuilt kafka connector script .

command :- bin/connect-standalone.sh config/connect-standalone.properties config/connect-file-source.properties config/connect-file-sink.properties

error :-

[2017-06-12 13:46:10,282] DEBUG EXCEPTION (org.eclipse.jetty.servlet.ServletHandler:875) java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:331) at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392) at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177) at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369) at javax.servlet.GenericServlet.init(GenericServlet.java:241)

2 REPLIES 2

Rising Star

Please find the error currently i am getting

EBUG could not scan file logs/controller.log.2016-12-11-16 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,097] DEBUG could not scan file logs/controller.log.2017-04-14-07 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,097] DEBUG STARTED @1363ms org.eclipse.jetty.server.Slf4jRequestLog@c333c60 (org.eclipse.jetty.util.component.AbstractLifeCycle:177) [2017-06-20 10:04:18,097] DEBUG could not scan file logs/controller.log.2017-04-14-07 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,097] DEBUG STARTED @1363ms org.eclipse.jetty.server.handler.RequestLogHandler@11bd0f3b (org.eclipse.jetty.util.component.AbstractLifeCycle:177) [2017-06-20 10:04:18,098] DEBUG could not scan file logs/controller.log.2017-01-31-13 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,098] DEBUG STARTED @1363ms org.eclipse.jetty.server.handler.HandlerCollection@34f5090e[o.e.j.s.ServletContextHandler@7690781{/,null,AVAILABLE}, org.eclipse.jetty.server.handler.DefaultHandler@31e5415e, org.eclipse.jetty.server.handler.RequestLogHandler@11bd0f3b] (org.eclipse.jetty.util.component.AbstractLifeCycle:177) [2017-06-20 10:04:18,098] DEBUG could not scan file logs/controller.log.2017-01-31-13 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,098] DEBUG STARTED @1363ms org.eclipse.jetty.server.handler.StatisticsHandler@306f16f3 (org.eclipse.jetty.util.component.AbstractLifeCycle:177) [2017-06-20 10:04:18,098] DEBUG could not scan file logs/server.log.2016-10-20-19 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,098] DEBUG starting ServerConnector@7a3d45bd{HTTP/1.1}{0.0.0.0:8083} (org.eclipse.jetty.util.component.AbstractLifeCycle:185) [2017-06-20 10:04:18,098] DEBUG could not scan file logs/server.log.2016-10-20-19 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,098] DEBUG could not scan file logs/server.log.2016-11-12-17 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,099] DEBUG could not scan file logs/server.log.2016-11-12-17 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,099] DEBUG could not scan file logs/server.log.2017-06-08-22 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,099] DEBUG could not scan file logs/server.log.2017-06-08-22 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,099] DEBUG could not scan file logs/server.log.2016-12-27-07 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,099] DEBUG could not scan file logs/server.log.2016-12-27-07 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,100] DEBUG could not scan file logs/server.log.2017-05-25-13 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,100] DEBUG could not scan file logs/server.log.2017-05-25-13 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,100] DEBUG could not scan file logs/server.log.2016-12-20-02 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,100] DEBUG could not scan file logs/server.log.2016-12-20-02 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,100] DEBUG could not scan file logs/server.log.2017-04-13-03 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,100] DEBUG could not scan file logs/server.log.2017-04-13-03 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,101] DEBUG could not scan file logs/controller.log.2017-05-02-03 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,101] DEBUG could not scan file logs/controller.log.2017-05-02-03 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner SubTypesScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,101] DEBUG could not scan file logs/server.log.2017-04-13-00 in url file:/usr/hdp/2.5.3.0-37/kafka/ with scanner TypeAnnotationsScanner (org.reflections.Reflections:254) [2017-06-20 10:04:18,101] DEBUG could not scan file logs/server.log.2017-04-13-00 in url file:/usr/hdp/2.5.3.0-37

Guru

Hi @Bharadwaj Bhimavarapu , how did you solve the "java.lang.NoSuchMethodError" ?
I am facing the same in the HDP2.6 sandbox, trying to start connect-standalone