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