Kafka Connect 0.11 / 3.3.0 docker has a LOT of WARN at start

360 visualizzazioni
Passa al primo messaggio da leggere

Stephane Maarek

da leggere,
20 ago 2017, 21:50:3020/08/17
a Confluent Platform
It seems that due to the new plugins capabilities, a lot of the reflection is failing. I'm not sure of the extent of the impact, and if the problems lies with Kafka connect code itself, or the way the confluent docker image is packed up.



echo "===> Launching ... "
+ echo '===> Launching ... '
===> Launching ...
exec /etc/confluent/docker/launch
+ exec /etc/confluent/docker/launch
===> Launching kafka-connect ...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/share/java/kafka/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.
class]
SLF4J: Found binding in [jar:file:/usr/share/java/kafka-connect-hdfs/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticL
oggerBinder.class]

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[2017-08-21 01:41:14,927] WARN could not create Vfs.Dir from url. ignoring the exception and continuing (org.reflect
ions.Reflections)
org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/usr/sh
are/java/confluent-support-metrics/*]
either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlT
ype> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
                 at org.reflections.vfs.Vfs.fromURL(Vfs.java:109)
        at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
        at org.reflections.Reflections.scan(Reflections.java:240)
        at org.reflections.Reflections.scan(Reflections.java:202)
        at org.reflections.Reflections.<init>(Reflections.java:123)
        at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanPluginPath(DelegatingClassLoader.jav
a:221)
        at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanUrlsAndAddPlugins(DelegatingClassLoa
der.java:198)
        at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.initLoaders(DelegatingClassLoader.java:1
59)
        at org.apache.kafka.connect.runtime.isolation.Plugins.<init>(Plugins.java:47)

        at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:63)
[2017-08-21 01:41:16,982] WARN could not create Vfs.Dir from url. ignoring the exception and continuing (org.reflect
ions.Reflections)
org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/etc/ka
fka-connect/jars/*]
either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlT
ype> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
        at org.reflections.vfs.Vfs.fromURL(Vfs.java:109)
        at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
        at org.reflections.Reflections.scan(Reflections.java:240)
        at org.reflections.Reflections.scan(Reflections.java:202)
        at org.reflections.Reflections.<init>(Reflections.java:123)
        at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanPluginPath(DelegatingClassLoader.jav
a:221)
        at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanUrlsAndAddPlugins(DelegatingClassLoa
der.java:198)
        at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.initLoaders(DelegatingClassLoader.java:1
59)
        at org.apache.kafka.connect.runtime.isolation.Plugins.<init>(Plugins.java:47)
        at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:63


Etc etc... getting a ton of those. 

Konstantine Karantasis

da leggere,
21 ago 2017, 12:44:5021/08/17
a confluent...@googlegroups.com

Currently, the log4j properties template for the connect image does not have a setting that defaults to ERROR level for org.reflections (as is the case in the log4j properties in AK).

Currently, this is solved by explicitly adding

-e CONNECT_LOG4J_LOGGERS=org.reflections=ERROR

to your docker run command that starts Connect.
 
I have updated the docs to mention this additional parameter, and the changes will be reflected shortly here:

http://docs.confluent.io/current/cp-docker-images/docs/quickstart.html#installing-running-docker

- Konstantine 


--
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/d0ac152e-e060-4880-bca1-22777ab86472%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephane Maarek

da leggere,
21 ago 2017, 20:16:1921/08/17
a Confluent Platform
Thanks Konstantine. That's helpful, and yes should be included as default in the docker images as well. In the meantime I'll keep that environment variable solution, thanks!
To post to this group, send email to confluent...@googlegroups.com.
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi