Ranger-based rights management method, device and medium

By building entity link relationships and semantic reasoning rules in Apache Ranger, the problems of data tampering and sovereignty infringement caused by multiple Admin users are solved, and data security and user experience are improved.

CN118133267BActive Publication Date: 2024-08-30LINYI UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410314581.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-08-30
Estimated Expiration
2044-03-19

AI Technical Summary

Technical Problem

Apache Ranger has the risk of data tampering and data sovereignty infringement in the case of multiple Admin users, leading to security vulnerabilities and user experience issues.

Method used

By determining the preset data storage location of Ranger and its integrated components, constructing entity link relationships, establishing data mapping, and determining semantic reasoning rules based on mapping relationships, judging and executing the legality of operation requests, and using semantic technology and metadata technology to avoid data Tampering and Sovereignty Violation.

Benefits of technology

It improves the data security within Ranger, protects users’ data sovereignty, enhances the data security management experience, and closes potential security loopholes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118133267B
    Figure CN118133267B
Patent Text Reader

Abstract

The present application provides a Ranger-based permission management method, device and medium, which belongs to the field of data permission management technology. The method determines the preset data storage location of Ranger and its integrated components respectively; constructs the corresponding entity link relationship according to the data information corresponding to the data storage location and the preset semantic web ontology construction tool; establishes data mapping between data information and entity link relationship to obtain the corresponding mapping relationship; determines the semantic reasoning rules corresponding to Ranger and each integrated component respectively according to the mapping relationship; after receiving an operation request for Ranger or an integrated component, determines whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rules. Improve the current internal data security of Ranger, make up for the serious security vulnerabilities that may be caused, protect the data sovereignty of Ranger users, and improve the user experience of data security management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data authority management, and in particular to a Ranger-based authority management method, device, and medium. Background Art

[0002] Big data platform security is the foundation of big data security. In the construction of enterprise-level big data platforms, Hadoop is one of the most mature open source big data platforms, but it faces serious security issues. In 2019 alone, a huge data leak occurred, with more than 4 billion records leaked.

[0003] Apache Ranger (Ranger) is a Hadoop cluster permission framework that provides fine-grained access control and integration services with other security tools. In Ranger, user roles are divided into two categories: super administrator Admin and user User. Admin role users can complete a series of operations such as creating and modifying User users. At the same time, Admin users can establish user groups for unified user permission management.

[0004] In the actual use of Ranger, the inventor found that multiple Admin users are often established for data management, which makes it easy for users of the same level to tamper with each other's information or infringe on data sovereignty during operation. This makes Ranger still insecure and may cause serious security vulnerabilities. It is impossible to protect the data sovereignty of Ranger users, affecting the user experience of data security management. Summary of the invention

[0005] The embodiments of the present application provide a Ranger-based permission management method, device, and medium for solving the current security problems within Ranger, which may cause serious security vulnerabilities, fail to protect the data sovereignty of Ranger users, and affect the user's experience of data security management.

[0006] On the one hand, an embodiment of the present application provides a Ranger-based rights management method, the method comprising:

[0007] Determine the preset data storage locations for Ranger and its integrated components respectively;

[0008] Constructing corresponding entity link relationships according to the data information corresponding to the data storage location and a preset semantic web ontology construction tool;

[0009] Establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship;

[0010] Determine semantic reasoning rules corresponding to the Ranger and each of the integrated components respectively according to the mapping relationship;

[0011] After receiving an operation request for the Ranger or the integrated component, it is determined whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rule.

[0012] In one implementation of the present application, the integrated components include at least a data warehouse analysis system hive, a Hadoop distributed file system HDFS, and HBase.

[0013] In one implementation of the present application, a corresponding entity link relationship is constructed according to the data information corresponding to the data storage location and a preset semantic web ontology construction tool, specifically including:

[0014] In the case where the data information corresponds to the Ranger, the entities, relationships and attributes corresponding to the data information are determined through the semantic web ontology construction tool protege software, so as to establish the entity link relationship between each of the entities based on the entities, the relationships and the attributes.

