The invention belongs to the technical field of data processing, and discloses a resource scheduling method and system based on a multi-dimensional constraint genetic algorithm, and the method comprises the steps: carrying out the initialization of a prediction model, a task matrix, and a node matrix, and building a dual-fitness function; formulating an option-Copying operator, a cross operator and a variation operator; and after multiple iterations, obtaining a globally optimal resource allocation mode. In order to seek a better resource allocation scheme, the invention provides a Hadoop resource scheduling algorithm based on a multi-dimensional constraint genetic algorithm, and a Hadoop resource scheduler is realized through the algorithm; by the adoption of the algorithm, the cluster resource distribution efficiency can be effectively improved, and the overall completion time of cluster tasks is shortened by about 20%.