The invention relates to a
task management method and
system based on Hadoop. The method comprises the steps that a
task dependency relationship configured by a user is acquired, a current task is loaded, and upper-level tasks and lower-level tasks of the current task are determined according to the
task dependency relationship; the execution results of the upper-level tasks are queried in a task status manager, and if all the upper-level tasks are successfully executed, the current task is triggered to be executed; the execution result of the current task is monitored, and if the current task is successfully executed, the execution result is sent to the task status manager, and the lower-level tasks are triggered to be loaded. By means of the
task management method and
system, the situations that the tasks are executed independently, and consequently concurrent execution of the tasks is caused are avoided, and the tasks can be uniformly managed. Once the current task is successfully executed, the lower-level tasks are loaded; under the condition that the upper-level tasks are successfully executed, the lower-level tasks can be immediately triggered to be executed. Thus, the
running time needed for executing all the tasks can be shortened, and accordingly the execution efficiency of Hadoop can be improved.