[0015] In one implementation of the present application, before establishing a data mapping between the data information and the entity link relationship and obtaining a corresponding mapping relationship, the method further includes:

[0016] Acquire connection information of a pre-configured data source corresponding to the data information; the connection information at least includes: a connection address, a connection user name, a connection user password, and a connection driver;

[0017] The data information in the data source is acquired according to the connection information.

[0018] In one implementation of the present application, establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship specifically includes:

[0019] The data information associated with the entity link relationship is determined by protege software, so as to generate the association relationship between the entity, the relationship, the attribute and the data information according to the entity, the relationship and the attribute, and obtain the mapping relationship.

[0020] In one implementation of the present application, the semantic reasoning rules corresponding to the Ranger and each of the integrated components are determined according to the mapping relationship, specifically including:

[0021] The mapping relationship is input into the virtual knowledge graph system Ontop, and a SPARQL definition rule is generated based on the mapping relationship and the authority correspondence between the data belonging objects.

[0022] In one implementation of the present application, the data information corresponding to the integrated component is metadata.

[0023] In one implementation of the present application, the data information is stored in a relational database management system MySQL.

[0024] On the other hand, the embodiment of the present application further provides a Ranger-based rights management device, the device comprising:

[0025] at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0026] Determine the preset data storage locations for Ranger and its integrated components respectively;

[0027] Constructing corresponding entity link relationships according to the data information corresponding to the data storage location and a preset semantic web ontology construction tool;

[0028] Establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship;

[0029] Determine semantic reasoning rules corresponding to the Ranger and each of the integrated components respectively according to the mapping relationship;

[0030] After receiving an operation request for the Ranger or the integrated component, it is determined whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rule.

[0031] On the other hand, the embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0032] Determine the preset data storage locations for Ranger and its integrated components respectively;

[0033] Constructing corresponding entity link relationships according to the data information corresponding to the data storage location and a preset semantic web ontology construction tool;

[0034] Establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship;

[0035] Determine semantic reasoning rules corresponding to the Ranger and each of the integrated components respectively according to the mapping relationship;

[0036] After receiving an operation request for the Ranger or the integrated component, it is determined whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rule.

[0037] Through the above solution, this application can establish semantic reasoning rules for permission management of Ranger or its integrated components, and use semantic technology and metadata technology to prevent multiple users from tampering with each other's data when using Ranger. And prevent Admin users from infringing on the data sovereignty of each other. Thereby improving the current internal data security of Ranger, compensating for possible serious security vulnerabilities, protecting the data sovereignty of Ranger users, and improving the user experience of data security management. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0039] Figure 1 A flow chart of a Ranger-based permission management method in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of a metadata sub-table of HBase in a Ranger-based rights management method in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of a HDFS metadata storage method in a Ranger-based rights management method in an embodiment of the present application;

[0042] Figure 4 It is a structural diagram of a Ranger-based rights management device in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0044] In recent years, with the huge amount of manpower invested by academia, open source communities and enterprises to continuously improve the security solutions of the Hadoop platform, Hadoop has been widely deployed in production and provides a variety of security components to ensure data security.

[0045] Currently, the commonly used big data platform security components in the industry are Apache Sentry and Apache Ranger (Ranger), both of which provide fine-grained access control and integration services with other security tools. In comparison, Ranger's permission allocation is more flexible and provides a management console that can control the security of the entire Hadoop cluster in one place. At the same time, Ranger also supports public cloud object storage, REST API, auditing and other functions that Sentry lacks.

[0046] Ranger currently provides centralized security management, fine-grained access control, and auditing for user access in Apache Hive, HBase, Storm, Knox, Solr, Kafka, YARN, and other components. In Ranger, user roles are divided into two categories: Admin and User. Admin role users can complete a series of operations such as creating and modifying User users. At the same time, Admin users can establish user groups for unified user permission management. Although Apache Ranger is powerful, it still has some security issues, especially when there are multiple Admin users.

