Re: using Log4j to log INFO level messages on workers

2014-06-04 Thread Shivani Rao
Hello Alex Thanks for the link. Yes creating a singleton object for logging outside the code that gets executed on the workers definitely works. The problem that i am facing though is related to configuration of the logger. I don't see any log messages in the worker logs of the application. a) wh

Re: using Log4j to log INFO level messages on workers

2014-06-02 Thread Alex Gaudio
Hi, I had the same problem with pyspark. Here's how I resolved it: What I've found in python (not sure about scala) is that if the function being serialized was written in the same python module as the main function, then logging fails. If the serialized function is in a separate module, then

using Log4j to log INFO level messages on workers

2014-06-02 Thread Shivani Rao
Hello Spark fans, I am trying to log messages from my spark application. When the main() function attempts to log, using log.info() it works great, but when I try the same command from the code that probably runs on the worker, I initially got an serialization error. To solve that, I created a new