Data loading method, device, computer equipment and storage medium

By disabling the security component in the big data cluster system from judging the default user permissions of the computing analysis engine and judging the actual user permissions, the problem of the security component intercepting normal operations is solved and the data is loaded successfully.

CN112580088BActive Publication Date: 2024-08-23BEIJING GRIDSUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910940431.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-30
Publication Date
2024-08-23
Estimated Expiration
2039-09-30

AI Technical Summary

Technical Problem

In a big data cluster system, the security component may intercept the user's normal operations, causing the operation to fail. Especially when the security component determines whether the default user of the computing analysis engine has the permission to perform the target operation, the actual operating user is not the default user, resulting in permission failure. Error in judgment.

Method used

In the big data cluster system, when the target operation of loading file data into the internal table of the computing analysis engine is detected, the security component is prohibited from judging whether the default user of the computing analysis engine has permissions, and judges whether the actual operating user has the corresponding permissions. Only when Load when the user has permission.

Benefits of technology

It avoids the security component's interception of file data loading, ensures successful operation, and avoids operation failure caused by incorrect permission judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112580088B
    Figure CN112580088B
Patent Text Reader

Abstract

The present application relates to a data loading method, device, computer equipment and storage medium, and belongs to the field of big data technology. The method includes: when a target operation of loading file data in a file system of a big data cluster system into an internal table in a computing and analysis engine of the big data cluster system is detected, prohibiting the security component from judging whether the default user of the computing and analysis engine has the authority to perform the target operation; judging whether the user corresponding to the target operation has the authority to perform the target operation; when the user corresponding to the target operation has the authority to perform the target operation, loading the file data into the internal table. The use of this method can avoid the failure of normal operations of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a data loading method, apparatus, computer equipment and storage medium. Background Art

[0002] At present, in many application scenarios, computer devices need to process and analyze a large amount of data, so big data cluster systems have emerged. Among them, a big data cluster system is a system that can perform distributed processing on a large amount of data, and it can process data in a reliable, efficient and scalable manner. For example, Hadoop is a relatively common big data cluster system.

[0003] In order to ensure the security of big data cluster systems, many big data cluster systems are installed with security components. For example, the Ranger component is a common security component of big data cluster systems. Security components can implement functions such as permission authentication.

[0004] However, in some cases, security components may intercept users' normal operations in the big data cluster system, causing the users' normal operations to fail. Summary of the invention

[0005] Based on this, it is necessary to provide a data loading method, device, computer equipment and storage medium that can avoid the failure of normal user operations in order to solve the above technical problems.

[0006] In a first aspect, a data loading method is provided for use in a big data cluster system having a security component installed therein, the method comprising:

[0007] When a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected, prohibiting the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation;

[0008] Determine whether the user corresponding to the target operation has the authority to perform the target operation;

[0009] When the user corresponding to the target operation has the authority to perform the target operation, the file data is loaded into the internal table.

[0010] In one embodiment, prohibiting the security component from determining whether the default user of the computing analysis engine has the authority to perform the target operation includes:

[0011] The security component is prohibited from determining whether the default user of the computing and analysis engine is the owner of the file data.

[0012] In one embodiment, determining whether the user corresponding to the target operation has the authority to perform the target operation includes:

[0013] Determine whether the user corresponding to the target operation has the read and write permissions for the file data;

[0014] Determine whether the user corresponding to the target operation is the owner of the file data.

[0015] In one embodiment, determining whether the user corresponding to the target operation has the authority to perform the target operation further includes:

[0016] Determine whether the user corresponding to the target operation has the write permission for the internal table.

[0017] In one embodiment, when the user corresponding to the target operation has the authority to perform the target operation, loading the file data into the internal table includes:

[0018] When the user corresponding to the target operation has read and write permissions for the file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for the internal table, the file data is loaded into the internal table.

[0019] In one embodiment, determining whether the user corresponding to the target operation has the authority to perform the target operation includes:

[0020] Obtain target identification information of the user currently logged in to the big data cluster system, and use the target identification information as identification information of the user corresponding to the target operation;

[0021] The permission database is queried according to the identification information, and it is determined according to the query result whether the user corresponding to the target operation has the permission to perform the target operation. The permission database stores at least one corresponding relationship between the identification information and the permission.

[0022] In one embodiment, the method further comprises:

[0023] When the user corresponding to the target operation does not have the authority to perform the target operation, the target operation of loading the file data into the internal table is prohibited from being executed.

[0024] In a second aspect, a data loading device is provided, which is arranged in a big data cluster system having a security component installed therein, and the device comprises:

