Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # dev >> configuring log4j for unit tests


Copy link to this message
-
configuring log4j for unit tests
Hello All,

When I run hive unit tests, I always can find an error saying the class
of org.apache.hadoop.log.metrics.EventCounter can not be found. Seems the
reason is that in hadoop 0.20.2, the location of EventCounter is
org.apache.hadoop.metrics.jvm.EventCounter, so log4j should load the old
class.

The command I used for unit tests are...
ant very-clean package
ant test tar -logfile ant.log

I must missed something. Can you let me know the typical commands you used
to test all unit tests? Also, how can I change the conf of log4j, so unit
tests will load org.apache.hadoop.metrics.jvm.EventCounter instead
of org.apache.hadoop.log.metrics.EventCounter?

Thanks,

Yin
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB