Re: Logging failing, tried the troubleshoot steps already
It will enable by default if ignite-log4j module is added to classpath. I would check that this is actually the case first, probably you missed something and it was not properly added. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Logging-failing-tried-the-troubleshoot-steps-already-tp7882p7928.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Logging failing, tried the troubleshoot steps already
I thought the purpose of using log4j was to avoid the steps in that link? The link I included says "you can either add ignite-log4j module to the list of the used jars so that Ignite would use Log4j as a logging subsystem, or alter default Spark classpath as described here." Does "adding it to the list of used jars" mean something other than adding it to the pom? I've added it to the pom and that doesn't seem to be doing anything. The error is the same before and after adding the log4j jar, doesn't seem to have changed anything. This is the runtime error, not a build error. I'm assuming I missed some important step in activating log4j, I just don't know what "adding it to the list of used jars" means, if not adding it to the pom. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Logging-failing-tried-the-troubleshoot-steps-already-tp7882p7895.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Logging failing, tried the troubleshoot steps already
Hi, First of all, you need not only the ignite-log4j jar, but the whole ignite-log4j module with dependencies. Refer to [1] for details. Also as far as I understand, the log4j did replaced the Java logger and you got a different error. Is this right? If so, you should probably just configure log4j properly. Refer to log4j docs for this. [1] http://apacheignite.gridgain.org/v1.2/docs/installation--deployment -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Logging-failing-tried-the-troubleshoot-steps-already-tp7882p7894.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Logging failing, tried the troubleshoot steps already
I'm trying to implement caching using ignite, and when I start it up (Ignition.start) it throws an error: Can't load log handler "org.apache.ignite.logger.java.JavaLoggerFileHandler" java.lang.ClassNotFoundException: org.apache.ignite.logger.java.JavaLoggerFileHandler java.lang.ClassNotFoundException: org.apache.ignite.logger.java.JavaLoggerFileHandler The help docs say to simply add the ignite-log4j jar (http://apacheignite.gridgain.org/v1.2/docs/troubleshooting), which I added to my pom, but it's still throwing the same error. I noticed an exception is the build that it didn't have a log4j configuration, so I added that file which got rid of that exception, but we're still getting the "can't load log handler" exception, and still not seeing ignite in the logs. I looked at the alternate troubleshoot steps, but I have no idea what my SPARK_HOME is supposed to be. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Logging-failing-tried-the-troubleshoot-steps-already-tp7882.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.