wmr-site.xml
:
<property>
<name>wmr.tests.allow</name>
<value>true</value>
</property>
<property>
<name>wmr.tests.su.cmd</name>
<value>/usr/bin/sudo -Enu test-job-user
${cmd}</value>
</property>
${cmd}
in the wmr.tests.su.cmd
property with the path to the mapper or reducer executable.
$cd $WMR_HOME
$bin/stop-wmr.sh
$bin/start-wmr.sh