[0025] A first prohibition module is used to prohibit the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation when a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected;

[0026] A judgment module is used to judge whether the user corresponding to the target operation has the authority to perform the target operation;

[0027] The loading module is used to load the file data into the internal table when the user corresponding to the target operation has the authority to perform the target operation.

[0028] In one of the embodiments, the first prohibition module is specifically used to prohibit the security component from determining whether the default user of the computing and analysis engine is the owner of the file data.

[0029] In one embodiment, the judgment module is specifically used to judge whether the user corresponding to the target operation has the read and write permissions of the file data; and judge whether the user corresponding to the target operation is the owner of the file data.

[0030] In one of the embodiments, the determination module is further used to determine whether the user corresponding to the target operation has write permission for the internal table.

[0031] In one of the embodiments, the loading module is specifically used to load the file data into the internal table when the user corresponding to the target operation has read and write permissions for the file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for the internal table.

[0032] In one of the embodiments, the judgment module is specifically used to obtain the target identification information of the user currently logged into the big data cluster system, and use the target identification information as the identification information of the user corresponding to the target operation; query the permission database based on the identification information, and judge whether the user corresponding to the target operation has the permission to perform the target operation based on the query result, wherein the permission database stores at least one corresponding relationship between identification information and permission.

[0033] In one of the embodiments, the device further comprises a second prohibition module;

[0034] The second prohibition module is used to prohibit the target operation of loading the file data into the internal table when the user corresponding to the target operation does not have the authority to perform the target operation.

[0035] According to a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods in the first aspect when executing the computer program.

[0036] According to a fourth aspect, 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 steps of any one of the methods in the first aspect are implemented.

[0037] The technical solution provided by the embodiments of the present application has at least the following beneficial effects:

[0038] By prohibiting the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation and determining whether the user corresponding to the target operation has the authority to perform the target operation when a target operation of loading file data in the file system of the big data cluster system into the internal table of the computing and analysis engine of the big data cluster system is detected, and then loading the file data into the internal table when the user corresponding to the target operation has the authority to perform the target operation, it is possible to prevent the security component from intercepting the target operation of loading the file data into the internal table, thereby preventing the failure of the target operation of loading the file data into the internal table. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of a data loading method in one embodiment;

[0040] Figure 2 A schematic diagram of a data loading method in one embodiment;

[0041] Figure 3 is a structural block diagram of a data loading device in one embodiment;

[0042] Figure 4 is a structural block diagram of a data loading device in one embodiment;

[0043] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] The data loading method provided in the embodiment of the present application can be applied to a computer device, wherein the computer device can be installed with a big data cluster system, and the big data cluster system can be installed with a security component. Optionally, the big data cluster system can be a Hadoop system, and the security component can be a Ranger component.

[0046] Please refer to Figure 1 , which shows a schematic diagram of a data loading method provided by an embodiment of the present application, the data loading method can be applied to a computer device installed with a big data cluster system, wherein the big data cluster system can be installed with a security component, such as Figure 1 As shown, the data loading method may include the following steps:

[0047] Step 101: When a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected, the computer device prohibits the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation.

[0048] Optionally, in an embodiment of the present application, the big data cluster system may be a Hadoop system, the file system in the big data cluster system may be an HDFS file system, and the computing and analysis engine in the big data cluster system may be a HIVE engine. In this case, the target operation described above refers to the operation of loading file data in the HDFS file system into an internal table of HIVE, and the default user of the computing and analysis engine refers to the default user of HIVE. Normally, the default user of HIVE may be referred to as a HIVE user.

[0049] Optionally, in an embodiment of the present application, the security component may be a Ranger component. Optionally, determining whether the default user of the computing and analysis engine has the authority to perform the target operation may refer to: determining whether the default user of the computing and analysis engine is the owner of the file data. In other words, determining whether the default user of the computing and analysis engine has the authority to perform the target operation may refer to: determining whether the default user of the computing and analysis engine owns the file data.

[0050] Normally, when loading file data in the file system of a big data cluster system into an internal table in the computing and analysis engine of the big data cluster system, for the sake of data security, the security component will perform an operation to determine whether the default user of the computing and analysis engine has the authority to perform the target operation. However, in actual applications, the user who performs the above-mentioned target operation is not the default user of the computing and analysis engine in most cases. For example, when a user logs in to the big data cluster system according to his own identification information, the user who performs the target operation is the user who logs in to the big data cluster system. Therefore, the security component performs an operation to determine whether the default user of the computing and analysis engine has the authority to perform the target operation. The operation does not have the effect of ensuring data security, but may cause the above-mentioned target operation to fail. For example, when the default user of the computing and analysis engine does not have the authority to perform the target operation, the security component will prohibit the file data in the file system of the big data cluster system from being loaded into the internal table in the computing and analysis engine of the big data cluster system.

