Patent ID: 11914609
Assignee: NANHU LABORATORY
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. A method for interconnecting a data lake and a relational database, comprising the following steps:
S1: adding a data source class of a relational database to a data lake;
S2: matching and using, by the data lake, a data source class of the relational database; and
S3: determining and loading a corresponding driver according to the data source class, so as to connect the corresponding relational database, wherein
the adding a data source class of a relational database in step S1 comprises:
S11: determining that a data source class to be added is the data source class of the relational database, and labeling an identifier (ID) name of the data source class; and
S12: adding an ID name-comprising package path of the data source class to a data source registering configuration file of the data lake;
the matching and using a data source class of the relational database in step S2 comprises:
S21: passing, by the data lake, the ID name of the data source class of the relational database through an interface parameter;
S22: matching the ID name in step S21 with ID names of data source classes in the data source registering configuration file; and
S23: using a data source class with a matched ID name;
in step S3, a relational database configuration file is matched according to the data source class of the relational database, the relational database configuration file storing basic information of various relational databases; and the data lake determines and loads the corresponding driver according to basic information of a current relational database so as to connect the current relational database; and
when modification information of the relational database configuration file is detected in a started state of the data lake, current configuration information is locked for current data read/write, and modified configuration information is used for next data read/write.