jacoco for Map reduce

21 views
Skip to first unread message

bhaska...@gmail.com

unread,
Jan 19, 2017, 2:05:06 PM1/19/17
to JaCoCo and EclEmma Users
Hi

We want to use jacoco as to test simple WordCount code ,which Map reduce job.
Below is the following command
hadoop jar wordcount-0.0.1-SNAPSHOT.jar com.test.wordcount.App -Dmapred.map.tasks=1 -Dmapred.reduce.tasks=1 -Dmapred.map.child.java.opts="'-javaagent:jacocoagent.jar=destfile=/tmp/jacoco.exec'" -Dmapred.reduce.child.java.opts="'-javaagent:jacocoagent.jar=destfile=/tmp/12jacoco.exec'" -Dmapreduce.job.cache.files="hdfs://namenode:8020/tmp/rana/jacocoagent.jar"
As it create file "jacoco.exe" in the mapper and reducer node ( different machines ).
We need this in one place . As what are the things need to run in tcp mode ( server/client) . We want to execute this as command line .
Kindly assist .

Regards
Bhaskar Rana

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages