Hi,
I executed my cluster by this way.

call a command in shell directly.

String runInCommand ="/opt/hadoop-0.21.0/bin/hadoop jar testCluster.jar example";

Process proc = Runtime.getRuntime().exec(runInCommand);
proc.waitFor();

BufferedReader in = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
for (String str; (str = in.readLine()) != null;)
    System.out.println(str);

System.exit(0);

but, in a hadoop script, it calls the RunJar() class to deploy testCluster.jar file. isn't it?

is there more smarter way to execute a hadoop cluster?

thanks.

--
Junyoung Kim (juneng...@gmail.com)

Reply via email to