[0051] In order to avoid the failure of the target operation of loading file data into the internal table, in an embodiment of the present application, the computer device can prohibit the security component from determining whether the default user of the computing analysis engine has the authority to perform the target operation.

[0052] Step 102: The computer device determines whether the user corresponding to the target operation has the authority to perform the target operation.

[0053] Optionally, the user corresponding to the target operation refers to the user who actually performs the target operation. As described above, when the user logs in to the big data cluster system according to his own identification information, the user corresponding to the target operation refers to the user who logs in to the big data cluster system.

[0054] Optionally, determining whether the user corresponding to the target operation has the permission to perform the target operation may include: determining whether the user corresponding to the target operation has the read and write permissions for the file data, determining whether the user corresponding to the target operation is the owner of the file data, and determining whether the user corresponding to the target operation has at least one of the permissions to write to an internal table.

[0055] Optionally, in one embodiment of the present application, the security component in the big data cluster system may execute "determining whether the user corresponding to the target operation has the authority to perform the target operation". Optionally, in another embodiment of the present application, the file system and the computing analysis engine in the big data cluster system may jointly execute "determining whether the user corresponding to the target operation has the authority to perform the target operation". Optionally, in yet another embodiment of the present application, the authentication component in the big data cluster system may execute "determining whether the user corresponding to the target operation has the authority to perform the target operation". The embodiments of the present application do not make specific limitations on this.

[0056] Among them, judging whether the user corresponding to the target operation has the read and write permissions for the file data may refer to: judging whether the user corresponding to the target operation has the permission to read the file data, and judging whether the user corresponding to the target operation has the permission to write the file data.

[0057] Determining whether the user corresponding to the target operation is the owner of the file data may refer to: determining whether the user corresponding to the target operation owns the file data.

[0058] Judging whether the user corresponding to the target operation has the write permission to the internal table may refer to: judging whether the user corresponding to the target operation has the write permission to the internal table.

[0059] It should be pointed out that, in actual applications, the computer device may first determine whether the user corresponding to the target operation has the authority to perform the target operation, and then prohibit the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation; it may also first prohibit the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation, and then determine whether the user corresponding to the target operation has the authority to perform the target operation; it may also simultaneously prohibit the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation, and determine whether the user corresponding to the target operation has the authority to perform the target operation. The embodiments of the present application do not specifically limit this.

[0060] Step 103: When the user corresponding to the target operation has the authority to perform the target operation, the computer device loads the file data into the internal table.

[0061] When it is determined that the user corresponding to the target operation has the authority for the target operation, the computer device can load the file data into the internal table, thereby completing the target operation.

[0062] Optionally, in one embodiment of the present application, when a computer device determines that the user corresponding to the target operation has read and write permissions for file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for an internal table, the computer device can determine that the user corresponding to the target operation has permissions for the target operation.

[0063] In the data loading method provided in the embodiment of the present application, when a target operation of loading file data in the file system of a big data cluster system into an internal table in a computing and analysis engine of the big data cluster system is detected, the security component is prohibited from judging whether the default user of the computing and analysis engine has the authority to perform the target operation, and judging whether the user corresponding to the target operation has the authority to perform the target operation. Then, when the user corresponding to the target operation has the authority to perform the target operation, the file data is loaded into the internal table. In this way, the security component can be prevented from intercepting the above-mentioned target operation of loading the file data into the internal table, thereby avoiding the failure of the above-mentioned target operation of loading the file data into the internal table.

[0064] The present application embodiment further provides another data loading method. Based on the above embodiment, the data loading method may further include the following steps:

[0065] When the user corresponding to the target operation does not have the authority to perform the target operation, the computer device prohibits execution of the target operation of loading the file data into the internal table.

[0066] Optionally, in an embodiment of the present application, the user corresponding to the target operation does not have permission to perform the target operation, which may mean that: the user corresponding to the target operation does not have permission to read and write file data, or, the user corresponding to the target operation is not the owner of the file data, or, the user corresponding to the target operation does not have permission to write to an internal table.