[0047] On the one hand, there is a risk of data tampering when operating Ranger; on the other hand, the data sovereignty of Ranger users cannot be guaranteed. Specifically, when there are multiple Admin users in Ranger, such as A and B, during user operation. User B can directly tamper with or even delete the services and policy information set by user A for Hive, HDFS, HBase, etc., resulting in loopholes in user A's access control. In addition, user B can also tamper with the user and user group information created by user A. For another example of user data sovereignty, when there are multiple Admin users in Ranger and they have their own data resources, such as A and B, when user A establishes a policy, he can write the resources owned by user B into the policy, infringing user B's data sovereignty.

[0048] Based on this, the embodiments of the present application provide a Ranger-based permission management method, device and medium to solve the current security issues within Ranger, which may cause serious security vulnerabilities, fail to protect the data sovereignty of Ranger users, and affect the user's experience of data security management.

[0049] The following describes in detail various embodiments of the present application in conjunction with the accompanying drawings.

[0050] The present application embodiment provides a Ranger-based rights management method, such as Figure 1 As shown, the method may include steps S101-S103:

[0051] S101, the server determines preset data storage locations of Ranger and its integrated components respectively.

[0052] It should be noted that the server, as the executor of the Ranger-based permission management method, is only an example. The executor is not limited to the server, and this application does not make any specific limitations on this.

[0053] In an embodiment of the present application, the preset data storage location of Ranger and its integrated components is pre-specified by the user. For example, data information such as Ranger's services, policies, users, roles, user groups, etc. are stored in a relational database management system MySQL database named Ranger. The above-mentioned integrated components at least include a data warehouse analysis system hive, a Hadoop Distributed File System (HDFS), and HBase. The preset data storage location of the integrated component can be a pre-set metadata storage location, that is, the data information is metadata, which is stored in a pre-specified MySQL database.

[0054] hive metadata information includes database information (dbs), data table information (tbls), field information (columns_v2), etc.; HDFS metadata information can include multiple fields: id indicating the file or directory identifier, des indicating the description information of the file or directory, fatherid indicating the parent id of the file or directory, fileordir indicating true for a directory and false for a file, name indicating the directory name or file name, owner indicating the owner of the directory or file, and size indicating the file size (the default size of a directory is 0); HBase metadata information corresponding to the sub-table may include namespace namespace, data table hbasetable, column family columnfamilies, column hbasecolumn, such as Figure 2 As shown, nid is the namespace identifier; tid is the table identifier; fid is the column identifier; Rowkey is the row key;

[0055] The above HDFS metadata information is stored in a path-level tree structure, such as Figure 3 As shown, the paths / a / b / c / d and / a / d / c / b are included.

[0056] In the embodiment of the present application, Ranger is subsequently used with the Hadoop ecosystem, and the Hadoop ecosystem usually uses a relational database such as MySQL to store configuration information and metadata. Therefore, by storing Ranger's data information in MySQL, the integration of Ranger and Hadoop is smoother, making the security management in the entire big data environment more integrated, and facilitating the establishment of Ranger's ontology.

[0057] S102, the server constructs corresponding entity link relationships according to the data information corresponding to the data storage location and a preset semantic web ontology construction tool.

[0058] In the embodiments of the present application, there is a risk of tampering with other users' data when users operate Ranger; there is a problem of infringement of user data sovereignty. On the one hand, the present application uses a permission management method for Ranger to avoid data tampering when users operate Ranger; and uses a permission management method for hive, HDFS, and HBase to solve the problem of data sovereignty infringement.

[0059] For Ranger operation, this application builds corresponding entity link relationships based on the data information corresponding to the data storage location and the preset semantic web ontology construction tool, including:

[0060] When the data information corresponds to Ranger, the entities, relationships and attributes corresponding to the data information are determined through the semantic web ontology construction tool protege software, so as to establish entity link relationships between entities based on the entities, relationships and attributes.

