Simple but useful. While running jUnit during development people see warning log4j appenders could not be found and it doesn't print the log4j statments like log.debug or log.info.
Developer generally put the sysout statements or using debug mode to see the values and the flows.
One of the way is to create a basic template for log4j property or xml file and load it in the setup method.
The other easiest way to add a single line in the setup method. Log4j libs should be there in the classpath.
/* This will initialize the basic log4j configurations */
BasicCongfigurator.configure();
1 comment:
hadoop jar mahout-core-0.9.0.2.1.1.0-385-job.jar org.apache.mahout.cf.taste.hadoop.similarity.item.ItemSimilarityJob --input /apps/mahout_input/temp.tsv --output /apps/mahout_output --similarityClassname SIMILARITY_LOGLIKELIHOOD --maxSimilaritiesPerItem 5
for item item recommendation
Post a Comment