Greetings to all, Is it possible to invoke a MapReduce job from another java class using the runtime command? If not, what are the alternatives?
Here is a sample code snippet:
public static void main(String[] args) {
Runtime rt = Runtime.getRuntime();
try {
Process p = rt.exec("yarn jar /opt/yarn/my_examples/AvgSeven.jar
-Dtest=\"9999\" /user/yarn/input/samplefile.csv output");
} catch (IOException e) {
e.printStackTrace();
}
Regards,
Ista