[0061] That is to say, when the data information is related data tables such as users, user groups, policies, services, etc. stored in the database by Ranger, this application can use protege software to establish an ontology, convert entity and relationship attributes into a form that can be understood by the computer, and establish an entity link relationship. For example, two entities such as RangerUser and RangerGroup have corresponding attributes x1 and x2 respectively, and there is a relationship m between the two. Then, there is an entity link relationship between the two entities. Define entities (RangerUser, RangerGroup, RangerPolicy, RangerService, etc.), attributes (RserviceID, RpolicyID, RuserName, RresourceValue, etc.) and relationships (createUser, createService, createPoliicy, containPolicy, containUser, etc.) in the protege software. Thereby, the concepts in the field are clearly defined, ambiguity and confusion are avoided, and the comprehensibility and stability of the system are improved.

[0062] For hive, HDFS, and HBase, the server also uses protege software to establish the relationship between the entities in the data information. Please refer to the above embodiments, and this application will not go into details here.

[0063] S103, the server establishes a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship.

[0064] In the embodiment of the present application, establishing data mapping is an important step after the protege software establishes the ontology, the purpose of which is to associate the established ontology with the actual data source. Among them, before establishing the data mapping between the data information and the entity link relationship and obtaining the corresponding mapping relationship, it includes:

[0065] The server obtains connection information of a pre-configured data source corresponding to the data information. The connection information includes at least: a connection address, a connection user name, a connection user password, and a connection driver. According to the connection information, the data information in the data source is obtained.

[0066] In other words, the server needs to connect to a pre-configured data source, which is pre-configured with connection information: connection URL, connection username, connection password, and JDBC driver class. The server can obtain the SQL query statement and use the connection information to extract the required data information from the pre-configured data source.

[0067] Afterwards, the server establishes a data mapping between the data information and the entity link relationship to obtain the corresponding mapping relationship, which specifically includes:

[0068] The server determines the data information associated with the entity link relationship through the protege software, so as to generate the association relationship between the entity, relationship and attribute and the data information according to the entity, relationship and attribute, and obtain the mapping relationship.

[0069] The server can construct data mapping through pre-written mapping statements, correspond the obtained data information with the entities, attributes and relationships in the ontology, and thus generate corresponding mapping relationships.

[0070] Through mapping, we can establish the correspondence between entities, attributes and relationships in the ontology and fields and tables in the actual data, and realize the connection between the two. At the same time, data mapping helps to integrate information from different data sources. By mapping data from different data sources to the ontology, we can achieve interoperability across data sources, so that data from different sources can be queried and analyzed under a unified semantic framework.

[0071] If the mapping relationship is established with hive, HDFS, or HBase, the above embodiments may be referred to to establish data mapping between metadata information and entities, attributes, and relationships.

[0072] S104, the server determines semantic reasoning rules corresponding to Ranger and each integrated component respectively according to the mapping relationship.

[0073] After obtaining the mapping relationship, the server determines the semantic reasoning rules corresponding to Ranger and each integrated component according to the mapping relationship, including:

[0074] The mapping relationship is input into the virtual knowledge graph system Ontop, and the SPARQL definition rules are generated based on the mapping relationship and the permission correspondence between the data belonging objects.

[0075] In other words, the server can use Ontop to define rules using mapping relationships and SPARQL, and generate SPARQL definition rules, thereby enabling semantic reasoning of data ownership objects and their corresponding data permissions.

[0076] Ontop is an ontology reasoning engine based on open source technology. It allows data in relational databases to be exposed as virtual ontologies, supports SPARQL queries on this virtual ontology, and uses the reasoning capabilities of the ontology to enrich query results.

[0077] Take the SPARQL definition rules as an example. For example, when user A needs to modify the permissions of user B in a policy in a service, because user B's personal information has not been changed, there is no need to infer whether there is a creation relationship between users AB. Instead, you only need to use the SPARQL defined rules to infer whether user A is the Admin role, whether there is a creation relationship between user A and the service, whether there is a creation relationship between user A and the service, and whether there is a creation relationship between user A and the policy. Taking the example of inferring whether a user is the creator of a policy by using the user ID and the policy ID, through the SPARQL definition rules, it can be determined whether an entity RangerUser with an RuserID attribute value of 25 has created an entity RangerPolicy with an RpolicyID attribute value of 20. The createPolicy relationship is the only relationship between the RangerUser entity and the RangerPolicy entity.

