Posts

Showing posts with the label log4j

Maven Class path error multiple SLF4J bindings

Maven Class path error multiple SLF4J bindings I have been getting this error while trying to do a MAVEN INSTALL. I tried exclusions, but not sure the where to include in pom file. Let me how and what exclusion tags should i include in my pom file. I am also attaching my pom file snippet where to include the exclusions`SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/147188/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/147188/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.10.0/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] POM file: <!-- Start of required part to make log4j work --> <dependency> ...

Without log output in Heron cluster using AuroraScheduler

Image
Without log output in Heron cluster using AuroraScheduler I submitted a topology to Heron cluster using CustomAuroraScheduler that modified based on the default AuroraScheduler . For this scheduler, I just added one line code in this CustomAuroraScheduler as following: And I have successfully deployed this custom scheduler to Heron and submitted topology succeed. But I cannot find the output contents of this LOG.Info when submitted topology using --verbose parameter. Then, I tried to write this log contents to a specified .txt file , but also cannot create the .txt file. The output when submitted topology as following: Heron cluster CustomAuroraScheduler default AuroraScheduler LOG.Info --verbose .txt file yitian@heron01:~$ heron submit aurora/yitian/devel --config-path ~/.heron/conf ~/aurora-topolgoies/heron-java-streamlet-api-example-latest-jar-with-dependencies.jar zyt.custom.topology.aurora.AuroraMonitorSentenceWordCountTopology AuroraMonitorSentenceWordCountTopology --deploy-d...