[0067] Optionally, in an embodiment of the present application, after prohibiting the execution of the target operation of loading file data into the internal table, the computer device may generate and display reason information for prohibiting execution to the user corresponding to the target operation, and the reason information for prohibiting execution is used to indicate the reason why the computer device prohibits the execution of the target operation of loading file data into the internal table. For example, the reason information for prohibiting execution may be: because you do not have read and write permissions for the file data, you cannot load the file data into the internal table.

[0068] Please refer to Figure 2 The present application embodiment also provides another data loading method. Based on any of the above embodiments, the above step 102 may include the technical process shown in the following steps:

[0069] Step 1021: The computer device obtains the target identification information of the user currently logged into the big data cluster system, and uses the target identification information as the identification information of the user corresponding to the target operation.

[0070] Step 1022: The computer device queries the authority database according to the target identification information, and determines whether the user corresponding to the target operation has the authority to perform the target operation according to the query result.

[0071] The authority database stores at least one corresponding relationship between identification information and authority.

[0072] Optionally, in an embodiment of the present application, the permission database may store a correspondence between identification information and read and write permissions for file data, and a computer device may query the permission database based on the target identification information, thereby determining whether the user corresponding to the target operation has read and write permissions for file data based on the query results.

[0073] Optionally, in an embodiment of the present application, the permission database may store identification information of the user who owns the file data, and the computer device may query the permission database based on the target identification information, thereby determining whether the user corresponding to the target operation is the user who owns the file data based on the query result.

[0074] Optionally, in an embodiment of the present application, the permission database may store a correspondence between identification information and write permissions of an internal table, and a computer device may query the permission database based on the target identification information, thereby determining whether the user corresponding to the target operation has write permissions of the internal table based on the query results.

[0075] It should be understood that although Figures 1 to 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 1 to 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0076] Please refer to Figure 3 , which shows a schematic diagram of a data loading device 300 provided in an embodiment of the present application, such as Figure 3 As shown, the data loading device 300 may include: a first prohibition module 301 , a judgment module 302 and a loading module 303 .

[0077] Among them, the first prohibition module 301 is used to prohibit the security component from determining whether the default user of the computing and analysis engine has the authority to perform the target operation when a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected.

[0078] The determination module 302 is used to determine whether the user corresponding to the target operation has the authority to perform the target operation.

[0079] The loading module 303 is used to load the file data into the internal table when the user corresponding to the target operation has the authority to perform the target operation.

[0080] In one embodiment of the present application, the first prohibition module 301 is specifically used to prohibit the security component from determining whether the default user of the computing and analysis engine is the owner of the file data.

[0081] In one embodiment of the present application, the judgment module 302 is specifically used to judge whether the user corresponding to the target operation has the read and write permissions of the file data; and judge whether the user corresponding to the target operation is the owner of the file data.

[0082] In one embodiment of the present application, the determination module 302 is further used to determine whether the user corresponding to the target operation has the write permission of the internal table.

[0083] In one embodiment of the present application, the loading module 303 is specifically used to load the file data into the internal table when the user corresponding to the target operation has read and write permissions for the file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for the internal table.

[0084] In one embodiment of the present application, the judgment module 302 is specifically used to obtain the target identification information of the user currently logged in to the big data cluster system, and use the target identification information as the identification information of the user corresponding to the target operation; query the permission database based on the identification information, and judge whether the user corresponding to the target operation has the permission to perform the target operation based on the query result, and the permission database stores at least one corresponding relationship between identification information and permission.

[0085] Please refer to Figure 3 , which shows a schematic diagram of another data loading device 400 provided in an embodiment of the present application, such as Figure 4 As shown, the data loading device 400 may further include a second prohibition module 304 in addition to the modules included in the data loading device 300 .

[0086] The prohibition module 304 is used to prohibit the target operation of loading the file data into the internal table when the user corresponding to the target operation does not have the authority to perform the target operation.

[0087] For the specific definition of the data loading device, please refer to the definition of the data loading method above, which will not be repeated here. Each module in the above-mentioned data loading device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0088] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device can be the permission database described above. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a data loading method is implemented.

[0089] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0090] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0091] When a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected, the security component is prohibited from determining whether the default user of the computing and analysis engine has the authority to perform the target operation; determining whether the user corresponding to the target operation has the authority to perform the target operation; and loading the file data into the internal table when the user corresponding to the target operation has the authority to perform the target operation.

[0092] In one embodiment, when the processor executes the computer program, the following steps are also implemented: prohibiting the security component from determining whether the default user of the computing analysis engine is the owner of the file data.

[0093] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining whether the user corresponding to the target operation has read and write permissions for the file data; and determining whether the user corresponding to the target operation is the owner of the file data.

