Local tests logging to log4j

2014-10-07 Thread Debasish Das
Hi, I have added some changes to ALS tests and I am re-running tests as: mvn -Dhadoop.version=2.3.0-cdh5.1.0 -Phadoop-2.3 -Pyarn -DwildcardSuites=org.apache.spark.mllib.recommendation.ALSSuite test I have some INFO logs in the code which I want to see on my console. They work fine if I add

Re: Local tests logging to log4j

2014-10-07 Thread Sean Owen
What has worked for me is to bundle log4j.properties in the root of the application's .jar file, since log4j will look for it there, and configuring log4j will turn off Spark's default log4j configuration. I don't think conf/log4j.properties is going to do anything by itself, but

Re: Local tests logging to log4j

2014-10-07 Thread Debasish Das
Thanks Sean...trying them out... On Tue, Oct 7, 2014 at 12:24 PM, Sean Owen so...@cloudera.com wrote: What has worked for me is to bundle log4j.properties in the root of the application's .jar file, since log4j will look for it there, and configuring log4j will turn off Spark's default log4j