Suppose we have a MapReduce job and we would like termination/killing of the job to be baked into our Java MapReduce-- say after a specific range of time, how do i go about doing that?
for instance, kill the job after a specified period of time
Suppose we have a MapReduce job and we would like termination/killing of the job to be baked into our Java MapReduce-- say after a specific range of time, how do i go about doing that?
for instance, kill the job after a specified period of time
You could set a simple timer using Thread.sleep() and then use Job.killJob() to kill the job.