[0094] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining whether the user corresponding to the target operation has the write permission for the internal table.

[0095] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the user corresponding to the target operation has read and write permissions for the file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for the internal table, the file data is loaded into the internal table.

[0096] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining target identification information of the user who is currently logged into the big data cluster system, and using the target identification information as identification information of the user corresponding to the target operation; querying a permission database based on the identification information, and determining whether the user corresponding to the target operation has the authority to perform the target operation based on the query result, wherein the permission database stores at least one corresponding relationship between identification information and authority.

[0097] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when the user corresponding to the target operation does not have the authority to perform the target operation, the target operation of loading the file data into the internal table is prohibited.

[0098] In one embodiment, 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 following steps are implemented:

[0099] When a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected, the security component is prohibited from determining whether the default user of the computing and analysis engine has the authority to perform the target operation; determining whether the user corresponding to the target operation has the authority to perform the target operation; and loading the file data into the internal table when the user corresponding to the target operation has the authority to perform the target operation.

[0100] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: prohibiting the security component from determining whether the default user of the computing analysis engine is the owner of the file data.

[0101] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether the user corresponding to the target operation has read and write permissions for the file data; and determining whether the user corresponding to the target operation is the owner of the file data.

[0102] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining whether the user corresponding to the target operation has the write permission for the internal table.

[0103] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the user corresponding to the target operation has read and write permissions for the file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for the internal table, the file data is loaded into the internal table.

[0104] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining target identification information of the user currently logged into the big data cluster system, and using the target identification information as identification information of the user corresponding to the target operation; querying a permission database based on the identification information, and determining whether the user corresponding to the target operation has the authority to perform the target operation based on the query result, wherein the permission database stores at least one corresponding relationship between identification information and authority.

[0105] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the user corresponding to the target operation does not have the authority to perform the target operation, the target operation of loading the file data into the internal table is prohibited.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A data loading method, characterized in that: In a big data cluster system having a security component installed, the method comprises: When a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected, prohibiting the security component from determining whether a default user of the computing and analysis engine is the owner of the file data; Determine whether the user corresponding to the target operation has the authority to perform the target operation; When the user corresponding to the target operation has the authority to perform the target operation, the file data is loaded into the internal table; when the user corresponding to the target operation does not have the authority to perform the target operation, loading the file data into the internal table is prohibited.

2. The method according to claim 1, characterized in that The determining whether the user corresponding to the target operation has the authority to perform the target operation includes: Determine whether the user corresponding to the target operation has the read and write permissions for the file data; It is determined whether the user corresponding to the target operation is the owner of the file data.

3. The method according to claim 2, characterized in that The determining whether the user corresponding to the target operation has the authority to perform the target operation further includes: Determine whether the user corresponding to the target operation has write permission for the internal table.

4. The method according to claim 3, characterized in that When the user corresponding to the target operation has the authority to perform the target operation, loading the file data into the internal table includes: When the user corresponding to the target operation has read and write permissions for the file data, the user corresponding to the target operation is the owner of the file data, and the user corresponding to the target operation has write permissions for the internal table, the file data is loaded into the internal table.

5. The method according to claim 1, characterized in that: The determining whether the user corresponding to the target operation has the authority to perform the target operation includes: Obtain target identification information of a user currently logging into the big data cluster system, and use the target identification information as identification information of a user corresponding to the target operation; A permission database is queried according to the target identification information, and whether the user corresponding to the target operation has the permission to perform the target operation is determined according to the query result. The permission database stores at least one corresponding relationship between identification information and permission.

6. The method according to claim 1, characterized in that The method further comprises: When the user corresponding to the target operation does not have the authority to perform the target operation, the target operation of loading the file data into the internal table is prohibited from being executed.

7. The method according to claim 1, characterized in that The big data cluster system is a Hadoop system.

8. A data loading device, characterized in that: The device is arranged in a big data cluster system having a security component installed therein, and comprises: A first prohibition module is used to prohibit the security component from determining whether a default user of the computing and analysis engine is the owner of the file data when a target operation of loading file data in the file system of the big data cluster system into an internal table in the computing and analysis engine of the big data cluster system is detected; A judgment module, used to judge whether the user corresponding to the target operation has the authority to perform the target operation; A loading module is used to load the file data into the internal table when the user corresponding to the target operation has the authority to perform the target operation; when the user corresponding to the target operation does not have the authority to perform the target operation, prohibit the file data from being loaded into the internal table.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.