WO2020233252A1 - 一种诊断Spark应用的方法及装置 - Google Patents
一种诊断Spark应用的方法及装置 Download PDFInfo
- Publication number
- WO2020233252A1 WO2020233252A1 PCT/CN2020/083381 CN2020083381W WO2020233252A1 WO 2020233252 A1 WO2020233252 A1 WO 2020233252A1 CN 2020083381 W CN2020083381 W CN 2020083381W WO 2020233252 A1 WO2020233252 A1 WO 2020233252A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- diagnostic
- index
- diagnosis
- spark application
- spark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
- G06F11/366—Debugging of software using diagnostics
Definitions
- the embodiments of the present application relate to the field of Fintech, and in particular, to a method and device for diagnosing Spark applications.
- Spark technology is no exception.
- Spark technology puts forward higher requirements.
- Spark technology is a fast and general-purpose computing engine designed for large-scale data processing. Spark uses memory computing technology, which can analyze and compute in memory when the data has not been written to the hard disk.
- the existing Spark application diagnosis is to collect and analyze the logs during the running process after the Spark application runs, determine the problems existing in the Spark application running based on the preset rule method, and make corresponding adjustments.
- the embodiments of the application provide a method and device for diagnosing Spark applications, which are used to collect the running indicators of the Spark application in real time during the running process of the Spark application, perform real-time diagnosis of the problems in the running of the Spark application, and provide effective diagnosis Measures.
- an embodiment of the present application provides a method for diagnosing a Spark application.
- the method can be executed by a runtime diagnostic tool to which the method for diagnosing a Spark application is provided in the financial technology field, including: obtaining information about the Spark application Context information; determine the diagnostic indicators of the Spark application and the indicator rules corresponding to the diagnostic indicators according to the context information; collect the operating information corresponding to the diagnostic indicators of the Spark application during the running process according to the diagnostic indicators of the Spark application; diagnose according to the indicator rules corresponding to the diagnostic indicators Diagnose the running information corresponding to the indicator and determine the diagnosis result of the Spark application.
- the operating information corresponding to the diagnostic indicator is diagnosed according to the indicator rules corresponding to the diagnostic indicator, and the diagnostic result corresponding to the diagnostic indicator is determined; the diagnostic result corresponding to the multiple diagnostic indicators
- the diagnosis result that meets the preset rules is determined in the file and determined to be the diagnosis result of the Spark application.
- a corresponding diagnosis result is set, and at the same time, a preset rule is used to determine a diagnosis result that meets the preset rule from a plurality of diagnosis results, and further determine it as Diagnosis result of Spark application.
- Diagnose the running indicators of the Spark application in various aspects, evaluate the Spark application in multiple dimensions, and find the faults in the running in time, and according to preset rules, the diagnosis results corresponding to the representative diagnostic indicators are used as the diagnosis of the current Spark application
- the diagnosis result of the Spark application further includes: according to the diagnosis code in the diagnosis result that meets the preset rule, obtain the diagnosis measure corresponding to the diagnosis code in the diagnosis result that meets the preset rule from the preset database And report to the user; the corresponding relationship between the diagnosis code and the diagnosis measures is preset in the preset database.
- a preset database is provided, and the corresponding relationship between the diagnosis code and the diagnosis measure is preset in the preset database, so that after the diagnosis result of the Spark application is determined, the user can provide the targeted diagnosis measure, namely
- the solution is convenient for users to solve problems independently based on diagnostic measures, so as to solve the problems in the running of the Spark application in time.
- This technical solution does not require users to query related materials to solve the running problems of the Spark application, but directly sets up related solutions and provides them to users, improving the efficiency of users in solving problems, and improving user experience.
- the operating indicators corresponding to the diagnostic indicators are generated; the operating indicators corresponding to the diagnostic indicators are diagnosed according to the indicator rules corresponding to the diagnostic indicators.
- the operation information corresponding to the diagnostic index is unified and encapsulated into an operation index that can be diagnosed, so that the operation index is diagnosed.
- the diagnostic index of the Spark application and the index rule corresponding to the diagnostic index according to the context information it also includes: obtaining user configuration information; determining the diagnostic index of the Spark application and the corresponding diagnostic index according to the user configuration information and context information Indicator rules.
- the user is supported to select the diagnostic index and the index rule corresponding to the diagnostic index, that is, the user can choose the index collector and the diagnostic ruler to perform real-time diagnosis of the Spark job to meet the needs of different users.
- the embodiments of the present application provide a device for diagnosing Spark applications.
- the device may be the runtime diagnostic in the first aspect mentioned above, or a device including the aforementioned runtime diagnostic device, or a device with runtime diagnostics.
- the device includes a module, unit, or means corresponding to the foregoing method, and the module, unit, or means can be implemented by hardware, software, or hardware executing corresponding software.
- the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
- the device includes: an acquisition unit for acquiring context information of the Spark application; a processing unit for determining the diagnostic index of the Spark application and the index rule corresponding to the diagnostic index according to the context information; and collecting the Spark application according to the diagnostic index of the Spark application Diagnose the running information corresponding to the diagnostic index during the running process; diagnose the running information corresponding to the diagnostic index according to the index rule corresponding to the diagnostic index, and determine the diagnosis result of the Spark application.
- diagnosis indicators there are multiple diagnosis indicators; the processing unit is specifically used to: for any one diagnosis indicator, diagnose the operating information corresponding to the diagnosis indicator according to the indicator rule corresponding to the diagnosis indicator, and determine the diagnosis result corresponding to the diagnosis indicator;
- the diagnosis result corresponding to the diagnosis index determines the diagnosis result that meets the preset rules, and is determined to be the diagnosis result of the Spark application.
- the processing unit is further configured to: after determining the diagnosis result of the Spark application, according to the diagnosis code in the diagnosis result that meets the preset rule, obtain the diagnosis result that meets the preset rule from the preset database through the obtaining unit The diagnostic measures corresponding to the diagnostic code are reported to the user; wherein the corresponding relationship between the diagnostic code and the diagnostic measure is preset in the preset database.
- the processing unit is specifically configured to: uniformly process the operating information corresponding to the diagnostic indicators to generate operating indicators corresponding to the diagnostic indicators; and diagnose the operating indicators corresponding to the diagnostic indicators according to the indicator rules corresponding to the diagnostic indicators.
- the processing unit is further configured to: before determining the diagnostic index of the Spark application and the index rule corresponding to the diagnostic index according to the context information, obtain user configuration information through the obtaining unit; determine the diagnosis of the Spark application according to the user configuration information and context information Indicator rules corresponding to indicators and diagnostic indicators.
- the present application also provides a computing device, including: a processor and a memory; the processor is configured to be coupled with the memory, and by calling and executing the memory stored in the memory storing computer programs or instructions, when the processor When the computer program or instruction is executed, the communication device can execute the method of the first aspect.
- the computing device may be the operating diagnostic device in the first aspect described above, or a device including the operating diagnostic device, or a chip with corresponding functions of the operating diagnostic device, or the like.
- the present application also provides a computer-readable non-volatile storage medium including computer-readable instructions.
- the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned method for diagnosing the Spark application.
- this application provides a computer program product containing instructions, which when run on a computer, enables the computer to execute the method of the first aspect.
- the technical effects brought by any one of the possible implementation manners of the foregoing second aspect to the fifth aspect may refer to the technical effects brought about by the different implementation manners of the foregoing first aspect, and details are not described herein again.
- FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the application
- FIG. 2 is a schematic flowchart of a method for diagnosing a Spark application provided by an embodiment of the application
- FIG. 3 is a schematic structural diagram of a device for diagnosing Spark applications provided by an embodiment of the application.
- FIG. 4 is a schematic structural diagram of a computing device provided by an embodiment of the application.
- FIG. 1 exemplarily shows a runtime diagnostic device (Runtime Diagnoser) 100 applicable to the method for diagnosing Spark applications in the financial technology field provided by an embodiment of the present application.
- the runtime diagnostic device 100 may include an indicator collector ( Metric Collector 101, Metric Ruler 102, Rule Result Merger 103, Diagnostic Notifer 104, Database 105; Run Diagnostics 100 is connected to Monitor 200 .
- the running diagnostic device 100 is used for the scheduling of the entire Spark application in the diagnosis process. Specifically, the running diagnostic device 100 obtains the context information of the Spark application, instantiates the diagnostic context information (Diagnostic Context) according to the context information; registers according to the diagnostic context information
- the metric collector 101 and the metric ruler 102 trigger the task of diagnosing the Spark application by timing or active triggering. That is, the metric collector 101 is triggered to collect the metric information of the Spark application during the running process according to the metric rules, and will collect
- the received indicator information is sent to the indicator ruler 102, and the indicator ruler 102 generates rule results for the indicators according to the corresponding indicator rules.
- the indicator ruler 102 sends the rule results to the rule result merger 103, and the rule result merger 103 receives
- the multiple rule results obtained are generated, the diagnosis result of the Spark application is generated, and the diagnosis result is sent to the diagnosis notifier 104.
- the diagnosis notifier 104 obtains the corresponding diagnosis measure from the database 105 according to the diagnosis result, and sends the diagnosis result and diagnosis measure to The monitor 200 enables the monitor 200 to display the diagnostic results and diagnostic measures of the Spark application in operation to the user.
- FIG. 2 exemplarily shows the flow of a method for diagnosing a Spark application provided by an embodiment of the present application.
- the flow can be executed by a device for diagnosing a Spark application, and the device can be located in the above-mentioned running diagnostic device, It is the above-mentioned running diagnostic tool.
- the process specifically includes:
- Step 201 Acquire context information of the Spark application.
- the context information of the Spark application can include Spark Context, which plays a leading role in the execution of the Spark application. It is responsible for interacting with the program and the Spark cluster, including applying for cluster resources, creating RDD (Resilient Distributed Datasets, flexible distributed Data set), Accumulators (accumulator) and broadcast variables.
- RDD Resilient Distributed Datasets, flexible distributed Data set
- Accumulators accumulator
- Step 202 Determine the diagnostic index of the Spark application and the index rule corresponding to the diagnostic index according to the context information.
- the basic information of the Spark application is acquired according to the context information of the Spark application for index collection in the operation diagnosis. It can also be said that the diagnostic context information generates a metric collector and a diagnostic ruler through the Spark Context, and transmits the interfaces (Listener and/or Metrics) in the Spark Context to the metric collector for metric collection.
- the user can also be supported to select the diagnostic index and the index rule corresponding to the diagnostic index, that is, the user can choose the index collector and the diagnostic ruler to perform real-time diagnosis of the Spark job.
- the user configuration information can be obtained first, and then the diagnostic index of the Spark application and the index corresponding to the diagnostic index can be determined according to the user configuration information and context information rule.
- Step 203 Collect operating information corresponding to the diagnostic indicators of the Spark application during the running process according to the diagnostic indicators of the Spark application.
- the diagnostic indicators may include Task-related indicators, Executor-related indicators, and Job-related indicators.
- the running information corresponding to the diagnostic indicators during the running of the Spark application may include the running information corresponding to the task-related indicators, such as the task execution time, the number of task attempts, the task start time, the number of task input records, the number of task output records, Task status, etc.; operation information corresponding to Executor-related indicators, such as the number of Executor parameter settings, the number of existing Executors, the number of Executor exits, the amount of data read, the amount of data output, etc.; the operation information corresponding to the Job-related indicators, such as Job running time, the total number of stages and the total number of successes of the job, the total number of tasks and the total number of successes of the job, etc.
- the running information corresponding to the diagnostic index during the running of the Spark application can be collected according to the diagnostic index of the Spark application at a certain collection frequency. For example, during the running of the Spark application, it is set to collect the diagnostic index every 1 minute. Operating information.
- the collection frequency can be set based on experience or according to user needs.
- the collection frequency of different diagnostic indicators can be the same or different.
- Step 204 Diagnose the operation information corresponding to the diagnostic index according to the index rule corresponding to the diagnostic index, and determine the diagnosis result of the Spark application.
- the operating information corresponding to the diagnostic indicators may be unified to generate the operating indicators corresponding to the diagnostic indicators, and then the operating indicators corresponding to the diagnostic indicators can be diagnosed according to the indicator rules corresponding to the diagnostic indicators.
- Unification processing can include unit unification, format conversion and other processing. After unification processing, the processed operating information is encapsulated into operating indicators corresponding to diagnostic indicators, so that the diagnostic ruler can diagnose the operating indicators corresponding to the diagnostic indicators. Obtain the diagnosis result of the Spark application.
- the acquired diagnostic index can be multiple, and each diagnostic index corresponds to the operating index. After the diagnostic index corresponding to the operating index is diagnosed, the diagnostic result corresponding to each diagnostic index can be generated and determined from the diagnostic results corresponding to multiple diagnostic indicators A diagnosis result that meets the preset rules is output and determined as the diagnosis result of the Spark application.
- This embodiment may have three scenarios, a data tilt scenario, a queue resource insufficient scenario, and a memory excess scenario, and diagnose the diagnostic indicators in the three scenarios, and generate a diagnostic result recording a diagnostic score.
- Data skew scenario For example, when the execution time of a task is abnormal due to data skew at a certain stage, the diagnostic ruler will use the execution time of all tasks obtained from the Task indicator to take the median and maximum number of multiple execution times. If the maximum number is greater than ten times the median (parameters can be configured), get the number of input records of the task with the maximum execution time and the number of input records of the task with the median execution time, if the number of input records of the task with the maximum execution time Ten times the number of input records of the task with the median execution time (parameters are configurable), it is determined that there is data skew at this time, and the diagnosis score is determined by the multiple of the execution time and the multiple of the number of input records.
- the current execution time of all tasks is 1min, 2min, 4min, 5min, 45min
- the maximum execution time is 45min
- the median execution time is 4min. If 45min is greater than ten times of 4min, the maximum execution time is further determined
- the number of input records of the task and the number of input records of the task with the median execution time are assumed to be 300 and 40 respectively. Then it is determined that 300 is greater than ten times of 40, that is, there is a data skew at this time, and the execution time is
- the diagnostic ruler will obtain the number of existing Executors and the number of set Executors from the executor indicators, and determine the current Whether the number of some Executors is less than 2/3 set by the user (parameters can be configured), if so, it is determined that there is insufficient queue resources at this time, and the diagnosis score is determined by the number of lacking Executors.
- the diagnostic score for insufficient queue resources is 4 points.
- the diagnostic ruler will obtain the number of existing Executors and the number of failed Executors from the actuator indicators. , And judge whether the number of failed Executors exceeds 1/4 of the existing number (parameters are configurable), if so, it is determined that there is a memory excess at this time, and the diagnosis score is determined by the number of failed Executors. For example, the number of existing Executors is 10, and the number of failed Executors is 3. At this time, there is a memory excess. Determine the score based on the number of failed Executors divided by 3, and the diagnostic score for the memory excess is 1 point .
- diagnosis result corresponding to the diagnosis index with the highest diagnosis score is determined as the diagnosis result of the Spark application.
- diagnosis score of data skew is 2 points
- diagnosis score of queue resource shortage is 4 points
- diagnosis score of memory excess is 1 point
- diagnosis result of queue resource shortage is determined as the diagnosis result of Spark application .
- the diagnosis result corresponding to the diagnosis index can include not only the diagnosis score of each diagnosis index, but also the diagnosis code and diagnosis information of each diagnosis index.
- the diagnosis code for data skewing is d10001
- the diagnosis information is the current task.
- the maximum execution time is 45min
- the median execution time is 4min
- the corresponding input records are 300 and 40 respectively.
- a preset database is also provided, and the corresponding relationship between the diagnostic code and the diagnostic measure (solution) is preset in the preset database.
- the diagnosis code corresponding to the diagnosis code in the diagnosis result can be obtained from the preset database according to the diagnosis code in the diagnosis result, and the diagnosis measures are reported to the user.
- a data tilt scenario will obtain a data tilt processing solution
- a queue resource shortage scenario will obtain a queue resource shortage processing solution.
- This technical solution can provide users with targeted diagnostic measures, that is, solutions, after the diagnosis results of the Spark application are determined, so that the users can solve problems autonomously according to the diagnostic measures, so as to solve the problems in the running of the Spark application in time. There is no need for users to query relevant information to solve the running problems of the Spark application, but directly set up relevant solutions and provide them to users, improve the efficiency of users in solving problems, and improve user experience.
- the embodiments of this application can be applied to the field of financial technology (Fintech).
- the field of financial technology refers to a new innovative technology brought to the financial field after information technology is integrated into the financial field. Financial operations are assisted by the use of advanced information technology. , Transaction execution and financial system improvement can improve the processing efficiency and business scale of the financial system, and can reduce costs and financial risks.
- Spark can be used in the bank to do whitelist analysis and blacklist analysis of users, and ETL (Extract-transform-load, data extraction, cleaning, conversion, and loading) operations can be executed based on Spark in the bank.
- ETL Extract-transform-load, data extraction, cleaning, conversion, and loading
- FIG. 3 exemplarily shows the structure of a device for diagnosing a Spark application provided by an embodiment of the present application, and the device can execute the flow of the method for diagnosing a Spark application.
- the device can exist in the form of software or hardware.
- the device may include: a processing unit 302 and an acquiring unit 301.
- the acquiring unit 301 may include a receiving unit, and the apparatus may also include a sending unit.
- the processing unit 302 is used to control and manage the actions of the device.
- the acquiring unit 301 and the sending unit are used to support communication between the device and other network entities.
- the processing unit 302 may be a processor or a control device, for example, a general-purpose central processing unit (CPU), a general-purpose processor, a digital signal processing (digital signal processing, DSP), and an application specific integrated circuit (application specific integrated circuit). circuits, ASIC), field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application.
- the processor may also be a combination that implements computing functions, for example, including a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
- the acquisition unit 301 is an interface circuit of the device for receiving signals from other devices.
- the acquisition unit 301 is an interface circuit for the chip to receive signals from other chips or devices
- the sending unit is an interface circuit for the chip to send signals to other chips or devices.
- the device may be the operating diagnostic device 100 in the above-mentioned embodiment, and may also be a chip for operating the diagnostic device 100.
- the processing unit 302 may be a processor, for example, and the acquiring unit 301 may be a transceiver, for example.
- the transceiver may include a radio frequency circuit
- the storage unit may be, for example, a memory.
- the processing unit 302 may be a processor, for example, and the acquiring unit 301 may be an input/output interface, a pin, or a circuit, for example.
- the processing unit 302 can execute computer-executable instructions stored in the storage unit.
- the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be located in the chip in the first forwarding server.
- External storage units such as read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), etc.
- the device is the operating diagnostic device 100 in the above-mentioned embodiment.
- the obtaining unit 301 is used to obtain the context information of the Spark application;
- the processing unit 302 is used to determine the diagnosis indicators of the Spark application and the indicator rules corresponding to the diagnosis indicators according to the context information; according to the diagnosis indicators of the Spark application, the obtaining unit 301 collects During the running of the Spark application, the running information corresponding to the diagnostic index is diagnosed; the running information corresponding to the diagnostic index is diagnosed according to the index rule corresponding to the diagnostic index, and the diagnosis result of the Spark application is determined.
- the processing unit 302 is specifically configured to: for any one diagnosis indicator, diagnose the operating information corresponding to the diagnosis indicator according to the indicator rule corresponding to the diagnosis indicator, and determine the diagnosis result corresponding to the diagnosis indicator;
- the diagnosis results corresponding to the three diagnosis indicators determine the diagnosis results that meet the preset rules, and are determined to be the diagnosis results of the Spark application.
- the processing unit 302 is further configured to: after determining the diagnosis result of the Spark application, obtain the diagnosis code in the diagnosis result conforming to the preset rule from the preset database according to the diagnosis code in the diagnosis result conforming to the preset rule Corresponding diagnosis measures are reported to the user; wherein, the corresponding relationship between the diagnosis code and the diagnosis measure is preset in the preset database.
- the processing unit 302 is specifically configured to: after uniformly processing the operating information corresponding to the diagnostic indicators, generate the operating indicators corresponding to the diagnostic indicators; and diagnose the operating indicators corresponding to the diagnostic indicators according to the indicator rules corresponding to the diagnostic indicators.
- the processing unit 302 is further configured to: before determining the diagnostic index of the Spark application and the index rule corresponding to the diagnostic index according to the context information, obtain user configuration information through the obtaining unit 301; determine the Spark application according to the user configuration information and context information The diagnostic index and the index rule corresponding to the diagnostic index.
- an embodiment of the present application further provides a computing device 400, and the computing device 400 may be the operating diagnostic device in the foregoing embodiment.
- the computing device 400 includes a processor 402 and a communication interface 403.
- the computing device 400 may further include a memory 401.
- the computing device 400 may further include a communication line 404.
- the communication interface 403, the processor 402, and the memory 401 may be connected to each other through a communication line 404;
- the communication line 404 may be a peripheral component interconnect standard (peripheral component interconnect, PCI for short) bus or an extended industry standard architecture (extended industry standard architecture) , Referred to as EISA) bus and so on.
- the communication line 404 can be divided into an address bus, a data bus, a control bus, and so on. For ease of presentation, only one thick line is used in FIG. 4 to represent, but it does not mean that there is only one bus or one type of bus.
- the processor 402 may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits used to control the execution of the program of the present application.
- the processor 402 may be used to: determine the diagnostic index of the Spark application and the index rule corresponding to the diagnostic index according to the context information; according to the diagnostic index of the Spark application, collect the running process of the Spark application through the communication interface 403 The operating information corresponding to the diagnostic indicator in the diagnostic indicator; the operating information corresponding to the diagnostic indicator is diagnosed according to the indicator rule corresponding to the diagnostic indicator, and the diagnosis result of the Spark application is determined.
- the communication interface 403 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), Wired access network, etc.
- RAN radio access network
- WLAN wireless local area networks
- Wired access network etc.
- the memory 401 may be a ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory).
- read-only memory EEPROM
- compact disc read-only memory, CD-ROM
- optical disc storage including compact discs, laser discs, optical discs, digital universal discs, Blu-ray discs, etc.
- magnetic disks A storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
- the memory may exist independently, and is connected to the processor through a communication line 404. The memory can also be integrated with the processor.
- the memory 401 is used to store computer-executed instructions for executing the solution of the present application, and the processor 402 controls the execution.
- the processor 402 is configured to execute computer-executable instructions stored in the memory 401, so as to implement the method provided in the foregoing embodiment of the present application.
- the computer-executable instructions in the embodiments of the present application may also be referred to as application program code, which is not specifically limited in the embodiments of the present application.
- the embodiments of the present application also provide a computer-readable non-volatile storage medium, including computer-readable instructions.
- the computer reads and executes the computer-readable instructions, the computer executes the above diagnostic Spark application. method.
- These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
- the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
- These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
- the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Claims (12)
- 一种诊断Spark应用的方法,其特征在于,包括:获取Spark应用的上下文信息;根据所述上下文信息确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则;根据所述Spark应用的诊断指标,采集所述Spark应用在运行过程中所述诊断指标对应的运行信息;根据所述诊断指标对应的指标规则对所述诊断指标对应的运行信息进行诊断,确定所述Spark应用的诊断结果。
- 如权利要求1所述的方法,其特征在于,所述诊断指标为多个;所述根据所述诊断指标对应的指标规则对所述诊断指标对应的运行信息进行诊断,确定所述Spark应用的诊断结果,包括:针对任一个诊断指标,根据所述诊断指标对应的指标规则对所述诊断指标对应的运行信息进行诊断,确定所述诊断指标对应的诊断结果;从多个所述诊断指标对应的诊断结果中确定出符合预设规则的诊断结果,并确定为所述Spark应用的诊断结果。
- 如权利要求1或2所述的方法,其特征在于,在所述确定所述Spark应用的诊断结果之后,还包括:根据所述符合预设规则的诊断结果中的诊断码,从预设数据库中获取所述符合预设规则的诊断结果中的诊断码对应的诊断措施并报告给用户;所述预设数据库中预先设置有诊断码与诊断措施的对应关系。
- 如权利要求1-3任一项所述的方法,其特征在于,所述根据所述诊断指标对应的指标规则对所述诊断指标对应的运行信息进行诊断,包括:将所述诊断指标对应的运行信息进行统一化处理后,生成所述诊断指标对应的运行指标;根据所述诊断指标对应的指标规则对所述诊断指标对应的运行指标进行 诊断。
- 如权利要求1至4任一项所述的方法,其特征在于,在所述根据所述上下文信息确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则之前,还包括:获取用户配置信息;所述根据所述上下文信息确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则,包括:根据所述用户配置信息、所述上下文信息,确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则。
- 一种诊断Spark应用的装置,其特征在于,包括:获取单元,用于获取Spark应用的上下文信息;处理单元,用于根据所述上下文信息确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则;根据所述Spark应用的诊断指标,通过所述获取单元采集所述Spark应用在运行过程中所述诊断指标对应的运行信息;根据所述诊断指标对应的指标规则对所述诊断指标对应的运行信息进行诊断,确定所述Spark应用的诊断结果。
- 如权利要求6所述的装置,其特征在于,所述诊断指标为多个;所述处理单元具体用于:针对任一个诊断指标,根据所述诊断指标对应的指标规则对所述诊断指标对应的运行信息进行诊断,确定所述诊断指标对应的诊断结果;从多个所述诊断指标对应的诊断结果中确定出符合预设规则的诊断结果,并确定为所述Spark应用的诊断结果。
- 如权利要求6-7任一项所述的装置,其特征在于,所述处理单元还用于:在所述确定所述Spark应用的诊断结果之后,根据所述符合预设规则的诊断结果中的诊断码,通过所述获取单元从预设数据库中获取所述符合预设规则的诊断结果中的诊断码对应的诊断措施并报告给用户;其中,所述预设数据库中预先设置有诊断码与诊断措施的对应关系。
- 如权利要求6-8任一项所述的装置,其特征在于,所述处理单元具体 用于:将所述诊断指标对应的运行信息进行统一化处理后,生成所述诊断指标对应的运行指标;根据所述诊断指标对应的指标规则对所述诊断指标对应的运行指标进行诊断。
- 如权利要求6至9任一项所述的装置,其特征在于,所述处理单元还用于:在所述根据所述上下文信息确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则之前,通过所述获取单元获取用户配置信息;根据所述用户配置信息、所述上下文信息,确定所述Spark应用的诊断指标和所述诊断指标对应的指标规则。
- 一种计算设备,其特征在于,包括:存储器,用于存储程序指令;处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行权利要求1至5任一项所述的方法。
- 一种计算机可读非易失性存储介质,其特征在于,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行如权利要求1至5任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910432603.1 | 2019-05-23 | ||
| CN201910432603.1A CN110175124A (zh) | 2019-05-23 | 2019-05-23 | 一种诊断Spark应用的方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020233252A1 true WO2020233252A1 (zh) | 2020-11-26 |
Family
ID=67691926
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/083381 Ceased WO2020233252A1 (zh) | 2019-05-23 | 2020-04-03 | 一种诊断Spark应用的方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110175124A (zh) |
| WO (1) | WO2020233252A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110175124A (zh) * | 2019-05-23 | 2019-08-27 | 深圳前海微众银行股份有限公司 | 一种诊断Spark应用的方法及装置 |
| CN112860417B (zh) * | 2019-11-27 | 2024-07-05 | 马上消费金融股份有限公司 | 一种数据处理方法、装置、设备、系统和存储介质 |
| CN113760671A (zh) * | 2020-10-19 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | 在线任务诊断方法、装置和电子设备 |
| CN115509864B (zh) * | 2022-10-09 | 2025-10-17 | 内蒙古蒙商消费金融股份有限公司 | 任务异常预警方法、装置、电子设备及可读存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090132860A1 (en) * | 2007-11-21 | 2009-05-21 | Inventec Corporation | System and method for rapidly diagnosing bugs of system software |
| CN103412805A (zh) * | 2013-07-31 | 2013-11-27 | 交通银行股份有限公司 | 一种it故障源诊断方法及系统 |
| CN107992406A (zh) * | 2017-11-09 | 2018-05-04 | 北京东土科技股份有限公司 | 一种软件测试方法、相关系统及计算机可读存储介质 |
| CN110175124A (zh) * | 2019-05-23 | 2019-08-27 | 深圳前海微众银行股份有限公司 | 一种诊断Spark应用的方法及装置 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106557351B (zh) * | 2016-11-21 | 2019-08-09 | 广东高标电子科技有限公司 | 嵌入式应用程序的数据处理方法及装置 |
-
2019
- 2019-05-23 CN CN201910432603.1A patent/CN110175124A/zh active Pending
-
2020
- 2020-04-03 WO PCT/CN2020/083381 patent/WO2020233252A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090132860A1 (en) * | 2007-11-21 | 2009-05-21 | Inventec Corporation | System and method for rapidly diagnosing bugs of system software |
| CN103412805A (zh) * | 2013-07-31 | 2013-11-27 | 交通银行股份有限公司 | 一种it故障源诊断方法及系统 |
| CN107992406A (zh) * | 2017-11-09 | 2018-05-04 | 北京东土科技股份有限公司 | 一种软件测试方法、相关系统及计算机可读存储介质 |
| CN110175124A (zh) * | 2019-05-23 | 2019-08-27 | 深圳前海微众银行股份有限公司 | 一种诊断Spark应用的方法及装置 |
Non-Patent Citations (1)
| Title |
|---|
| MA, ZHIHENG: "Design and Implementation of Log Analysis Tools Based on Spark", MASTER THESIS, 1 May 2017 (2017-05-01), pages 1 - 83, XP009524447 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110175124A (zh) | 2019-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111563014B (zh) | 接口服务性能测试方法、装置、设备和存储介质 | |
| WO2020233252A1 (zh) | 一种诊断Spark应用的方法及装置 | |
| Lu et al. | Log-based abnormal task detection and root cause analysis for spark | |
| JP5978401B2 (ja) | 分散システムにおいてユーザリクエストの実行を監視するための方法及びシステム | |
| EP2557503A2 (en) | Application performance measurement and reporting | |
| US20130080502A1 (en) | User interface responsiveness monitor | |
| US20130081001A1 (en) | Immediate delay tracker tool | |
| WO2021159638A1 (zh) | 集群队列资源的调度方法、装置、设备及存储介质 | |
| US9600523B2 (en) | Efficient data collection mechanism in middleware runtime environment | |
| CN110928750B (zh) | 数据处理方法、装置及设备 | |
| CN105302714A (zh) | 一种测试过程中内存泄漏的监控方法和装置 | |
| CN107220121A (zh) | 一种numa架构下沙箱环境测试方法及其系统 | |
| CN106021084A (zh) | 一种进行服务器性能测试的方法及装置 | |
| CN109857633B (zh) | 一种任务算力估计方法、装置和存储介质 | |
| US8725461B2 (en) | Inferring effects of configuration on performance | |
| CN109408399B (zh) | 一种算力估计方法、装置、设备和存储介质 | |
| US20230376397A1 (en) | Method and System for Determining Interval Time for Testing of Server, and Device and Medium | |
| CN109409948B (zh) | 交易异常检测方法、装置、设备及计算机可读存储介质 | |
| CN113360553B (zh) | 一种数据冷热程度评估方法及服务器 | |
| CN105843731A (zh) | 计算机系统及通过计算机系统执行的性能监控方法 | |
| CN114428712A (zh) | 耗时统计方法及装置 | |
| CN113626194A (zh) | 一种报表文件生成方法、装置、设备及可读存储介质 | |
| CN109947615A (zh) | 分布式系统的监控方法和装置 | |
| CN106921583A (zh) | 网络设备流量控制方法及装置 | |
| WO2025152462A1 (zh) | 挖掘机的状态确定方法、装置、挖掘机及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20810500 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20810500 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 21/03/2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20810500 Country of ref document: EP Kind code of ref document: A1 |