[0078] If the server determines that user A needs to modify user B's personal information, it needs to infer whether there is a creation relationship between the two. The creation relationship is included in the mapping relationship and can be inferred by SPARQL definition rules. For example, the creation relationship can be user A creating user B. User A calls the user interface ( / service / xusers / secure / users / ) and submits user B's related information. After user B is successfully created, the metadata of user B will be saved. In addition to user B's basic information, the metadata also contains information such as the creator and user group of user B. The creation relationship can be recorded in the mapping relationship.

[0079] In one embodiment of the present application, assuming that user A needs to modify the personal information of user B, the steps are as follows:

[0080] S201, inferring and judging whether the role identity of user A is an Admin user, if the inference result is yes, proceed to S202, otherwise user A is denied modification;

[0081] S202, reasoning and judging whether there is a created relationship between user A and user B, if the reasoning result is yes, proceed to S203, otherwise user A is denied modification;

[0082] S203: User A modifies user B's information.

[0083] The above rules are defined by SPARQL to implement semantic reasoning to determine whether the relationship between entities exists. If the above reasoning results are all true, user A can modify the permissions of user B; otherwise, if there is a false result, user A has no right to modify. Therefore, semantic reasoning is used to ensure the security of user services and policies, maintain the rights and interests of service and policy owners, and compensate for potential risks. The relationship between entities can include creation relationship and inclusion relationship.

[0084] For hive, HDFS, and HBase, semantic reasoning also needs to be set. For example, hive determines the relationship between the user and the database, data table, data field, etc., and then determines whether the user has the right to create, modify, delete, and other operations on the database, data table, data field, etc. for services and policies. For creating corresponding SPARQL definition rules, you can refer to the above embodiments, which will not be repeated here. Similarly, HDFS is set up such as: implementing semantic reasoning to determine whether there is a relationship between the root user and the path / hbase in HDFS. If the above reasoning is true, the root user can create a policy operation on the path / hbase in HDFS; otherwise, the root user has no right to modify the SPARQL definition rule. For HBase, set up SPARQL definition rules such as determining the relationship between the user and the namespace, table, column family, and column, and then determining whether the user has the right to create, modify, delete, and other operations on the user's namespace, column family, and column for services and policies.

[0085] S105, after receiving an operation request for Ranger or an integrated component, the server determines whether to execute the operation corresponding to the operation request according to corresponding semantic reasoning rules.

[0086] In actual use, users can send operation requests to the server, such as calling Ranger-related API interfaces, such as: service interface ( / service / public / v2 / api / service), policy interface ( / service / public / v2 / api / policy), user interface ( / service / xusers / secure / users / ), and user group interface ( / service / xusers / groups). Before adding, modifying, or deleting users, user groups, services, policies, etc. in Ranger, semantic reasoning is performed to determine whether the user has the right to add, modify, or delete policies, services, user information, user groups, etc. If it meets the relevant settings, it will not be intercepted. Otherwise, the Ranger API interface cannot be called for operation.

[0087] For example, before a user operates a database, data table, data field, etc. in Hive, semantic reasoning is performed to determine whether the user has the right to create, modify, delete, and other operations on services and policies in the database, data table, data field, etc. If the relevant settings are met, the operation will not be intercepted, otherwise the operation cannot be performed.

[0088] For example, before a user operates a file or directory in HDFS, semantic reasoning is performed to determine whether the user has the right to create, modify, delete, and other operations on the file or directory in accordance with services and policies. If the relevant settings are met, the operation will not be intercepted, otherwise the operation cannot be performed.

[0089] For example, before a user operates a namespace, table, column family, or column in HBase, semantic reasoning is performed to determine whether the user has the right to create, modify, or delete services and policies on the namespace, table, column family, or column. If the relevant settings are met, the operation will not be intercepted; otherwise, the operation cannot be performed.

[0090] Through the above solution, this application can establish semantic reasoning rules for permission management of Ranger or its integrated components, and use semantic technology and metadata technology to prevent multiple users from tampering with each other's data when using Ranger. And prevent Admin users from infringing on the data sovereignty of each other. Thereby improving the current internal data security of Ranger, compensating for possible serious security vulnerabilities, protecting the data sovereignty of Ranger users, and improving the user experience of data security management.

