The invention discloses a method for supporting unified management and query of multi-cluster heterogeneous data sources, and belongs to the technical field of
big data, and the method comprises the following steps: S1, starting a DataLinks Executor component service; s2, a user uploads a user-defined driver for a
specific data source, configures the
data source by using the user-defined driver, and then clicks test connection; s3, after the test connection is passed, entering a unified query menu page, selecting a
data source passing the test connection, and compiling an
SQL statement needing to be executed; s4, after the
SQL statements are executed, the executed
SQL statements are recorded by the Duid
connection pool,
data source information in the Duid
connection pool is collected by the DataLinks Executor in a timed mode, and summary statistics is carried out on the data source information; and S5, selecting nodes with relatively low loads in the summarized data source information by a load balancing
algorithm of the DataLinks Executor, and allocating query tasks to the nodes. The configuration process is greatly simplified, so that a user can manage and operate the multi-cluster data source more conveniently and efficiently, and the problem of connection and management and control of the multi-cluster data source is solved.