Hello,

On Thu, Feb 24, 2011 at 12:25 PM, Jun Young Kim <juneng...@gmail.com> wrote:
> Hi,
> I executed my cluster by this way.
>
> call a command in shell directly.

What are you doing within your testCluster.jar? If you are simply
submitting a job, you can use a Driver method and get rid of all these
hassles. JobClient and Job classes both support submitting jobs from
Java API itself.

Please read the tutorial on submitting application code via code
itself: http://developer.yahoo.com/hadoop/tutorial/module4.html#driver
Notice the last line in the code presented there, which submits a job
itself. Using runJob() also prints your progress/counters etc.

The way you've implemented this looks unnecessary when your Jar itself
can be made runnable with a Driver!

-- 
Harsh J
www.harshj.com

Reply via email to