Parameter configuration method and device, system, electronic device and storage medium
The configuration information of the Apache Hive client is managed through the parameter configuration server, which solves the problems of insecurity, unreliability and inflexibility of Hive parameter configuration, realizes safe, reliable and flexible parameter configuration, and reduces operation and maintenance costs.
Patent Information
- Application Number
- CN202010784376.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-08-06
AI Technical Summary
The parameter configuration method of Apache Hive is insecure, unreliable, and inflexible, and it needs to rely on the Hive client machine for configuration, resulting in high operation and maintenance costs and difficulty in parameter tuning.
Provide a parameter configuration method that determines whether the client is in target configuration mode through the parameter configuration server, obtains and manages configuration information, realizes parameter configuration of the data warehouse client, decouples the parameter configuration process, and allows dynamic management through the graphical user interface .
It improves the security and reliability of parameter configuration, reduces operation and maintenance costs, achieves flexibility and standardized management of parameter configuration, and reduces dependence on the Hive client.
Smart Images

Figure CN111897887B
Abstract
Description
Background Art
[0002] Apache Hive is a data warehouse tool based on Hadoop that can map structured data files into a database table and provide Structured Query Language (SQL)-like query functions.
[0003] Currently, after Apache Hive is built, there are two ways to set the parameters required for Hive operation. The first way is to configure the parameters in the configuration file hive-site.xml. The other way is to set the parameters through the set command after starting Hive on the client. The parameter priority is higher than the parameter value in the configuration file. If there is a conflict, the default value in the configuration file will be overwritten.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present disclosure is to provide a parameter configuration method, a parameter configuration device, a parameter configuration system, an electronic device and a computer-readable storage medium, thereby overcoming the problems of the existing Hive parameter configuration method, at least to a certain extent, such as the insecurity and unreliability, inflexibility and the need to rely on a Hive client machine for parameter configuration.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present invention.
[0007] According to a first aspect of the present disclosure, a parameter configuration method is provided, including: applied to a parameter configuration server, including: responding to a parameter configuration request of a client, determining whether the client is in a target configuration mode; wherein the client includes a data warehouse client; if the client is in the target configuration mode, determining whether a candidate dimension includes configuration information; if the candidate dimension includes configuration information, obtaining the configuration information according to the candidate dimension to perform parameter configuration operations on the data warehouse client.
[0008] Optionally, determining whether the client is in a target configuration mode includes: obtaining a mode parameter value of the client; wherein the mode parameter value is used to represent the configuration mode of the client; determining whether the mode parameter value is equal to the target mode value; if the mode parameter value is equal to the target mode value, determining that the client is in the target configuration mode.
[0009] Optionally, the above method further includes: if the mode parameter value is not equal to the target mode value, configuring the mode parameter value to the target mode value to switch the client to the target configuration mode.
[0010] Optionally, the candidate dimensions include a scheduling dimension and a cluster dimension, and obtaining configuration information based on the candidate dimensions includes: determining whether the scheduling dimension includes configuration information; if the scheduling dimension includes configuration information, obtaining the configuration information based on the scheduling dimension; if the scheduling dimension does not include configuration information, determining whether the cluster dimension includes configuration information; if the cluster dimension includes configuration information, obtaining the configuration information based on the cluster dimension.
[0011] Optionally, the above method further includes: if the client is not in the target configuration mode, obtaining configuration information from the client.
[0012] Optionally, the parameter configuration server includes a graphical user interface, and the above method also includes: receiving user operations on the graphical user interface; wherein the user operations include configuration operations on the data warehouse client; and changing the configuration information according to the user operations.
[0013] According to a second aspect of the present disclosure, a parameter configuration device is provided, including: a mode judgment module, used to judge whether the client is in a target configuration mode in response to a parameter configuration request of the client; wherein the client includes a data warehouse client; an information judgment module, used to judge whether a candidate dimension includes configuration information if the client is in the target configuration mode; and a first information acquisition module, used to acquire the configuration information according to the candidate dimension if the candidate dimension includes configuration information, so as to perform parameter configuration operations on the data warehouse client.
[0014] Optionally, the mode judgment module includes a mode judgment unit, which is used to obtain a mode parameter value of the client; wherein the mode parameter value is used to represent the configuration mode of the client; and to judge whether the mode parameter value is equal to a target mode value; if the mode parameter value is equal to the target mode value, it is determined that the client is in the target configuration mode.
[0015] Optionally, the parameter configuration device further includes a mode switching module, which is used to configure the mode parameter value to the target mode value if the mode parameter value is not equal to the target mode value, so as to switch the client to the target configuration mode.
[0016] Optionally, the first information acquisition module includes an information acquisition unit, which is used to determine whether the scheduling dimension includes configuration information; if the scheduling dimension includes configuration information, the configuration information is acquired according to the scheduling dimension; if the scheduling dimension does not include configuration information, it is determined whether the cluster dimension includes configuration information; if the cluster dimension includes configuration information, the configuration information is acquired according to the cluster dimension.
[0017] Optionally, the parameter configuration device further includes a second information acquisition module, configured to acquire configuration information from the client if the client is not in the target configuration mode.
[0018] Optionally, the parameter configuration device also includes a configuration information changing module, which is used to receive user operations on the graphical user interface; wherein the user operations include configuration operations on the data warehouse client; and change the configuration information according to the user operations.
[0019] According to a third aspect of the present disclosure, a parameter configuration system is provided, including: a parameter configuration server, used to receive a parameter configuration request sent by a client, and determine whether the client is in a target configuration mode; if the client is in the target configuration mode, obtaining configuration information according to candidate dimensions to perform parameter configuration operations on the client; at least one client, used to send a parameter configuration request to the parameter configuration server, and receive configuration information returned by the parameter configuration server; wherein the client includes a data warehouse client; a database, used to store the configuration information of the client.
[0020] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the parameter configuration method according to any one of the above items is implemented.
[0021] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the parameter configuration method according to any one of the above items is implemented.
[0022] The technical solution provided by the present disclosure may have the following beneficial effects:
[0023] The parameter configuration method in the exemplary embodiment of the present disclosure is applied to the parameter configuration server, including: in response to the parameter configuration request of the client, determining whether the client is in the target configuration mode; wherein the client includes the data warehouse client; if the client is in the target configuration mode, determining whether the candidate dimension includes configuration information; if the candidate dimension includes configuration information, obtaining the configuration information according to the candidate dimension to perform parameter configuration operations on the data warehouse client. Through the parameter configuration method of the present disclosure, on the one hand, the configuration information of the data warehouse client is uniformly managed through the parameter configuration server, and the maintenance plan of the parameter configuration is standardized, so that the configuration information of the client is more secure and reliable. On the other hand, the parameter configuration process of the data warehouse client can be performed on the parameter configuration server, which is decoupled from the data warehouse client, and there is no need to perform parameter configuration operations through the data warehouse client.
[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0026] Figure 1 The overall architecture diagram of parameter configuration of Hive client using existing technology is schematically shown;
[0027] Figure 2 A flow chart schematically shows a parameter configuration method according to an exemplary embodiment of the present disclosure;
[0028] Figure 3 A system architecture diagram for parameter configuration using a target configuration mode according to an exemplary embodiment of the present disclosure is schematically shown;
[0029] Figure 4 A flowchart of a client acquiring configuration parameters according to an exemplary embodiment of the present disclosure is schematically shown;
[0030] Figure 5 The class diagram corresponding to the configuration information acquisition method selected according to the exemplary embodiment of the present disclosure is schematically shown;
[0031] Figure 6 Schematically shows a class diagram corresponding to dynamic management configuration information according to an exemplary embodiment of the present disclosure;
[0032] Figure 7 Schematically shows a visualization interface diagram corresponding to a target configuration mode according to an exemplary embodiment of the present disclosure;
[0033] Figure 8 Schematically shows a block diagram of a parameter configuration device according to an exemplary embodiment of the present disclosure;
[0034] Fig. 9 A block diagram schematically shows an electronic device according to an exemplary embodiment of the present disclosure;
[0035] Fig.10 A schematic diagram of a computer-readable storage medium according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0037] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known structures, methods, devices, implementations, materials or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.
[0038] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or these functional entities or parts of functional entities may be implemented in one or more software hardened modules, or these functional entities may be implemented in different networks and / or processor devices and / or microcontroller devices.
[0039] refer to Figure 1 , Figure 1 The overall architecture diagram for parameter configuration of the Hive client using the existing technology is schematically shown. The user 110 can directly perform parameter configuration operations on the Hive client, and by running the Hive client 120 with completed parameter configuration, the HDFS data 130 in the distributed file system (Hadoop Distributed File System, HDFS) can be obtained. Using the above overall architecture, there are currently two ways to set the parameter configuration required for Hive operation: one is to configure the parameters in hive-site.xml; the other is to set the parameters through the set command after starting Hive on the client. The parameter priority is higher than the parameter value in the configuration file. If there is a conflict, the default value in the configuration file will be overwritten.
[0040] However, the above-mentioned method for parameter configuration has the following disadvantages: (1) Insecurity and unreliability. Hive optimization parameters are obtained through local configuration files. Very important optimization strategies can be easily leaked, which poses a great security risk. In addition, when setting parameters through the set command, the parameter settings become invalid after the client exits, which is unreliable. (2) Inflexibility. Since there are many Hive client machines and the Hive client configuration information of different clusters and business lines is different, on the one hand, it brings huge operation and maintenance costs. On the other hand, Hive parameter tuning, whether it is testing, grayscale launch or formal launch, will face huge challenges. (3) Dependence on Hive client machines. Currently, both methods of obtaining Hive configuration parameters must be completed by logging in to the Hive client machine, which is tightly coupled with the Hive client machine.
[0041] Based on this, in this example embodiment, a parameter configuration method is first provided. The parameter configuration method of the present disclosure may be implemented using a server, or the method described in the present disclosure may be implemented using a terminal device, wherein the terminal described in the present disclosure may include a mobile terminal and a fixed terminal. Figure 2 The following is a schematic diagram showing the parameter configuration method flow according to some embodiments of the present disclosure. Figure 2 , the parameter configuration method may include the following steps:
[0042] Step S210, in response to the parameter configuration request of the client, determining whether the client is in a target configuration mode; wherein the client includes a data warehouse client.
[0043] Step S220: If the client is in the target configuration mode, it is determined whether the candidate dimension includes configuration information.
[0044] Step S230: If the candidate dimension includes configuration information, the configuration information is obtained according to the candidate dimension to perform parameter configuration operations on the data warehouse client.
[0045] According to the parameter configuration method in this example embodiment, on the one hand, the configuration information of the data warehouse client is uniformly managed through the parameter configuration server, and the maintenance scheme of the parameter configuration is standardized, so that the configuration information of the client is more secure and reliable. On the other hand, the parameter configuration process of the data warehouse client can be performed on the parameter configuration server, which is decoupled from the data warehouse client, and there is no need to perform parameter configuration operations through the data warehouse client.
[0046] The parameter configuration method in this exemplary embodiment will be further described below.
[0047] In step S210, in response to a parameter configuration request from a client, it is determined whether the client is in a target configuration mode; wherein the client includes a data warehouse client.
[0048] In some exemplary embodiments of the present disclosure, the client may be a data warehouse client, for example, the client may be a Hive client. After the Apache Hive configuration is completed, the parameters required for the Hive client to run may be configured. The parameter configuration request may be a request for running parameter configuration sent by the client to the parameter configuration server. The target configuration mode, also known as the Kongming optimization mode, may be a specific configuration mode for parameter configuration of the data warehouse client. The target configuration mode may be used to uniformly manage the relevant configurations of the Hive client.
[0049] When the parameter configuration client receives the parameter configuration request of the client, it can determine whether the client is in the target configuration mode in response to the parameter configuration request, so as to perform corresponding parameter configuration operations according to the configuration mode corresponding to the client.
[0050] The parameter configuration method disclosed in the present invention can be performed by the parameter configuration server, and the data warehouse client can be configured to the target configuration mode, and the parameter configuration server can perform parameter configuration operations on the data warehouse server. Figure 3 , Figure 3 The system architecture diagram for parameter configuration using the target configuration mode according to the exemplary embodiment of the present disclosure is schematically shown. After the Hive client 320 is built, if the user 310 wants to perform parameter configuration operations on the Hive client 320, the parameter configuration request can be sent to the parameter configuration server 340 through the Hive client 320, so that the parameter configuration server 340 performs the next operation according to the configuration mode of the Hive client 320. After the Hive client 320 completes the running parameter configuration, it can obtain the HDFS data 330.
[0051] According to some exemplary embodiments of the present disclosure, a mode parameter value of a client is obtained; wherein the mode parameter value is used to indicate the configuration mode of the client; it is determined whether the mode parameter value is equal to the target mode value; if the mode parameter value is equal to the target mode value, it is determined that the client is in the target configuration mode. The mode parameter value may be a specific value used to indicate the configuration mode parameter corresponding to the client. The target mode value may be a value corresponding to the target mode of the client. In the present disclosure, when the target mode value is set to true, it indicates that the client is in the target configuration mode.
[0052] refer to Figure 4 , Figure 4A flowchart of a client obtaining configuration parameters according to an exemplary embodiment of the present disclosure is schematically shown. In step S410, in response to a parameter configuration request from the client, a configuration initialization operation of the Hive client can be performed. In step S420, the corresponding mode of the client can be first determined. When determining the mode state of the client, the mode parameter value of the client can be obtained. The parameter indicating the corresponding configuration mode of the client can be HIVE_KONGMING_OPTIMIZE_ENABLE. If the mode parameter value is true, the client is in the target configuration mode, and the Hive client can be configured with parameters through the parameter configuration server.
[0053] According to some exemplary embodiments of the present disclosure, if the mode parameter value is not equal to the target mode value, the mode parameter value is configured as the target mode value to switch the client to the target configuration mode. If the acquired mode parameter value is not equal to the target mode value, the mode parameter value can be configured as the target mode value. For example, when the Hive client is deployed, the following configuration item HIVE.KONGMING.OPTIMIZE.ENABLE can be added to the HIVE_CONF_DIR / hive-site.xml file. The configuration item can be configured with the mode parameter value, and its default value is false. Reference Figure 3 If the Hive client is not in the target configuration mode, the configuration information is obtained locally from the Hive client 320. Only when this configuration item is true can the Hive client be switched to the target configuration mode. This configuration item can be configured in the following way:
[0054] <property>
[0055] <name> hive.kongming.optimize.enable< / name>
[0056] <value> true< / value>
[0057] < / property>
[0058] refer to Figure 3 When the configuration item is configured, the configured configuration item can be synchronized to the database 350.
[0059] In step S220, if the client is in the target configuration mode, it is determined whether the candidate dimension includes configuration information.
[0060] In some exemplary embodiments of the present disclosure, the candidate dimension may be a dimension used when obtaining the data warehouse client configuration information. The configuration information may be relevant information of the configuration items of the data warehouse client. If the client is in the target configuration mode, it may be determined whether the candidate dimension includes the configuration information, that is, whether the configuration information of the data warehouse client can be obtained according to the candidate dimension.
[0061] In step S230, if the candidate dimension includes configuration information, the configuration information is obtained according to the candidate dimension to perform parameter configuration operations on the data warehouse client.
[0062] In some exemplary embodiments of the present disclosure, the parameter configuration operation may be an initialization parameter configuration operation performed on a data warehouse client.
[0063] If the candidate dimension includes configuration information, the corresponding configuration information may be acquired according to the candidate dimension, and an initial configuration operation may be performed on the data warehouse client according to the acquired configuration information.
[0064] According to some exemplary embodiments of the present disclosure, it is determined whether the scheduling dimension includes configuration information; if the scheduling dimension includes configuration information, the configuration information is obtained according to the scheduling dimension; if the scheduling dimension does not include configuration information, it is determined whether the cluster dimension includes configuration information; if the cluster dimension includes configuration information, the configuration information is obtained according to the cluster dimension. The scheduling dimension may be a dimension for obtaining configuration information according to the service to which the client belongs. The cluster dimension may be a dimension for obtaining configuration information according to the cluster to which the client is located.
[0065] refer to Figure 4 In step S440, when the data warehouse client is in the target configuration mode, the target configuration mode service interface can be called to obtain the client's configuration information. In step S450, the dimension of obtaining the configuration information is determined; in step S460, the configuration information is usually obtained by default through the scheduling dimension; in step S470, first determine whether the configuration information in the scheduling dimension is empty; if the configuration information in the scheduling dimension is not empty, then obtain the configuration information according to the scheduling dimension, and when the configuration information is obtained through the scheduling dimension, the initialization configuration process ends. If the configuration information in the scheduling dimension is empty, then in step S480, continue to obtain the configuration information by querying the cluster dimension, and in step S490, determine whether the cluster dimension configuration information is empty, if the cluster dimension configuration information is not empty, then obtain the configuration information according to the cluster dimension, and when the corresponding configuration information is obtained, the initialization configuration process ends; if the configuration information cannot be obtained from the cluster dimension, an initialization exception is thrown.
[0066] Specifically, the process of Hive routing selection configuration can be performed through the following classes, refer to Figure 5 , Figure 5The class diagram corresponding to the method for obtaining configuration information selected according to the exemplary embodiment of the present disclosure is schematically shown. During the Hive initialization process, the Hive driver will call the optimizeHive(conf) method in the KongmingOptimizeHiveUtils class by default, and determine whether the Hive client is in the target configuration mode through the HIVE_KONGMING_OPTIMIZE_ENABLE parameter. If the Hive client is in the target configuration mode, the sendPostByHttpURLConnection(kongmingOptimizeUrl,baos,timeout,retry) method of HttpUtil can be called to send the obtained default configuration message to the parameter configuration server in the form of String type, and return the Hive parameters configured by the parameter configuration server; among them, baos can represent the configuration message, timeout can represent the timeout delay, and retry can represent the number of retries. After the Hive client obtains the corresponding configuration items, it traverses the configuration information in sequence and sets it to the conf object, and then it can be started safely.
[0067] refer to Figure 6 , Figure 6 The class diagram corresponding to the dynamic management configuration information according to the exemplary implementation of the present disclosure is schematically shown. After the parameter configuration server receives the configuration request signal sent by the Hive client, it will call the optimization method optimizeHiveConf(hiveConfigXmlStr) of the HiveConfController class. At this time, the message information sent by the client can be passed to the addProperties(hiveConfigXmlStr, hiveConf) method in the HiveConfService class and the getOptimizerConfMap(paramMap) method of the OptimizerConf class. Among them, the implementation class of getOptimizerConfMap is MySqlOptimizerConf. MySqlOptimizerConf first reads the configuration information from the cache by parsing the task dimension in the parameters. If the corresponding configuration information does not exist in the cache, it will continue to read the corresponding configuration information from the database, for example, refer to Figure 3 , the corresponding configuration information can be read from the Mysql database 350 and the cache can be updated. The relevant configuration information of the Hive client is stored in the database 350 to ensure that the configuration information is persistent and consistent.
[0068] According to some exemplary embodiments of the present disclosure, if the client is not in the target configuration mode, the configuration information is obtained from the client. Figure 4 In step S430, if the Hive client is not in the target configuration mode, the configuration file information can be obtained locally from the Hive client.
[0069] According to some exemplary embodiments of the present disclosure, a user operation on a graphical user interface is received; wherein the user operation includes a configuration operation on a data warehouse client; and configuration information is changed according to the user operation. The graphical user interface may be an interface provided to a user for performing operations related to configuration items. The user may perform operations such as querying, editing, and deleting through the graphical user interface. Figure 7 , Figure 7 The following schematically shows a visualization interface diagram corresponding to the target configuration mode according to an exemplary embodiment of the present disclosure. The graphical user interface may include configuration items such as "technology stack", "cluster name", and "dispatch number". The user may query the optional parameters of the configuration items through the visualization interface, and obtain or add configuration information based on the selected parameters. The user may perform configuration operations on each of the listed configuration items. For example, the user may edit and delete the relevant configuration items through the visualization interface to change the configuration information of the Hive client.
[0070] In summary, the parameter configuration method disclosed in the present invention is applied to the parameter configuration server, including: responding to the parameter configuration request of the client, judging whether the client is in the target configuration mode; wherein the client includes the data warehouse client; if the client is in the target configuration mode, judging whether the candidate dimension includes the configuration information; if the candidate dimension includes the configuration information, obtaining the configuration information according to the candidate dimension to perform parameter configuration operations on the data warehouse client. Through the parameter configuration method disclosed in the present invention, on the one hand, the configuration information of the data warehouse client is uniformly managed by the parameter configuration server, and the maintenance scheme of the standardized parameter configuration is made so that the configuration information of the client is more secure and reliable. On the other hand, the parameter configuration process of the data warehouse client can be performed on the parameter configuration server, decoupled from the data warehouse client, and there is no need to perform parameter configuration operations through the data warehouse client. On the other hand, through the visual graphical user interface, the parameter configuration process can be made more flexible, whether it is testing, grayscale launch and formal launch, etc., can be dynamically configured through the visual interface, which can increase the flexibility of operation, reduce operation and maintenance costs, and improve the development efficiency of Hive.
[0071] It should be noted that, although the steps of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0072] In addition, in this exemplary embodiment, a parameter configuration device is also provided. Figure 8 The parameter configuration device 800 may include: a mode judgment module 810, an information judgment module 820 and a first information acquisition module 830.
[0073] Specifically, the mode judgment module 810 is used to respond to the client's parameter configuration request and determine whether the client is in the target configuration mode; wherein the client includes a data warehouse client; the information judgment module 820 is used to determine whether the candidate dimension includes configuration information if the client is in the target configuration mode; the first information acquisition module 830 is used to obtain the configuration information based on the candidate dimension if the candidate dimension includes configuration information, so as to perform parameter configuration operations on the data warehouse client.
[0074] The parameter configuration device 800 can uniformly manage the configuration information of the data warehouse client through the parameter configuration server, standardize the parameter configuration maintenance plan, and make the client's configuration information more secure and reliable; and the parameter configuration process of the data warehouse client is decoupled from the data warehouse client, and there is no need to perform parameter configuration operations through the data warehouse client.
[0075] In an exemplary embodiment of the present disclosure, the mode judgment module includes a mode judgment unit, which is used to obtain a mode parameter value of the client; wherein the mode parameter value is used to represent the configuration mode of the client; and judge whether the mode parameter value is equal to a target mode value; if the mode parameter value is equal to the target mode value, it is determined that the client is in the target configuration mode.
[0076] In an exemplary embodiment of the present disclosure, the parameter configuration device further includes a mode switching module for configuring the mode parameter value to the target mode value if the mode parameter value is not equal to the target mode value, so as to switch the client to the target configuration mode.
[0077] In an exemplary embodiment of the present disclosure, the first information acquisition module includes an information acquisition unit, which is used to determine whether the scheduling dimension includes configuration information; if the scheduling dimension includes configuration information, the configuration information is acquired according to the scheduling dimension; if the scheduling dimension does not include configuration information, it is determined whether the cluster dimension includes configuration information; if the cluster dimension includes configuration information, the configuration information is acquired according to the cluster dimension.
[0078] In an exemplary embodiment of the present disclosure, the parameter configuration device further includes a second information acquisition module, which is used to acquire configuration information from the client if the client is not in the target configuration mode.
[0079] In an exemplary embodiment of the present disclosure, the parameter configuration device also includes a configuration information changing module for receiving user operations on the graphical user interface; wherein the user operations include configuration operations on the data warehouse client; and changing the configuration information according to the user operations.
[0080] Furthermore, a parameter configuration system is provided, referring to Figure 3 The parameter configuration system 300 may include: at least one client 320 , a parameter configuration server 340 and a database 350 .
[0081] Among them, the parameter configuration server 340 is used to receive the parameter configuration request sent by the client and determine whether the client is in the target configuration mode; if the client is in the target configuration mode, the configuration information is obtained according to the candidate dimensions to perform parameter configuration operations on the client; at least one client 320 is used to send a parameter configuration request to the parameter configuration server and receive the configuration information returned by the parameter configuration server; wherein the client includes a data warehouse client; the database 350 is used to store the configuration information of the client.
[0082] The parameter configuration system 300 can uniformly manage the configuration information of the data warehouse client through the parameter configuration server, and the standardized parameter configuration maintenance plan can make the client's parameter configuration more secure and reliable; moreover, the configuration process of the data warehouse client can be performed on the parameter configuration server, and the parameter configuration operation can be decoupled from the data warehouse client.
[0083] The specific details of the virtual modules of the above-mentioned parameter configuration devices have been described in detail in the corresponding parameter configuration methods, so they will not be repeated here.
[0084] It should be noted that, although several modules or units of the parameter configuration device are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0085] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0086] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0087] Reference below Fig. 9 An electronic device 900 according to such an embodiment of the present invention will be described. Fig. 9 The electronic device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0088] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
[0089] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0090] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 921 and / or a cache memory unit 922 , and may further include a read-only memory unit (ROM) 923 .
[0091] The storage unit 920 may include a program / utility 924 having a set (at least one) of program modules 925, such program modules 925 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0092] Bus 930 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0093] The electronic device 900 may also communicate with one or more external devices 970 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0094] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0095] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0096] refer to Fig.10 As shown, a program product 1000 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0097] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0098] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0099] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0100] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0101] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0102] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0103] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A parameter configuration method, characterized in that: Applied to parameter configuration server, including: In response to a parameter configuration request from a client, determining whether the client is in a target configuration mode; wherein the client includes a data warehouse client; If the client is in the target configuration mode, it is determined whether the candidate dimensions include configuration information, the candidate dimensions including a scheduling dimension and a cluster dimension, the scheduling dimension is a dimension for obtaining configuration information determined according to the service to which the client belongs, and the cluster dimension is a dimension for obtaining configuration information determined according to the cluster to which the client is located; If the candidate dimension includes configuration information, acquiring the configuration information according to the candidate dimension to perform parameter configuration operations on the data warehouse client; The acquiring the configuration information according to the candidate dimension includes: Determining whether the scheduling dimension includes the configuration information; If the scheduling dimension includes the configuration information, acquiring the configuration information according to the scheduling dimension; If the scheduling dimension does not include the configuration information, determining whether the cluster dimension includes the configuration information; If the cluster dimension includes the configuration information, the configuration information is acquired according to the cluster dimension.
2. The method according to claim 1, characterized in that The determining whether the client is in the target configuration mode includes: Obtaining a mode parameter value of the client; wherein the mode parameter value is used to indicate a configuration mode of the client; Determining whether the mode parameter value is equal to the target mode value; If the mode parameter value is equal to the target mode value, it is determined that the client is in the target configuration mode.
3. The method according to claim 2, characterized in that The method further comprises: If the mode parameter value is not equal to the target mode value, the mode parameter value is configured to the target mode value to switch the client to the target configuration mode.
4. The method according to claim 1, characterized in that The method further comprises: If the client is not in the target configuration mode, obtaining the configuration information from the client.
5. The method according to any one of claims 1 to 4, characterized in that: The parameter configuration server includes a graphical user interface, and the method further includes: Receiving a user operation on the graphical user interface; wherein the user operation includes a configuration operation on the data warehouse client; The configuration information is modified according to the user operation.
6. A parameter configuration device, characterized in that: include: A mode determination module, configured to determine whether the client is in a target configuration mode in response to a parameter configuration request of the client; wherein the client includes a data warehouse client; an information determination module, configured to determine whether a candidate dimension includes configuration information if the client is in a target configuration mode, wherein the candidate dimension includes a scheduling dimension and a cluster dimension, wherein the scheduling dimension is a dimension for obtaining configuration information determined according to a service to which the client belongs, and the cluster dimension is a dimension for obtaining configuration information determined according to a cluster to which the client is located; A first information acquisition module, configured to acquire the configuration information according to the candidate dimension if the candidate dimension includes configuration information, so as to perform parameter configuration operation on the data warehouse client; The first information acquisition module is further used to determine whether the scheduling dimension includes the configuration information; If the scheduling dimension includes the configuration information, acquiring the configuration information according to the scheduling dimension; If the scheduling dimension does not include the configuration information, determining whether the cluster dimension includes the configuration information; If the cluster dimension includes the configuration information, the configuration information is acquired according to the cluster dimension.
7. A parameter configuration system, characterized in that: include: The parameter configuration server is used to receive the parameter configuration request sent by the client and determine whether the client is in the target configuration mode; If the client is in the target configuration mode, configuration information is obtained according to candidate dimensions to perform parameter configuration operations on the client, the candidate dimensions include a scheduling dimension and a cluster dimension, the scheduling dimension is a dimension for obtaining configuration information determined according to the service to which the client belongs, and the cluster dimension is a dimension for obtaining configuration information determined according to the cluster to which the client is located; At least one client is used to send the parameter configuration request to the parameter configuration server and receive the configuration information returned by the parameter configuration server; wherein the client includes a data warehouse client; A database, used to store the configuration information of the client; The parameter configuration server is further used to determine whether the scheduling dimension includes the configuration information; If the scheduling dimension includes the configuration information, acquiring the configuration information according to the scheduling dimension; If the scheduling dimension does not include the configuration information, determining whether the cluster dimension includes the configuration information; If the cluster dimension includes the configuration information, the configuration information is acquired according to the cluster dimension.
8. An electronic device, characterized in that: include: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the parameter configuration method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the parameter configuration method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for configuring parameters of software in mobile terminal, mobile terminal, and server
CN101094472A
Method, system and apparatus for down distributing configuration data
CN101442469A
CPE and ACS remote configuration method, device and system
CN108282363A
Configuration data management method and device, electronic device and storage medium
CN110825425A
Automatic Configuration in a Distributed Network
US20180254953A1