[0091] Figure 4 A schematic diagram of a Ranger-based rights management device provided in an embodiment of the present application, such as Figure 4 As shown, the device includes:

[0092] At least one processor; and a memory in communication with the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

[0093] Determine the preset data storage locations of Ranger and its integrated components respectively. Construct the corresponding entity link relationship according to the data information corresponding to the data storage location and the preset semantic web ontology construction tool. Establish data mapping between the data information and the entity link relationship to obtain the corresponding mapping relationship. Determine the semantic reasoning rules corresponding to Ranger and each integrated component respectively according to the mapping relationship. When receiving an operation request for Ranger or an integrated component, determine whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rule.

[0094] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0095] Determine the preset data storage locations of Ranger and its integrated components respectively. Construct the corresponding entity link relationship according to the data information corresponding to the data storage location and the preset semantic web ontology construction tool. Establish data mapping between the data information and the entity link relationship to obtain the corresponding mapping relationship. Determine the semantic reasoning rules corresponding to Ranger and each integrated component respectively according to the mapping relationship. When receiving an operation request for Ranger or an integrated component, determine whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rule.

[0096] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0097] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0098] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0099] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A Ranger-based rights management method, characterized in that: The method comprises: Determine the preset data storage locations for Ranger and its integrated components respectively; Constructing corresponding entity link relationships according to the data information corresponding to the data storage location and a preset semantic web ontology construction tool; Establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship; Determine semantic reasoning rules corresponding to the Ranger and each of the integrated components respectively according to the mapping relationship; After receiving an operation request for the Ranger or the integrated component, determining whether to execute the operation corresponding to the operation request according to the corresponding semantic reasoning rule; According to the data information corresponding to the data storage location and the preset semantic web ontology construction tool, the corresponding entity link relationship is constructed, specifically including: In the case where the data information corresponds to the Ranger, the entities, relationships and attributes corresponding to the data information are determined by the semantic web ontology building tool protege software, so as to establish the entity link relationship between the entities according to the entities, the relationships and the attributes; each entity includes at least: RangerUser, RangerGroup, RangerPolicy, RangerService; Wherein, determining the semantic reasoning rules corresponding to the Ranger and each of the integrated components respectively according to the mapping relationship specifically includes: The mapping relationship is input into the virtual knowledge graph system Ontop, and a SPARQL definition rule is generated based on the mapping relationship and the authority correspondence between the data belonging objects.

2. According to a Ranger-based rights management method according to claim 1, it is characterized in that: The integrated components at least include the data warehouse analysis system hive, the Hadoop distributed file system HDFS, and HBase.

3. According to the Ranger-based rights management method of claim 1, it is characterized in that: Before establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship, the method further includes: Acquire connection information of a pre-configured data source corresponding to the data information; the connection information at least includes: a connection address, a connection user name, a connection user password, and a connection driver; The data information in the data source is acquired according to the connection information.

4. According to claim 3, a Ranger-based rights management method is characterized in that: Establishing a data mapping between the data information and the entity link relationship to obtain a corresponding mapping relationship specifically includes: The data information associated with the entity link relationship is determined by protege software, so as to generate the association relationship between the entity, the relationship, the attribute and the data information according to the entity, the relationship and the attribute, and obtain the mapping relationship.

5. According to the Ranger-based rights management method of claim 2, it is characterized in that: The data information corresponding to the integrated component is metadata.

6. A Ranger-based rights management method according to any one of claims 1 to 5, characterized in that: The data information is stored in the relational database management system MySQL.

7. A Ranger-based rights management device, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a Ranger-based permission management method as described in any one of claims 1 to 6 above.

8. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions can execute a Ranger-based rights management method as described in any one of claims 1 to 6 above.

Citation Information

Patent Citations

  • Authority control method and device

    CN111475802A

  • Knowledge ontology construction method, terminal equipment and storage medium

    CN112699248A