A big data cluster and its operation authority control method and related components
By setting up multiple operation authority management nodes in the big data cluster and electing target management nodes, the problem of unavailability of authority services when management nodes fail is solved, and high availability and highly reliable connections of user nodes are achieved.
Patent Information
- Application Number
- CN202210893139.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-07-27
AI Technical Summary
Existing big data clusters cannot achieve high availability of permission services when management nodes fail. As a result, user nodes cannot run or update permission services for a long time, and cannot meet the high availability requirements of user nodes.
By setting up multiple operation permission management nodes in the big data cluster, and electing a target management node from them, it is responsible for responding to the operation requests of the user node. When the operation rules of the target management node are updated, they are synchronized to other nodes. When a failure occurs, Elect new target management nodes from other nodes to ensure that there are always available nodes to provide permission services.
It achieves high availability and high reliability of permission services for user nodes, ensures that the big data cluster can continue to provide permission services when the management node fails, and improves the stability of the link between user nodes and the big data cluster.
Smart Images

Figure CN115242617B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data clusters, and in particular to a big data cluster and an operation authority control method and related components thereof. Background Art
[0002] At present, big data clusters provide users with convenient cloud data access and have been applied in various industries. In order to ensure the data security in the big data cluster when the user node accesses the big data cluster, an operation permission management strategy is set in the big data cluster. The management strategy includes two parts: user node strategy and cluster-side strategy. The user node strategy is mainly implemented by the operation permission login software installed on the user node. The front-end webUI (Web User Interfaces) interface of the user node receives the login instruction of the user operation permission, and the back-end sends the operation permission-related request to the big data cluster according to the login instruction; the cluster-side strategy is implemented by the management node installed on the cluster side. The management node is used for the operation permissions of all big data clusters. When receiving the request of the user node, the management node will respond to the user node's request and allocate operation permissions and provide corresponding permission services when it determines that the request meets the operation permission allocation conditions.
[0003] However, there is only one management node in the current management strategy. If the management node fails, the internal permission service cannot be updated. The user node can only run according to the permission service content of the local server node. At this time, the user node cannot use permission services that need to run for a long time, update, or must run online. The big data cluster cannot meet the high availability requirements of the user node's permission service.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a big data cluster and its operation authority control method and related components to meet the high availability requirements of user nodes for authority services. The specific scheme is as follows:
[0006] A method for controlling operation authority of a big data cluster, comprising:
[0007] Determine a plurality of operation authority management nodes having an operation authority control function;
[0008] Determine a target management node from all the operation authority management nodes;
[0009] Responding to the operation request of the user node through the target management node;
[0010] When the operation rules of the target management node are updated, the operation rules are synchronized to other operation authority management nodes;
[0011] When the target management node fails, a new target management node is determined from other operation authority management nodes, so as to respond to the operation request of the user node through the new target management node.
[0012] Preferably, when the target management node fails, the process of determining a new target management node from other operation authority management nodes to respond to the operation request of the user node through the new target management node includes:
[0013] When the target management node fails, an operation authority management node with the latest local operation rule version is selected from other operation authority management nodes as the new target management node, so as to respond to the operation request of the user node through the new target management node.
[0014] Preferably, when the operation rules of the target management node are updated, the process of synchronizing the operation rules to other operation authority management nodes includes:
[0015] When the operation rules of the target management node are updated, the operation rules are synchronized to the local storage units of other operation authority management nodes.
[0016] Preferably, the process of responding to the operation request of the user node through the target management node includes:
[0017] Through the target management node, according to the operation request of the user node, the operation authority of the user node to the big data cluster is adjusted.
[0018] Preferably, after determining a target management node from all the operation authority management nodes, the method further includes:
[0019] Broadcasting the target management node so that the user node can determine the target location of the sending object of the operation request;
[0020] Correspondingly, after determining the new target management node from the other operation authority management nodes, the method further includes:
[0021] The new target management node is broadcasted to enable the user node to update the target location.
[0022] Preferably, the operation request includes a first operation request issued by the user node immediately after receiving a user request instruction.
[0023] Preferably, the operation request further includes:
[0024] The user node sends the secondary operation request after sending the first operation request and receiving rejection information fed back by the target management node.
[0025] Accordingly, the present application also discloses an electronic device, comprising:
[0026] Memory for storing computer programs;
[0027] A processor is used to implement the steps of the operation authority control method of a big data cluster as described in any one of the above items when executing the computer program.
[0028] Correspondingly, the present application also discloses a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the operation authority control method for a big data cluster as described in any of the above items are implemented.
[0029] Accordingly, the present application also discloses a big data cluster system, including:
[0030] Multiple data storage nodes;
[0031] A plurality of operation authority management nodes, each of which is connected to all of the data storage nodes;
[0032] One or more user nodes;
[0033] The electronic device is connected to the user node and the plurality of operation authority management nodes, such as the electronic device described above.
[0034] The present application discloses an operation authority control method for a big data cluster, including: determining multiple operation authority management nodes with operation authority control functions; determining a target management node from all the operation authority management nodes; responding to the operation request of the user node through the target management node; when the operation rule of the target management node is updated, synchronizing the operation rule to other operation authority management nodes; when the target management node fails, determining a new target management node from other operation authority management nodes to respond to the operation request of the user node through the new target management node. In the control method of the present application, multiple operation authority management nodes with synchronized operation rules are set and the target management node is determined from them. There is always a target management node to respond to the operation request of the user node and provide authority services, thereby meeting the high availability requirements of the user node for the authority service and improving the high reliability of the link between the user node and the big data cluster. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 This is a flowchart of a method for controlling operation authority of a big data cluster in an embodiment of the present invention;
[0037] Figure 2 This is a structural distribution diagram of a big data cluster system in an embodiment of the present invention;
[0038] Figure 3 This is a structural distribution diagram of a cluster efficient authority management center in an embodiment of the present invention;
[0039] Figure 4 A structural distribution diagram of a user management center in an embodiment of the present invention;
[0040] Figure 5 This is a structural distribution diagram of a rights management center in an embodiment of the present invention;
[0041] Figure 6 The figure is a structural distribution diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] There is only one management node in the current management strategy. If the management node fails, the internal permission service cannot be updated. The user node can only run according to the local permission service content of the server node. At this time, the user node cannot use permission services that need to run for a long time, update, or must run online. The big data cluster cannot meet the high availability requirements of the user node's permission service.
[0044] In the control method of the present application, multiple operation rule synchronized operation authority management nodes are set up and the target management node is determined therefrom. There is always a target management node to respond to the operation request of the user node and provide authority services, thereby meeting the high availability requirements of the user node for the authority service and improving the high reliability of the link between the user node and the big data cluster.
[0045] The embodiment of the present invention discloses a method for controlling the operation authority of a big data cluster. Figure 1 As shown, including:
[0046] S1: Determine multiple operation authority management nodes with operation authority control functions;
[0047] S2: Determine a target management node from all operation authority management nodes;
[0048] S3: Respond to the operation request of the user node through the target management node;
[0049] S4: When the operation rules of the target management node are updated, the operation rules are synchronized to other operation authority management nodes;
[0050] S5: When a target management node fails, a new target management node is determined from other operation authority management nodes to respond to the operation request of the user node through the new target management node.
[0051] It can be understood that the operation authority control method in this embodiment is applied to a big data cluster system including a big data cluster, wherein the association relationship between the modules can be referred to Figure 2 As shown, the big data cluster 1 includes multiple data storage nodes 10, the management module 2 includes multiple operation authority management nodes 20, and the user side 3 includes one or more user nodes 30. The operation authority control method in this embodiment is mainly used to manage the operation authority management nodes. Usually, another server node 40 can be selected in the big data cluster to implement the steps S1-S5 of this method to manage and control the actions of all operation authority management nodes. Internal rules can also be set for each operation authority management node, and all operation authority management nodes implement steps S1-S5 as a whole. The operation authority management nodes communicate with each other and elect a target management node according to the internal rules. The target management node responds to the operation request of the user node, and synchronizes the operation rules of all other operation authority management nodes when updating the operation rules on the target management node. If it is determined that the current target management node fails during the mutual communication process, each authority management node will elect a new target management node again, and the target management node has the same function as the previous target management node: responding to the operation request of the user node. It can be seen that under such a setting, there is always a target management node that can respond to the user node, and the target management node has high reliability and high availability operation rules.
[0052] Specifically, when step S1 determines multiple operation authority management nodes, it is generally possible to obtain information such as the location number, startup time, and update time of the operation rules of each operation authority management node. When step S2 determines the target management node, a target management node can be determined from all the operation authority management nodes based on this information. For example, when all the operation authority management nodes are just turned on, usually no operation rules are stored internally. At this time, the operation authority management node with the earliest startup time can be directly used as the target management node. In addition, if the operation authority management node has the ability to store operation rules, the target management node can be replaced with the operation authority management node with the latest update time of the internal operation rules, that is, the latest version, after all the operation authority management nodes are started, so as to further improve service reliability.
[0053] Furthermore, step S3 includes the following steps:
[0054] Through the target management node, according to the operation request of the user node, the operation authority of the user node to the big data cluster is adjusted.
[0055] It is understandable that the front end of the user node provides a webUI visual login interface for the user or administrator. After receiving the authorized user login information entered by the user or administrator, the front end generates a user request instruction. The back end of the user node will send an operation request to the target management node according to the user request instruction to obtain the operation authority for the big data cluster. Furthermore, the back end components of the user node can generally include a cluster efficient authority management center, a user management center, an authority management center, etc. Figure 3 As shown in the figure, the cluster efficient permission management center mainly manages the resources of the big data cluster. For example, it discovers the big data component HDFS (Hadoop Distributed File System) "hdp1_hdfs" through the target management node, and manages the big data HDFS component. The management content includes the service connection corresponding to the operations such as editing, deleting, and adding. When managing HDFS service resources, the directories and files that can be viewed can be edited, deleted, uploaded, etc. These operations are based on the user who logs in to the user node having the relevant operation permissions. Figure 4 As shown in the figure, the user management center mainly manages the cluster node system users and users created by the permission platform, and manages their user attributes, including user name, user status, user description, user group, user creation time, user synchronization time and other information. Figure 5 As shown, the permission management center mainly manages the mapping relationship between users, big data component resources, and permissions. It can create, view, delete, and other operations. It can allow users to perform certain operations on certain resources, or it can prohibit users from performing certain operations on certain resources.
[0056] It is understandable that the front-end and back-end contents of the user node, in addition to the above description, may also include other contents added or adjusted according to actual user needs or different management types, which are not limited here and fall within the protection scope of this embodiment.
[0057] It should be noted that a user node allows different users to log in to the front end. Therefore, the operation authority of the user node in this embodiment does not directly correspond to the node address of the user node. Instead, it is necessary to determine whether the logged-in user or administrator is a legitimate user or legitimate administrator in the mapping relationship based on the operation request issued by the current user node, and then allocate the operation authority to the user or administrator currently logged in to the user node.
[0058] It can be understood that the types of big data clusters in this embodiment include HDFS, Hive, Hbase, etc. With the different types of big data clusters, the specific operation permissions that can be provided to user nodes are also different. For example, when the big data cluster is a distributed file system HDFS, the operation permissions that can be obtained by the user node include read-only, edit, delete, add, etc. Of course, the target management node can analyze the operation scope and operation action of the operation request of the user node according to the internal operation rules, and assign relevant operation permissions to the user node. Usually, the target management node has a mapping relationship corresponding to the operation rules. The mapping objects of these mapping relationships include data storage nodes, user nodes, and operation permissions, which can be created, viewed, deleted, and modified by the administrator. Based on the mapping relationship or operation rules, the target management node can allow the user node to perform a certain operation on a certain resource of the big data cluster, and can also prohibit the user node from performing a certain operation on a certain resource of the big data cluster. Therefore, in the process of responding to the operation request of the user node, the target management node first performs a security verification on the operation request, and then adjusts the operation permission according to the result of the security verification.
[0059] Further, step S4 is a process of synchronizing the operation rules to other operation authority management nodes when the operation rules of the target management node are updated, including: synchronizing the operation rules to the local storage units of other operation authority management nodes when the operation rules of the target management node are updated. Saving to the local storage unit of the operation authority management node realizes the double insurance of memory and disk, and improves the reliability of local operation rules.
[0060] Further, in step S5, when a target management node fails, a new target management node is determined from other operation authority management nodes to respond to the operation request of the user node through the new target management node, including:
[0061] When a target management node fails, an operation authority management node with the latest local operation rule version is selected from other operation authority management nodes as a new target management node, so as to respond to the operation request of the user node through the new target management node.
[0062] It can be understood that when determining a target management node from multiple operation authority management nodes, generally, the operation authority management node with the most recent operation rule update time and the latest version is selected. If there are multiple operation authority management nodes whose local operation rule versions are all the latest, an operation authority management node can be selected from these operation authority management nodes randomly or according to the principle of the largest or smallest number as the target management node. The specific selection method can be determined according to actual conditions and is not limited here.
[0063] It can be understood that for all operation authority management nodes, the operation authority management node selected as the target management node can be regarded as an active working state, and other operation authority management nodes are regarded as standby states. They only need to synchronize the operation rules and do not need to perform other operations. They are in a low-power consumption waiting to be woken up state.
[0064] The present application discloses an operation authority control method for a big data cluster, including: determining multiple operation authority management nodes with operation authority control functions; determining a target management node from all the operation authority management nodes; responding to the operation request of the user node through the target management node; when the operation rule of the target management node is updated, synchronizing the operation rule to other operation authority management nodes; when the target management node fails, determining a new target management node from other operation authority management nodes to respond to the operation request of the user node through the new target management node. In the control method of the present application, multiple operation authority management nodes with synchronized operation rules are set and the target management node is determined from them. There is always a target management node to respond to the operation request of the user node and provide authority services, thereby meeting the high availability requirements of the user node for the authority service and improving the high reliability of the link between the user node and the big data cluster.
[0065] The embodiment of the present invention discloses a specific method for controlling the operation authority of a big data cluster. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically:
[0066] After step S2 determines a target management node from all operation authority management nodes, it also includes:
[0067] Broadcasting the target management node so that the user node can determine the target location of the object to which the operation request is sent;
[0068] Correspondingly, after determining the new target management node from other operation authority management nodes, step S5 further includes:
[0069] Broadcast the new target management node so that user nodes can update the target location.
[0070] It can be understood that this action is to enable the backend of the user node to accurately locate the target management node according to the target position, so as to accurately send the operation request to the target management node rather than other operation authority management nodes.
[0071] Furthermore, in a traditional user node, after the front end receives the authorized user login information input by the user or administrator, it does not immediately send an operation request to the target management node, but instead sends the operation request at the same time as the heartbeat signal is sent to the target management node. The period of the heartbeat signal is generally about 30 seconds. Therefore, even if the user enters the authorized user login information, the user node cannot immediately obtain a response from the target management node, and the user node cannot immediately obtain the operation permission. For this reason, in this embodiment, the program of the user node can be modified so that the sending condition of the operation request is no longer associated with the heartbeat signal, but the operation request is immediately issued after receiving the user request instruction. That is to say, in this embodiment, the operation request includes the first operation request issued by the user node immediately after receiving the user request instruction, thereby improving the response efficiency of the target management node to the user node.
[0072] Furthermore, the operation request also includes: a secondary operation request sent by the user node after sending the first operation request and receiving rejection information fed back by the target management node.
[0073] It is understandable that in order to further reduce the misjudgment caused by the failure to respond to the operation permission, a secondary operation request can be sent when the first operation request is rejected, so as to improve the response accuracy and accuracy, and improve the user comfort of accessing the big data cluster.
[0074] Accordingly, the present application also discloses an electronic device, see Figure 6 As shown, it includes a processor 11 and a memory 12; wherein, when the processor 11 executes the computer program stored in the memory 12, the following steps are implemented:
[0075] Determine a plurality of operation authority management nodes having an operation authority control function;
[0076] Determine a target management node from all the operation authority management nodes;
[0077] Responding to the operation request of the user node through the target management node;
[0078] When the operation rules of the target management node are updated, the operation rules are synchronized to other operation authority management nodes;
[0079] When the target management node fails, a new target management node is determined from other operation authority management nodes, so as to respond to the operation request of the user node through the new target management node.
[0080] In this embodiment, multiple operation rule synchronized operation authority management nodes are set up and the target management node is determined from them. There is always a target management node to respond to the operation request of the user node and provide authority services, thereby meeting the high availability requirements of the user node for the authority service and improving the high reliability of the link between the user node and the big data cluster.
[0081] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0082] When the target management node fails, an operation authority management node with the latest local operation rule version is selected from other operation authority management nodes as the new target management node, so as to respond to the operation request of the user node through the new target management node.
[0083] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0084] When the operation rules of the target management node are updated, the operation rules are synchronized to the local storage units of other operation authority management nodes.
[0085] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0086] Through the target management node, according to the operation request of the user node, the operation authority of the user node to the big data cluster is adjusted.
[0087] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0088] Broadcasting the target management node so that the user node can determine the target location of the sending object of the operation request;
[0089] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0090] The new target management node is broadcasted to enable the user node to update the target location.
[0091] In some specific embodiments, the operation request includes a first operation request issued by the user node immediately after receiving a user request instruction.
[0092] In some specific embodiments, the operation request further includes:
[0093] The user node sends the secondary operation request after sending the first operation request and receiving rejection information fed back by the target management node.
[0094] Furthermore, the electronic device in this embodiment may further include:
[0095] The input interface 13 is used to obtain a computer program imported from the outside and save the obtained computer program to the memory 12. It can also be used to obtain various instructions and parameters transmitted by an external terminal device and transmit them to the processor 11 so that the processor 11 can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface 13 can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.
[0096] The output interface 14 is used to output various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can obtain various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include but is not limited to a USB interface, a serial interface, and the like.
[0097] The communication unit 15 is used to establish a remote communication connection between the electronic device and the external server so that the electronic device can mount the image file to the external server. In this embodiment, the communication unit 15 may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.
[0098] The keyboard 16 is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.
[0099] The display 17 is used to display the relevant information of the permission operation control process in real time, so that the user can understand the current permission operation control situation in time.
[0100] The mouse 18 can be used to assist the user in inputting data and simplify the user's operation.
[0101] Furthermore, the embodiments of the present application also disclose a readable storage medium, wherein the readable storage medium includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the technical field. The readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0102] Determine a plurality of operation authority management nodes having an operation authority control function;
[0103] Determine a target management node from all the operation authority management nodes;
[0104] Responding to the operation request of the user node through the target management node;
[0105] When the operation rules of the target management node are updated, the operation rules are synchronized to other operation authority management nodes;
[0106] When the target management node fails, a new target management node is determined from other operation authority management nodes, so as to respond to the operation request of the user node through the new target management node.
[0107] In this embodiment, multiple operation rule synchronized operation authority management nodes are set up and the target management node is determined from them. There is always a target management node to respond to the operation request of the user node and provide authority services, thereby meeting the high availability requirements of the user node for the authority service and improving the high reliability of the link between the user node and the big data cluster.
[0108] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0109] When the target management node fails, an operation authority management node with the latest local operation rule version is selected from other operation authority management nodes as the new target management node, so as to respond to the operation request of the user node through the new target management node.
[0110] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0111] When the operation rules of the target management node are updated, the operation rules are synchronized to the local storage units of other operation authority management nodes.
[0112] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0113] Through the target management node, according to the operation request of the user node, the operation authority of the user node to the big data cluster is adjusted.
[0114] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0115] Broadcasting the target management node so that the user node can determine the target location of the sending object of the operation request;
[0116] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:
[0117] The new target management node is broadcasted to enable the user node to update the target location.
[0118] In some specific embodiments, the operation request includes a first operation request issued by the user node immediately after receiving a user request instruction.
[0119] In some specific embodiments, the operation request further includes:
[0120] The user node sends the secondary operation request after sending the first operation request and receiving rejection information fed back by the target management node.
[0121] Correspondingly, the present application embodiment also discloses a big data cluster system, referring to Figure 2 As shown, including:
[0122] A plurality of data storage nodes 10;
[0123] A plurality of operation authority management nodes 20, each of the operation authority management nodes 20 is connected to all the data storage nodes 10;
[0124] One or more user nodes 30;
[0125] an electronic device 40 connected to the user node 30 and the plurality of operation authority management nodes 20,
[0126] In addition to the above nodes, the big data cluster system may also include information storage nodes for storing cluster resource information, user information, permission information, authentication process information, log information, page display data information and other information data. The specific content is not restricted to facilitate backtracking and verification during subsequent operation.
[0127] In some specific embodiments, the electronic device 40 includes a processor and a memory; wherein the processor implements the following steps when executing the computer program stored in the memory:
[0128] Determine a plurality of operation authority management nodes having an operation authority control function;
[0129] Determine a target management node from all the operation authority management nodes;
[0130] Responding to the operation request of the user node through the target management node;
[0131] When the operation rules of the target management node are updated, the operation rules are synchronized to other operation authority management nodes;
[0132] When the target management node fails, a new target management node is determined from other operation authority management nodes, so as to respond to the operation request of the user node through the new target management node.
[0133] In this embodiment, multiple operation rule synchronized operation authority management nodes are set up and the target management node is determined from them. There is always a target management node to respond to the operation request of the user node and provide authority services, thereby meeting the high availability requirements of the user node for the authority service and improving the high reliability of the link between the user node and the big data cluster.
[0134] In some specific embodiments, when the processor executes the computer subroutine stored in the memory, the following steps may be implemented:
[0135] When the target management node fails, an operation authority management node with the latest local operation rule version is selected from other operation authority management nodes as the new target management node, so as to respond to the operation request of the user node through the new target management node.
[0136] In some specific embodiments, when the processor executes the computer subroutine stored in the memory, the following steps may be implemented:
[0137] When the operation rules of the target management node are updated, the operation rules are synchronized to the local storage units of other operation authority management nodes.
[0138] In some specific embodiments, when the processor executes the computer subroutine stored in the memory, the following steps may be implemented:
[0139] Through the target management node, according to the operation request of the user node, the operation authority of the user node to the big data cluster is adjusted.
[0140] In some specific embodiments, when the processor executes the computer subroutine stored in the memory, the following steps may be implemented:
[0141] Broadcasting the target management node so that the user node can determine the target location of the sending object of the operation request;
[0142] In some specific embodiments, when the processor executes the computer subroutine stored in the memory, the following steps may be implemented:
[0143] The new target management node is broadcasted to enable the user node to update the target location.
[0144] In some specific embodiments, the operation request includes a first operation request issued by the user node immediately after receiving a user request instruction.
[0145] In some specific embodiments, the operation request further includes:
[0146] The user node sends the secondary operation request after sending the first operation request and receiving rejection information fed back by the target management node.
[0147] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0148] The above is a detailed introduction to a big data cluster and its operation authority control method and related components provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for controlling operation authority of a big data cluster, characterized in that: include: Determine a plurality of operation authority management nodes having an operation authority control function; Determine a target management node from all the operation authority management nodes; Responding to the operation request of the user node through the target management node; When the operation rules of the target management node are updated, the operation rules are synchronized to other operation authority management nodes; When the target management node fails, a new target management node is determined from other operation authority management nodes, so as to respond to the operation request of the user node through the new target management node; Wherein, when the operation rules of the target management node are updated, the process of synchronizing the operation rules to other operation authority management nodes includes: When the operation rules of the target management node are updated, the operation rules are synchronized to the local storage units of other operation authority management nodes; The process of responding to the operation request of the user node through the target management node includes: By means of the target management node, according to the operation request of the user node, adjusting the operation authority of the user node on the big data cluster; After determining a target management node from all the operation authority management nodes, the method further includes: Broadcasting the target management node so that the user node can determine the target location of the sending object of the operation request; Correspondingly, after determining the new target management node from the other operation authority management nodes, the method further includes: Broadcasting the new target management node so that the user node updates the target location; The operation request includes the first operation request issued by the user node immediately after receiving the user request instruction; The program of the user node is modified so that the sending condition of the operation request is not associated with the heartbeat signal, so that the user node sends the first operation request immediately after receiving the user request instruction; The operation request further includes: The user node sends the secondary operation request after sending the first operation request and receiving rejection information fed back by the target management node.
2. The operation authority control method according to claim 1, characterized in that: The process of determining a new target management node from other operation authority management nodes when the target management node fails, so as to respond to the operation request of the user node through the new target management node, includes: When the target management node fails, an operation authority management node with the latest local operation rule version is selected from other operation authority management nodes as the new target management node, so as to respond to the operation request of the user node through the new target management node.
3. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the operation authority control method of the big data cluster as claimed in claim 1 or 2 when executing the computer program.
4. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the operation authority control method of the big data cluster as claimed in claim 1 or 2 are implemented.
5. A big data cluster system, characterized in that: include: Multiple data storage nodes; A plurality of operation authority management nodes, each of which is connected to all of the data storage nodes; One or more user nodes; An electronic device as claimed in claim 3, connected to the user node and multiple operation authority management nodes.
