Generally, users write MapReduce code in their local machine using their preferred IDE like Eclipse, IntelliJ etc, unit test it, build the JAR, upload it to CloudxLab and execute it there
Please go through these videos and assessments to learn how to write and execute MapReduce jobs on CloudxLab.