WO2019205349A1 - Bi工具的安装配置方法、装置、计算机装置及存储介质 - Google Patents

Bi工具的安装配置方法、装置、计算机装置及存储介质 Download PDF

Info

Publication number
WO2019205349A1
WO2019205349A1 PCT/CN2018/099783 CN2018099783W WO2019205349A1 WO 2019205349 A1 WO2019205349 A1 WO 2019205349A1 CN 2018099783 W CN2018099783 W CN 2018099783W WO 2019205349 A1 WO2019205349 A1 WO 2019205349A1
Authority
WO
WIPO (PCT)
Prior art keywords
installation
target
template
tool
obtaining
Prior art date
Application number
PCT/CN2018/099783
Other languages
English (en)
French (fr)
Inventor
宋剑锋
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019205349A1 publication Critical patent/WO2019205349A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Definitions

  • the present application relates to the field of data mining technologies, and in particular, to a method and an apparatus for installing and configuring a BI tool, a computer device, and a storage medium.
  • BI analysis tools are also known as BI tools.
  • the BI tool is a tool that effectively integrates the system data applied in the enterprise and provides reports quickly and accurately. It can help users understand the required enterprise information and help users make business decisions.
  • Common BI tools are Cognos, OBIEE, BO, etc.
  • the application provides a method for installing and configuring a BI tool, and the method includes:
  • the application also provides an installation and configuration device for a BI tool, the device comprising:
  • a first acquiring module configured to receive an instruction of the BI tool, and acquire a component to be installed required by the target host;
  • a second obtaining module configured to acquire an installation template corresponding to the component to be installed, to obtain a target installation template
  • a third obtaining module configured to obtain a configuration template corresponding to the target installation template, to obtain a target configuration template
  • an installation module configured to perform installation according to the instruction and the installation information included in the target installation template, and configure the installed BI tool according to the target configuration template.
  • the application also provides a computer device comprising a memory and a processor, the memory for storing at least one instruction, the processor for executing the at least one instruction to implement the BI described in any embodiment The installation and configuration method of the tool.
  • the present application also provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores at least one instruction, which is implemented in any embodiment when executed by a processor The installation and configuration method of the BI tool.
  • the application obtains the component to be installed required by the target host by receiving an instruction to install the BI tool, acquires an installation template corresponding to the component to be installed, obtains a target installation template, and obtains the target installation template.
  • Corresponding configuration template obtaining a target configuration template; performing installation according to the instruction and the installation information included in the target installation template, and configuring the installed BI tool according to the target configuration template. Since the component to be installed and the target installation template are acquired after receiving the instruction to install the BI tool, the installation can be automatically performed without the staff selection, and the configuration is automatically performed according to the template to be configured, and the configuration is automatically completed without the staff being configured again.
  • the purpose of shortening the time for installing and configuring the BI tool is improved, and the efficiency of installing and configuring the BI tool is improved.
  • FIG. 1 is a flowchart of a method for installing and configuring a BI tool according to an embodiment of the present application
  • FIG. 2 is a functional block diagram of a device for installing and configuring a BI tool according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a computer apparatus according to a preferred embodiment of a method for installing and configuring a BI tool according to the present application.
  • FIG. 1 is a flowchart of a method for installing and configuring a BI tool according to an embodiment of the present application.
  • the order of the steps in the flowchart can be changed according to different requirements, and some steps can be omitted.
  • the installation and configuration method of the BI tool described in the present application can be used to install the BI tool on the host.
  • the host described in this application may be a computing device such as a server or a computer.
  • a computing device such as a server or a computer.
  • the above target host is the host where the BI tool will be installed.
  • the A host is the target host.
  • the above instructions for installing the BI tool may include information such as the installation location of the BI tool, the installation version of the BI tool, the optional installation file, the optional BI installation file acquisition address, the installation time, and the like.
  • the above instructions for installing the BI tool may further include information of the component to be installed, or the instruction of installing the BI tool may not include information of the component to be installed, and the target host selects which components to install.
  • the above components to be installed refer to the components to be installed when the BI tool is installed.
  • BI tools install different components based on different architectures.
  • the BI tool of installing Cognos is taken as an example for description.
  • Cognos can be a three-tier architecture that includes a presentation/web tier, an application tier, and a data tier. If a three-tier architecture of Cognos is installed on a host, you need to install components such as gateway and content manager. At the same time, after the installation is complete, the host can provide the services corresponding to the installed components.
  • the acquiring the component to be installed may include:
  • the performance parameters of the target host include but are not limited to: the CPU speed of the target host, the storage capacity of the target host, and the network card speed of the target host.
  • the component to be installed is determined according to the performance parameter of the target host, so that the computing capability of the target host can be matched with the component to be installed, so that the target host provides a service that meets its own capabilities, and the target host is maximized.
  • the processing power while avoiding the problem of low computational efficiency caused by insufficient computing power of the target host.
  • the acquiring the component to be installed may further include:
  • the above historical installation record refers to the BI component that was installed on the host.
  • the historical installation information in the historical installation record may be read, and the historical installation component in the historical installation information is determined to be the component to be installed.
  • the components to be installed are the m component, the n component, and the q component.
  • the user can manually select the components to be installed to be installed, and automatically install according to the historical installation record, which conforms to the installation habit of the user, and reduces the manual operation of the user, thereby improving the efficiency of the installation.
  • the above installation template is used to indicate the type of installation (for example, a typical installation or a thin installation), the language version installed (for example, the Chinese version or the English version is installed), the installation path, and the like.
  • an installation template is document text in the form ats. The user's choices during installation and the components to be installed are described in the text of this document.
  • the target installation template obtained in this step is the installation template that will be used during the installation process.
  • the installation template Since the components are pre-written in the installation template, when the installation operation is performed, it is installed according to the contents of the installation template. Therefore, the installation templates are inconsistent for different components to be installed.
  • the C8BISRVR_CONTENT_DATABASE 0 flag is not used. Bring your own database.
  • the method described in this application further includes:
  • the above initial installation template can be a template that does not have a value assigned to the setting item, or an installation template that is assigned a default assignment.
  • the following is the content of the default assignment installation template.
  • each setting item is 0, indicating that component installation is not performed.
  • the naming of the components to be installed corresponding to the different installation templates may be performed, so that when the installation template corresponding to the component to be installed is obtained, the installation template corresponding to a component to be installed may be conveniently and quickly obtained. This allows for a quick installation.
  • the value of the parameter is set, for example, ip is the IP address of the database to be accessed, the port is the port number of the database to be accessed, and the unique identifier of the database (such as the oracle database) to be accessed by the above sid.
  • ip is the IP address of the database to be accessed
  • the port is the port number of the database to be accessed
  • the unique identifier of the database (such as the oracle database) to be accessed by the above sid.
  • the parameters indicating the content store involved in the content of this file need to be replaced with parameter values.
  • the parameters that need to be set are different. For example, if the APP component, the GATEWAY component, and the CM component are installed on the A host, only the GATEWAY component is installed on the B host. Since there are more types of components installed on the A host, more parameter settings are required than the B host.
  • the configuration template corresponding to the target installation template that is, the target configuration template
  • the target configuration template is used to set the relevant parameters of the BI tool after installation according to the installation template.
  • the method may further include:
  • the default value of the target parameter in the target configuration template is adjusted to an optimized value.
  • the above target parameter may be a parameter related to the operation of the BI tool.
  • the purpose of adjusting the default value of the target parameter to the optimized value is to tune the target parameter.
  • the parameters in the target configuration template have default values.
  • the above optimization value may be a value obtained according to historical operation status of other BI tools, or may be set according to system resources of the target host, and specific optimization rules may be preset according to needs.
  • user session hold ie maximum number of seconds for user’s session
  • user session hold parameter is used to define how long a timeout prompt is generated without obtaining data. If the default setting is 30s, the optimized value can be 60s. In actual use, after 30s users do not get the data, there will be no timeout prompt, and the timeout prompt will be generated when the data cannot be obtained after 60s.
  • the maximum amount of memory in MB for process is used to define how much memory the BI tool uses at runtime. It can be adjusted according to system resources during tuning. For example, the default value of the maximum used memory is adjusted to 50% of the host memory, so that the BI tool can run quickly without affecting the operation of other applications on the host.
  • the preset tuning value may be given according to the target parameter, or may be assigned according to the performance parameter of the target host.
  • the operating efficiency of the BI tool after installation can be improved, and a good user experience is provided.
  • the installation information in the target installation template is read, and the installation information is installed according to the installation information included in the target installation template, without the user having to manually click again. Also, after the installation is complete, configuring according to the target configuration template can make the installed BI tools available quickly.
  • the method may further include:
  • the preset process may be preset according to requirements. Specifically, the preset process may be a process that affects the installation of the BI tool or a process that occupies more system resources.
  • the installation is performed when there is no preset process, which avoids an error in the installation process, which causes the installation to fail, and wastes system resources.
  • the method described in the present application may further include:
  • the BI tool performs the configuration of the operation.
  • the specific value of the foregoing preset number may be set according to requirements, and the specific may be determined according to hardware parameters of the target host.
  • the above preset number is used to determine whether the number of processes running on the target host is excessive. Since the system resources are occupied more when the number of preset processes running on the target host is large, the installation may not be easy for the installation to be performed quickly, and the running efficiency of the running process may also be reduced.
  • the number of processes that have been started on the host is judged, which can avoid the influence of the running process of other processes on the host during the BI tool installation process, and improve the installation efficiency of the BI tool.
  • the method described in the present application may further include:
  • the BI tool is started, and if the feedback information of the startup success is not received, the BI tool is determined to be installed incorrectly, and the prompt information is sent.
  • the feedback information of the startup success is received, it may be determined that the BI tool is successfully installed.
  • the method described in this application further includes:
  • the acquisition of the component to be installed is performed again, or the installation information and instructions included in the target installation template are performed again, and the target configuration template directly configures the installed BI tool to Perform the BI tool installation again;
  • the above prompt information may be a prompt message that is run incorrectly after startup.
  • the method for performing error analysis according to the prompt information may specifically be: obtaining a cause of an error corresponding to a certain prompt information according to a preset relationship between the error cause and the prompt information.
  • the first reason mentioned above is the reason that can be solved by reinstalling. At the same time, if the installation fails after multiple installations, the error cause reminder can also be sent to the user.
  • the second reason mentioned above is that the reason for the failure to solve by reinstalling is directly sent to the user for the cause of the error, so that the user can quickly locate the problem for processing, thereby facilitating the installation of the BI tool again.
  • the BI tool by performing analysis at the time of installation error, the BI tool can be installed again or reminded to the user, thereby improving the installation efficiency and improving the installation success rate.
  • the installation and configuration method of the BI tool provided by the application obtains the component to be installed required by the target host by receiving an instruction to install the BI tool, acquires an installation template corresponding to the component to be installed, obtains a target installation template, and obtains the target installation.
  • the configuration template corresponding to the template obtains the target configuration template; the installation is performed according to the instruction and the installation information included in the target installation template, and the installed BI tool is configured according to the target configuration template. Since the component to be installed and the target installation template are acquired after receiving the instruction to install the BI tool, the installation can be automatically performed without the staff selection, and the configuration is automatically performed according to the template to be configured, and the configuration is automatically completed without the staff being configured again.
  • the purpose of shortening the time for installing and configuring the BI tool is improved, and the efficiency of installing and configuring the BI tool is improved.
  • FIG. 2 is a functional block diagram of a device for installing and configuring a BI tool according to an embodiment of the present application.
  • the installation and configuration device of the BI tool includes a first acquisition module 210, a second acquisition module 220, a third acquisition module 230, and an installation module 240.
  • a module as referred to herein refers to a series of computer readable instruction segments that can be executed by a processor of a computer device and that are capable of performing a fixed function, which are stored in a memory of the computer device.
  • the functions of the respective modules will be described in detail in the subsequent embodiments.
  • the first obtaining module 210 is configured to receive an instruction of the BI tool to acquire a component to be installed required by the target host.
  • the BI tool installation and configuration apparatus described herein can be used to install BI tools on a host.
  • the host described in this application may be a computing device such as a server or a computer.
  • a computing device such as a server or a computer.
  • the above target host is the host where the BI tool will be installed.
  • the A host is the target host.
  • the above instructions for installing the BI tool may include information such as the installation location of the BI tool, the installation version of the BI tool, the optional installation file, the optional BI installation file acquisition address, the installation time, and the like.
  • the above instructions for installing the BI tool may further include information of the component to be installed, or the instruction to install the BI tool does not include information of the component to be installed, and the computer device selects which components to install.
  • the above components to be installed refer to the components to be installed when the BI tool is installed.
  • BI tools install different components based on different architectures.
  • the BI tool of installing Cognos is taken as an example for description.
  • Cognos can be a three-tier architecture that includes a presentation/web tier, an application tier, and a data tier. If a three-tier architecture of Cognos is installed on a host, you need to install components such as gateway and content manager. At the same time, after the installation is complete, the host can provide the services corresponding to the installed components.
  • the first obtaining module 210 is specifically configured to:
  • Receiving instructions for installing the BI tool Receiving instructions for installing the BI tool, obtaining performance parameters of the target host, and determining components to be installed according to the performance parameters.
  • the performance parameters of the target host include but are not limited to: the CPU speed of the target host, the storage capacity of the target host, and the network card speed of the target host.
  • the component to be installed is determined according to the performance parameter of the target host, so that the computing capability of the target host can be matched with the component to be installed, so that the target host provides a service that meets its own capabilities, and the target host is maximized.
  • the processing power while avoiding the problem of low computational efficiency caused by insufficient computing power of the target host.
  • the first obtaining module 210 is specifically configured to:
  • Receiving an instruction to install the BI tool obtaining a historical installation record of the target host, and determining a component to be installed according to the historical installation record.
  • the above historical installation record refers to the BI component that was installed on the host.
  • the historical installation information in the historical installation record may be read, and the historical installation component in the historical installation information is determined to be the component to be installed.
  • the components to be installed are the m component, the n component, and the q component.
  • the user can manually select the component to be installed to be installed, and automatically install according to the historical installation record, which conforms to the installation habit of the user, and reduces manual operation of the user, thereby improving the efficiency of the installation.
  • the second obtaining module 220 is configured to obtain an installation template corresponding to the component to be installed, to obtain a target installation template.
  • the above installation template is used to indicate the type of installation (for example, a typical installation or a thin installation), the language version installed (for example, the Chinese version or the English version is installed), the installation path, and the like.
  • an installation template is document text in the form ats. The user's choices during installation and the components to be installed are described in the text of this document.
  • the target installation template obtained by the second acquisition module 220 is an installation template to be used during the installation process.
  • the installation template Since the components are pre-written in the installation template, when the installation operation is performed, it is installed according to the contents of the installation template. Therefore, the installation templates are inconsistent for different components to be installed.
  • the C8BISRVR_CONTENT_DATABASE 0 flag is not used. Bring your own database.
  • the apparatus described in the present application further includes:
  • the configuration module is configured to obtain an initial installation template for installing the BI tool, and configure an installation template corresponding to each component to be installed.
  • the above initial installation template can be a template that does not have a value assigned to the setting item, or an installation template that is assigned a default assignment.
  • the following is the content of the default assignment installation template.
  • each setting item is 0, indicating that component installation is not performed.
  • the naming of the components to be installed corresponding to the different installation templates may be performed, so that when the installation template corresponding to the component to be installed is obtained, the installation template corresponding to a component to be installed may be conveniently and quickly obtained. This allows for a quick installation.
  • the third obtaining module 230 is configured to obtain a configuration template corresponding to the target installation template, and obtain a target configuration template.
  • the value of the parameter is set, for example, ip is the IP address of the database to be accessed, the port is the port number of the database to be accessed, and the unique identifier of the database (such as the oracle database) to be accessed by the above sid.
  • ip is the IP address of the database to be accessed
  • the port is the port number of the database to be accessed
  • the unique identifier of the database (such as the oracle database) to be accessed by the above sid.
  • the parameters indicating the content store involved in the content of this file need to be replaced with parameter values.
  • the parameters that need to be set are different. For example, if the APP component, the GATEWAY component, and the CM component are installed on the A host, only the GATEWAY component is installed on the B host. Since there are more types of components installed on the A host, more parameter settings are required than the B host.
  • the configuration template corresponding to the target installation template that is, the target configuration template
  • the target configuration template is used to set the relevant parameters of the BI tool after installation according to the installation template.
  • the apparatus described in the present application may further include:
  • the adjustment module is configured to adjust a default value of the target parameter in the target configuration template to an optimized value.
  • the above target parameter may be a parameter related to the operation of the BI tool.
  • the purpose of adjusting the default value of the target parameter to the optimized value is to tune the target parameter.
  • the parameters in the target configuration template have default values.
  • the above optimization value may be a value obtained according to historical operation status of other BI tools, or may be set according to system resources of the target host, and specific optimization rules may be preset according to needs.
  • user session hold ie maximum number of seconds for user’s session
  • user session hold parameter is used to define how long a timeout prompt is generated without obtaining data. If the default setting is 30s, the optimized value can be 60s. In actual use, after 30s users do not get the data, there will be no timeout prompt, and the timeout prompt will be generated when the data cannot be obtained after 60s.
  • the maximum amount of memory in MB for process is used to define how much memory the BI tool uses at runtime. It can be adjusted according to system resources during tuning. For example, the default value of the maximum used memory is adjusted to 50% of the host memory, so that the BI tool can run quickly without affecting the operation of other applications on the host.
  • the preset tuning value may be given according to the target parameter, or may be assigned according to the performance parameter of the target host.
  • the operating efficiency of the BI tool after installation can be improved, and a good user experience is provided.
  • the installation module 240 is configured to perform installation according to the instruction and the installation information included in the target installation template, and configure the installed BI tool according to the target configuration template.
  • the installation information in the target installation template is read, and the installation information is installed according to the installation information included in the target installation template, without the user having to manually click again. Also, after the installation is complete, configuring according to the target configuration template can make the installed BI tools available quickly.
  • the apparatus described in this application may further include a trigger module.
  • the trigger module is used to:
  • the started process on the target host includes a preset process
  • the preset process exits, performing the installation according to the instruction and the installation information included in the target installation template, and according to the target
  • the template configures the installed BI tools.
  • the preset process may be preset according to requirements. Specifically, the preset process may be a process that affects the installation of the BI tool or a process that occupies more system resources.
  • the installation is performed when there is no preset process, which avoids an error in the installation process, which causes the installation to fail, and wastes system resources.
  • the trigger module is further configured to:
  • the specific value of the foregoing preset number may be set according to requirements, and the specific may be determined according to hardware parameters of the target host.
  • the above preset number is used to determine whether the number of processes running on the target host is excessive. Since the system resources are occupied more when the number of preset processes running on the target host is large, the installation may not be easy for the installation to be performed quickly, and the running efficiency of the running process may also be reduced.
  • the number of processes that have been started on the host is judged, which can avoid the influence of the running process of other processes on the host during the BI tool installation process, and improve the installation efficiency of the BI tool.
  • the apparatus described in the present application may further include:
  • the startup module is configured to start the BI tool, and if the feedback information of the startup success is not received, determine that the BI tool is installed incorrectly, and send a prompt message.
  • the feedback information of the startup success is received, it may be determined that the BI tool is successfully installed.
  • the device described in this application further includes:
  • An analysis module configured to obtain the prompt information, perform error analysis according to the prompt information, and obtain an error cause
  • a processing module configured to: if the error cause is the first cause, trigger the first acquiring module to acquire the component to be installed, or trigger the installation module to be installed according to the installation information and instructions included in the target installation template, and the target configuration template is installed
  • the BI tool is configured directly to perform the BI tool installation again;
  • the processing module is further configured to send an error reason reminder to the user if the cause of the error is the second cause.
  • the above prompt information may be a prompt message that is run incorrectly after startup.
  • the method for performing error analysis according to the prompt information may specifically be: obtaining a cause of an error corresponding to a certain prompt information according to a preset relationship between the error cause and the prompt information.
  • the first reason mentioned above is the reason that can be solved by reinstalling. At the same time, if the installation fails after multiple installations, the error cause reminder can also be sent to the user.
  • the second reason mentioned above is that the reason for the failure to solve by reinstalling is directly sent to the user for the cause of the error, so that the user can quickly locate the problem for processing, thereby facilitating the installation of the BI tool again.
  • the BI tool by performing analysis at the time of installation error, the BI tool can be installed again or reminded to the user, thereby improving the installation efficiency and improving the installation success rate.
  • the installation and configuration device of the BI tool receives the instruction to install the BI tool through the first acquisition module, and acquires the component to be installed required by the target host; the second acquisition module acquires the installation template corresponding to the component to be installed, and obtains the target. Installing a template; the third module acquires a configuration template corresponding to the target installation template, and obtains a target configuration template; the installation module performs installation according to the instruction and the installation information included in the target installation template, and installs according to the target configuration template.
  • the latter BI tool is configured.
  • the installation can be automatically performed without the staff selection, and the configuration is automatically performed according to the template to be configured, and the configuration is automatically completed without the staff being configured again.
  • the purpose of shortening the time for installing and configuring the BI tool is improved, and the efficiency of installing and configuring the BI tool is improved.
  • the above-described integrated unit implemented in the form of a software function module can be stored in a non-volatile readable storage medium.
  • the software functional modules described above are stored in a storage medium and include instructions for causing a computing device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform some of the steps of the methods described in various embodiments of the present application. .
  • FIG. 3 is a schematic structural diagram of a computer apparatus according to a preferred embodiment of a method for installing and configuring a BI tool according to the present application.
  • the computer device comprises at least one transmitting device 31, at least one memory 32, at least one processor 33, at least one receiving device 34 and at least one communication bus.
  • the communication bus is used to implement connection communication between these components.
  • the computer device is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor and an application specific integrated circuit (ASIC). , Field-Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc.
  • the computer device may also include a network device and/or a user device.
  • the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers, where the cloud computing is distributed computing.
  • a super virtual computer consisting of a group of loosely coupled computers.
  • the computer device may be, but is not limited to, any electronic product that can interact with a user through a keyboard, a touch pad or a voice control device, such as a tablet, a smart phone, or a personal digital assistant (Personal Digital Assistant, PDA), smart wearable devices, camera devices, monitoring devices and other terminals.
  • a keyboard e.g., a keyboard
  • a touch pad e.g., a touch pad
  • a voice control device such as a tablet, a smart phone, or a personal digital assistant (Personal Digital Assistant, PDA), smart wearable devices, camera devices, monitoring devices and other terminals.
  • PDA Personal Digital Assistant
  • the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • the Internet includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • VPN virtual private network
  • the receiving device 34 and the transmitting device 31 may be wired transmission ports, or may be wireless devices, for example, including antenna devices, for performing data communication with other devices.
  • the memory 32 is used to store program code.
  • the memory 32 may be a circuit having a storage function, such as a RAM (Random-Access Memory), a FIFO (First In First Out), or the like, which has no physical form in the integrated circuit.
  • the memory 32 may also be a memory having a physical form, such as a memory stick, a TF card (Trans-flash Card), a smart media card, a secure digital card, a flash memory card.
  • Storage devices such as (flash card) and the like.
  • the processor 33 can include one or more microprocessors, digital processors.
  • the processor 33 can call program code stored in the memory 32 to perform related functions.
  • the various units described in FIG. 3 are program code stored in the memory 32 and executed by the processor 33 to implement a method of installing and configuring a BI tool.
  • the processor 33 also known as a central processing unit (CPU), is a very large-scale integrated circuit, which is a computing core (Core) and a control unit (Control Unit).
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software function modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本申请提供一种BI工具的安装配置方法,包括:接收安装BI工具的指令,获取目标主机所需的待安装组件;获取与所述待安装组件对应的安装模板,得到目标安装模板;获取所述目标安装模板对应的配置模板,得到目标配置模板;根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。本申请还公开了一种BI工具的安装配置装置、计算机装置和可读存储介质。本申请可以能够缩短安装配置BI工具的时间,提升安装配置BI工具的效率。

Description

BI工具的安装配置方法、装置、计算机装置及存储介质
本申请要求于2018年04月23日提交中国专利局,申请号为201810367353.3发明名称为“BI工具的安装配置方法、装置、计算机装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据挖掘技术领域,尤其涉及一种BI工具的安装配置方法、装置、计算机装置及存储介质。
背景技术
商业智能(Business Intelligence,BI)分析工具也称为BI工具。BI工具是一种将企业中应用的各系统数据进行有效的整合,快速准确地提供报表的工具,可以帮助使用者了解所需的企业信息以及帮助使用者做出经营决策。常见的BI工具有Cognos,OBIEE,BO等。
在进行BI工具安装以及配置时,常采用图形化界面安装方式,安装以及配置过程中需要用户值守安装。而BI工具在实际应用中服务器集群通常由几十台主机组成,若通过现有方法进行安装并配置,效率非常低。因此,亟需一种高效的安装和配置方案。
发明内容
鉴于以上内容,有必要提供一种BI工具的安装配置方法、装置、计算机装置及存储介质,能够缩短安装配置BI工具的时间,提升安装配置BI工具的效率。
本申请提供一种BI工具的安装配置方法,所述方法包括:
接收安装BI工具的指令,获取目标主机所需的待安装组件;
获取与所述待安装组件对应的安装模板,得到目标安装模板;
获取所述目标安装模板对应的配置模板,得到目标配置模板;
根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
本申请还提供一种BI工具的安装配置装置,所述装置包括:
第一获取模块,用于接收BI工具的指令,获取目标主机所需的待安装组件;
第二获取模块,用于获取与所述待安装组件对应的安装模板,得到目标安装模板;
第三获取模块,用于获取所述目标安装模板对应的配置模板,得到目标 配置模板;
安装模块,用于根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
本申请还提供一种计算机装置,所述计算机装置包括存储器及处理器,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现任意实施例中所述的BI工具的安装配置方法。
本申请还提供一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现任意实施例中所述的BI工具的安装配置方法。
由以上技术方案看出,本申请通过接收安装BI工具的指令,获取目标主机所需的待安装组件;获取与所述待安装组件对应的安装模板,得到目标安装模板;获取所述目标安装模板对应的配置模板,得到目标配置模板;根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。由于在接收安装BI工具的指令之后,获取待安装组件以及目标安装模板,因此可以无需工作人员值守选取就自动安装,并且根据待配置模板进行自动的配置,无需工作人员再进行配置就自动完成配置,实现了缩短安装配置BI工具的时间,提升安装配置BI工具的效率的目的。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1是本申请实施例提供的一种BI工具的安装配置方法的流程图;
图2是本申请实施例提供的BI工具的安装配置装置的功能模块图;
图3是本申请实现BI工具的安装配置方法的较佳实施例的计算机装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
如图1所示,图1为本申请实施例提供的一种BI工具的安装配置方法的流程图。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可 以省略。
S10,接收安装BI工具的指令,获取目标主机所需的待安装组件。
本申请所述的BI工具的安装配置方法可用于将BI工具安装在主机上。
本申请所述的主机可以是服务器或者计算机等计算设备。例如,将BI工具安装在装有Linux操作系统的服务器上。
上述目标主机是BI工具将要安装的主机。例如,将BI工具安装在A主机上,则A主机为目标主机。
上述安装BI工具的指令可以包括BI工具的安装位置、BI工具的安装版本、可选的安装文件、可选的BI安装文件获取地址、安装时间等指示安装的信息。
同时,上述安装BI工具的指令还可以包括待安装组件的信息,或者安装BI工具的指令中也可以不包括待安装组件的信息,由目标主机选取要安装哪些组件。
上述待安装组件是指安装BI工具时将要安装的组件。通常,BI工具根据不同体系架构,安装不同的组件。
本实施例中以安装Cognos这一BI工具为例进行说明。
例如,Cognos可以为三层体系架构,这三层体系架构包括展示层(presentation/web tier),应用层(application tier),以及数据层(data tier)。若在一台主机上安装的为三层体系架构的Cognos,则需要安装gateway、content manager等组件。同时,安装完成后,该主机可以提供安装的组件所对应的服务。
可选的,在本申请其他实施例中,所述获取待安装组件可包括:
获取目标主机的性能参数,根据所述性能参数确定待安装组件。
上述目标主机的性能参数包括但不限于:目标主机的CPU运算速度,目标主机的存储容量,目标主机的网卡速度等。
当目标主机的性能参数不同时,目标主机的运算能力、响应速度等方面都会有一定差异。因此,在本实施例中,根据目标主机的性能参数来确定待安装组件,使得目标主机的运算能力能够与要安装的组件匹配,使目标主机提供符合自身能力的服务,最大化的发挥目标主机的处理能力,同时避免目标主机的运算能力不足带来的运算效率过低的问题。
可选的,在本申请其他实施例中,所述获取待安装组件还可包括:
获取所述目标主机的历史安装记录,根据所述历史安装记录确定待安装组件。
上述历史安装记录是指在该主机上曾经安装过的BI组件。具体实施时,可以读取历史安装记录中的历史安装信息,确定历史安装信息中历史安装组件为待安装组件。
例如,A主机上曾经安装了m组件、n组件以及q组件,则再次在A主机上进行安装时,确定待安装组件为m组件、n组件以及q组件。
在本实施例中,可以无需用户手动选择要安装的待安装组件,自动根据 历史安装记录进行安装,符合用户的安装习惯,同时减少用户手动操作,提高安装的效率。
S20,获取与所述待安装组件对应的安装模板,得到目标安装模板。
其中,上述安装模板用于指示安装的类型(例如,是典型安装或者是精简安装),安装的语言版本(例如,安装的为中文版或者是英文版),安装的路径等。
例如,安装模板是格式为ats的文档文本。在该文档文本中描述安装过程中用户的选择,以及要安装的组件。
在本步骤中得到的目标安装模板是将要在安装过程中使用的安装模板。
由于在安装模板中已预先写好安装哪些组件,当执行安装操作时,会根据安装模板中的内容来安装。因此,对于不同的待安装组件,安装模板是不一致的。
具体的,以下为安装模板中所包含的部分文本的示例:
[Dialog1]
Title=欢迎使用该安装向导
EN=0
ZH_CH=1
[Dialog2]
Title=许可协议
I Agree=Y
[Component List]C8BISRVR_APP=1
C8BISRVR_APPLICATION_TIER=0
C8BISRVR_GATEWAY=1
C8BISRVR_CONTENT_MANAGER=0
C8BISRVR_CONTENT_DATABASE=0
其中,上述Dialog表示安装过程中显示的内容以及选择,如EN=0,ZH_CH=1表示安装的中文版,不为英文版。I Agree=Y表示同意许可协议。
上述Component List表示对组件进行的设置。例如,C8BISRVR_APP=1表示需要安装组件。同时,C8BISRVR_APPLICATION_TIER=0表示不安装APPLICATION_TIER组件(也可称为APP组件),C8BISRVR_GATEWAY=1表示安装GATEWAY组件,C8BISRVR_CONTENT_MANAGER=0表示不安装CONTENT_MANAGER组件(也可称为CM组件),C8BISRVR_CONTENT_DATABASE=0标识不使用自带数据库。
在以上示例的安装文件中,仅安装GATEWAY组件,则使用该模板安装后的主机提供WEB服务。
进一步地,在本申请其他实施例中,本申请所述的方法还包括:
获取安装所述BI工具的初始安装模板,配置每种待安装组件对应的安装模板。
上述初始安装模板可以是一个没有对设置项赋值的模板,或者赋值为默认赋值的安装模板。
例如,以下为默认赋值的安装模板的内容。
[Component List]C8BISRVR_APP=0
C8BISRVR_APPLICATION_TIER=0
C8BISRVR_GATEWAY=0
C8BISRVR_CONTENT_MANAGER=0
C8BISRVR_CONTENT_DATABASE=0
在该初始安装模板中,每项设置项的值都为0,表示不进行组件安装。
当获取到初始安装模板之后,由于不同的待安装组件,Component List之中的设置项是不一致的,因此,这里根据各种可能的组件安装方式来为每项设置项赋予不同的值,得到多个安装模板文件。
在具体实施时,可以根据不同的安装模板所对应的待安装组件来进行命名,使得获取待安装组件对应的安装模板时,可以方便快速的获取到与某一待安装组件所对应的安装模板,从而进行快速的安装。
S30,获取所述目标安装模板对应的配置模板,得到目标配置模板。
当对BI工具进行安装以后,可以对BI工具运行时的参数进行配置,例如要访问的数据库地址等。
例如,以下为配置模板所包含内容的示例:
|||||pata||||
[content store]
Ip=10.20.30.40
Port=1234
Sid=examplesid
|||||file|||||
[content store]=/…/example-cognos-home/configuration/congstartup.xml
其中,在para部分,设置了参数的值,如ip是要访问的数据库的IP地址,上述port是要访问的数据库的端口号,上述sid要访问的数据库(如oracle数据库)的唯一标识符。则通过该数据库,可以对Cognos运行时要访问的数据库相关的参数进行设置,以便在Cognos运行时能准确的访问目标数据库。
其中,在file部分,表示此文件内容中涉及的内容库(content store)的参数,都需要进行参数值替换。
而对于不同的目标安装模板,需要设置的参数是不同的。例如,若A主机上安装了APP组件、GATEWAY组件以及CM组件,而B主机上仅安装了GATEWAY组件。则由于A主机上安装的组件类型更多,需要进行的参数设置也会多于B主机。
通过本步骤,可以根据得到的目标安装模板来获取与目标安装模板所对应的配置模板,即目标配置模板。该目标配置模板用于在根据安装模板进行安装之后对BI工具进行相关参数的设置。
可选地,在本申请其他实施例中,所述方法还可包括:
将所述目标配置模板中目标参数的默认值调整为优化值。
其中,上述目标参数可以是与BI工具的运行相关的参数。将目标参数的默认值调整为优化值的目的是对目标参数进行调优。
通常,目标配置模板中的参数都有默认值。上述优化值可以为根据其他BI工具的历史运行情况获取的值,或者是根据目标主机的系统资源来设定等,具体的优化规则可以根据需要预先设定。
例如,用户会话保持,即maximum number of seconds for user’s session,用户会话保持这一参数用于定义在没有获取到数据的情况下经过多长时间产生超时提示。若默认设置为30s,其优化值可以为60s。则在实际使用的时候,经过30s用户没有获取到数据,并不会产生超时提示,在经过60s仍无法获取到数据时,才产生超时提示。
又比如,最大使用内存(maximum amount of memory in MB for process),最大使用内存用于定义BI工具在运行时最大使用多少内存。在调优时可以根据系统资源对其调整,例如将最大使用内存的默认值调整为主机内存的50%,使得BI工具可以快速的运行又不影响主机上其他应用的运行。
在具体实施时,可以预先设置要进行调优的目标参数为哪些。或者是在判断该参数的类型是否为可调优类型的参数,若是,则对其进行调优设置。
在对目标参数进行调优设置时,可以根据对目标参数赋予预设的调优值,或者,根据目标主机的性能参数进行赋值。
在本实施例中,通过对安装后的BI工具的目标参数进行优化,可以提升BI工具安装后的运行效率,提供良好的用户体验。
S40,根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
在获取到目标安装模板和目标配置模板之后,读取目标安装模板中的安装信息,根据目标安装模板包含的安装信息进行安装,无需用户再次进行手动点击。并且,在安装完成之后,根据目标配置模板进行配置,可以使得安装好的BI工具能快速可用。
可选地,在本申请其他实施例中,所述方法还可包括:
获取所述目标主机上的已启动进程;
判断所述目标主机上的已启动进程中是否包含预设进程;
若是,在所述预设进程退出之后,执行所述根据所述指令和所述目标安装模板包含的安装信息进行安装,以及根据所述目标模板对安装后的所述BI工具进行配置的操作。
其中,上述预设进程可以根据需要进行预先设定。具体的,预设进程可以为影响BI工具安装的进程或者是占用系统资源较多的进程。
当BI工具安装时,可能需要将某些应用退出,或者某些进程的运行会影响安装。因此,在本实施例中,当不存在预设进程才进行安装,避免了安装过程中才出现错误,导致安装无法进行,又浪费了系统的资源。
可选地,在本申请其他实施例中,本申请所述的方法还可包括:
获取所述目标主机上的已启动进程;
若所述目标主机上的已启动进程的数量小于预设数量,执行所述根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置的操作。
上述预设数量的具体值可以根据需要设定,具体的可以依据目标主机的硬件参数来确定。上述预设数量用于判断目标主机上运行的进程数是否过多。由于当目标主机上运行的预设进程数较多时,可能系统资源被占用的较多,此时安装可能不利于安装的快速进行,并且对于已运行的进程也会降低其运行效率。
因此,在BI工具安装之前对主机上已启动的进程的数量进行判断,可以避免BI工具安装过程中影响主机上其他进程的运行效率,同时提高BI工具的安装效率。
可选地,在本申请其他实施例中,本申请所述的方法还可包括:
启动所述BI工具,若没有接收到启动成功的反馈信息,确定所述BI工具安装错误,发送提示信息。
在本实施例中,若接收到启动成功的反馈信息,可确定BI工具安装成功。
在启动BI工具之后,可以执行简单操作(例如是否相关目录都能打开,或者根据操作是否能够返回正确信息等)进一步校验是否完成安装的正确性。
在本实施例中,通过安装以及配置好以后进行启动来校验安装是否成功完成,以使用户知晓安装的情况,如安装错误,可以发送提示信息使用户进行进一步检查。
进一步地,本申请所述的方法还包括:
获取所述提示信息,根据所述提示信息进行错误分析,得到错误原因;
若错误原因为第一原因,再次执行获取待安装组件,或者再次执行根据目标安装模板包括的安装信息和指令进行安装,以及所述目标配置模板对安装后的BI工具进行配置直接的操作,以再次进行BI工具的安装;
若错误原因为第二原因,向用户发送错误原因提醒。
上述提示信息可以是启动后运行错误的提示信息。
上述根据提示信息进行错误分析的方法具体可以是,根据预先设置的错误原因与提示信息对应关系来获取某一提示信息所对应的错误原因是什么。
上述第一原因为可以通过再次安装来解决的原因。同时,若多次进行安装后都无法通过校验,也可以向用户发送错误原因提醒。
上述第二原因为无法通过再次安装来解决的原因,直接向用户发送错误原因提醒,使得用户可以快速的定位问题进行处理,进而方便再次将BI工具进行安装。
在本实施例中,通过在安装错误时进行分析,可以使BI工具再次进行安装或向用户进行提醒,从而在提高安装的效率的同时,提高安装的成功率。
本申请提供的BI工具的安装配置方法通过接收安装BI工具的指令,获取目标主机所需的待安装组件;获取与所述待安装组件对应的安装模板,得到目标安装模板;获取所述目标安装模板对应的配置模板,得到目标配置模 板;根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。由于在接收安装BI工具的指令之后,获取待安装组件以及目标安装模板,因此可以无需工作人员值守选取就自动安装,并且根据待配置模板进行自动的配置,无需工作人员再进行配置就自动完成配置,实现了缩短安装配置BI工具的时间,提升安装配置BI工具的效率的目的。
如图2所示,图2为本申请实施例提供的BI工具的安装配置装置的功能模块图。所述BI工具的安装配置装置包括第一获取模块210、第二获取模块220、第三获取模块230和安装模块240。本申请所称的模块是指一种能够被计算机装置的处理器所执行并且能够完成固定功能的一系列计算机可读指令段,其存储在计算机装置的存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。
第一获取模块210,用于接收BI工具的指令,获取目标主机所需的待安装组件。
本申请所述的BI工具的安装配置装置可用于将BI工具安装在主机上。
本申请所述的主机可以是服务器或者计算机等计算设备。例如,将BI工具安装在装有Linux操作系统的服务器上。
上述目标主机是BI工具将要安装的主机。例如,将BI工具安装在A主机上,则A主机为目标主机。
上述安装BI工具的指令可以包括BI工具的安装位置、BI工具的安装版本、可选的安装文件、可选的BI安装文件获取地址、安装时间等指示安装的信息。
同时,上述安装BI工具的指令还可以包括待安装组件的信息,或者安装BI工具的指令中不包括待安装组件的信息,由计算机装置选取要安装哪些组件。
上述待安装组件是指安装BI工具时将要安装的组件。通常,BI工具根据不同体系架构,安装不同的组件。
本实施例中以安装Cognos这一BI工具为例进行说明。
例如,Cognos可以为三层体系架构,这三层体系架构包括展示层(presentation/web tier),应用层(application tier),以及数据层(data tier)。若在一台主机上安装的为三层体系架构的Cognos,则需要安装gateway、content manager等组件。同时,安装完成后,该主机可以提供安装的组件所对应的服务。
可选的,在本申请其他实施例中,所述第一获取模块210具体用于:
接收安装BI工具的指令,获取目标主机的性能参数,根据所述性能参数确定待安装组件。
上述目标主机的性能参数包括但不限于:目标主机的CPU运算速度,目标主机的存储容量,目标主机的网卡速度等。
当目标主机的性能参数不同时,目标主机的运算能力、响应速度等方面都会有一定差异。因此,在本实施例中,根据目标主机的性能参数来确定待安装组件,使得目标主机的运算能力能够与要安装的组件匹配,使目标主机提供符合自身能力的服务,最大化的发挥目标主机的处理能力,同时避免目标主机的运算能力不足带来的运算效率过低的问题。
可选的,在本申请其他实施例中,所述第一获取模块210具体用于:
接收安装BI工具的指令,获取目标主机的历史安装记录,根据所述历史安装记录确定待安装组件。
上述历史安装记录是指在该主机上曾经安装过的BI组件。具体实施时,可以读取历史安装记录中的历史安装信息,确定历史安装信息中历史安装组件为待安装组件。
例如,A主机上曾经安装了m组件、n组件以及q组件,则再次在A主机上进行安装时,确定待安装组件为m组件、n组件以及q组件。
在本实施例中,可以无需用户手动选择要安装的待安装组件,自动根据历史安装记录进行安装,符合用户的安装习惯,同时减少用户手动操作,提高安装的效率。
第二获取模块220,用于获取与所述待安装组件对应的安装模板,得到目标安装模板。
其中,上述安装模板用于指示安装的类型(例如,是典型安装或者是精简安装),安装的语言版本(例如,安装的为中文版或者是英文版),安装的路径等。
例如,安装模板是格式为ats的文档文本。在该文档文本中描述安装过程中用户的选择,以及要安装的组件。
通过第二获取模块220得到的目标安装模板是将要在安装过程中使用的安装模板。
由于在安装模板中已预先写好安装哪些组件,当执行安装操作时,会根据安装模板中的内容来安装。因此,对于不同的待安装组件,安装模板是不一致的。
具体的,以下为安装模板中所包含的部分文本的示例:
[Dialog1]
Title=欢迎使用该安装向导
EN=0
ZH_CH=1
[Dialog2]
Title=许可协议
I Agree=Y
[Component List]C8BISRVR_APP=1
C8BISRVR_APPLICATION_TIER=0
C8BISRVR_GATEWAY=1
C8BISRVR_CONTENT_MANAGER=0
C8BISRVR_CONTENT_DATABASE=0
其中,上述Dialog表示安装过程中显示的内容以及选择,如EN=0,ZH_CH=1表示安装的中文版,不为英文版。I Agree=Y表示同意许可协议。
上述Component List表示对组件进行的设置。例如,C8BISRVR_APP=1表示需要安装组件。同时,C8BISRVR_APPLICATION_TIER=0表示不安装APPLICATION_TIER组件(也可称为APP组件),C8BISRVR_GATEWAY=1表示安装GATEWAY组件,C8BISRVR_CONTENT_MANAGER=0表示不安装CONTENT_MANAGER组件(也可称为CM组件),C8BISRVR_CONTENT_DATABASE=0标识不使用自带数据库。
在以上示例的安装文件中,仅安装GATEWAY组件,则使用该模板安装后的主机提供WEB服务。
进一步地,在本申请其他实施例中,本申请所述的装置还包括:
配置模块,用于获取安装所述BI工具的初始安装模板,配置每种待安装组件对应的安装模板。
上述初始安装模板可以是一个没有对设置项赋值的模板,或者赋值为默认赋值的安装模板。
例如,以下为默认赋值的安装模板的内容。
[Component List]C8BISRVR_APP=0
C8BISRVR_APPLICATION_TIER=0
C8BISRVR_GATEWAY=0
C8BISRVR_CONTENT_MANAGER=0
C8BISRVR_CONTENT_DATABASE=0
在该初始安装模板中,每项设置项的值都为0,表示不进行组件安装。
当获取到初始安装模板之后,由于不同的待安装组件,Component List之中的设置项是不一致的,因此,这里根据各种可能的组件安装方式来为每项设置项赋予不同的值,得到多个安装模板文件。
在具体实施时,可以根据不同的安装模板所对应的待安装组件来进行命名,使得获取待安装组件对应的安装模板时,可以方便快速的获取到与某一待安装组件所对应的安装模板,从而进行快速的安装。
第三获取模块230,用于获取所述目标安装模板对应的配置模板,得到目标配置模板。
当对BI工具进行安装以后,可以对BI工具运行时的参数进行配置,例如要访问的数据库地址等。
例如,以下为配置模板所包含内容的示例:
|||||pata||||
[content store]
Ip=10.20.30.40
Port=1234
Sid=examplesid
|||||file|||||
[content store]=/…/example-cognos-home/configuration/congstartup.xml
其中,在para部分,设置了参数的值,如ip是要访问的数据库的IP地址,上述port是要访问的数据库的端口号,上述sid要访问的数据库(如oracle数据库)的唯一标识符。则通过该数据库,可以对Cognos运行时要访问的数据库相关的参数进行设置,以便在Cognos运行时能准确的访问目标数据库。
其中,在file部分,表示此文件内容中涉及的内容库(content store)的参数,都需要进行参数值替换。
而对于不同的目标安装模板,需要设置的参数是不同的。例如,若A主机上安装了APP组件、GATEWAY组件以及CM组件,而B主机上仅安装了GATEWAY组件。则由于A主机上安装的组件类型更多,需要进行的参数设置也会多于B主机。
通过第三获取模块230,可以根据得到的目标安装模板来获取与目标安装模板所对应的配置模板,即目标配置模板。该目标配置模板用于在根据安装模板进行安装之后对BI工具进行相关参数的设置。
可选地,在本申请其他实施例中,本申请所述的装置还可包括:
调整模块,用于将所述目标配置模板中目标参数的默认值调整为优化值。
其中,上述目标参数可以是与BI工具的运行相关的参数。将目标参数的默认值调整为优化值的目的是对目标参数进行调优。
通常,目标配置模板中的参数都有默认值。上述优化值可以为根据其他BI工具的历史运行情况获取的值,或者是根据目标主机的系统资源来设定等,具体的优化规则可以根据需要预先设定。
例如,用户会话保持,即maximum number of seconds for user’s session,用户会话保持这一参数用于定义在没有获取到数据的情况下经过多长时间产生超时提示。若默认设置为30s,其优化值可以为60s。则在实际使用的时候,经过30s用户没有获取到数据,并不会产生超时提示,在经过60s仍无法获取到数据时,才产生超时提示。
又比如,最大使用内存(maximum amount of memory in MB for process),最大使用内存用于定义BI工具在运行时最大使用多少内存。在调优时可以根据系统资源对其调整,例如将最大使用内存的默认值调整为主机内存的50%,使得BI工具可以快速的运行又不影响主机上其他应用的运行。
在具体实施时,可以预先设置要进行调优的目标参数为哪些。或者是在判断该参数的类型是否为可调优类型的参数,若是,则对其进行调优设置。
在对目标参数进行调优设置时,可以根据对目标参数赋予预设的调优值,或者,根据目标主机的性能参数进行赋值。
在本实施例中,通过对安装后的BI工具的目标参数进行优化,可以提升BI工具安装后的运行效率,提供良好的用户体验。
安装模块240,用于根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
在获取到目标安装模板和目标配置模板之后,读取目标安装模板中的安装信息,根据目标安装模板包含的安装信息进行安装,无需用户再次进行手动点击。并且,在安装完成之后,根据目标配置模板进行配置,可以使得安装好的BI工具能快速可用。
可选地,在本申请其他实施例中,本申请所述的装置还可包括触发模块。所述触发模块用于:
获取所述目标主机上的已启动进程;
判断所述目标主机上的已启动进程中是否包含预设进程;
若所述目标主机上的已启动进程中包含预设进程,在所述预设进程退出之后,执行所述根据所述指令和所述目标安装模板包含的安装信息进行安装,以及根据所述目标模板对安装后的所述BI工具进行配置的操作。
其中,上述预设进程可以根据需要进行预先设定。具体的,预设进程可以为影响BI工具安装的进程或者是占用系统资源较多的进程。
当BI工具安装时,可能需要将某些应用退出,或者某些进程的运行会影响安装。因此,在本实施例中,当不存在预设进程才进行安装,避免了安装过程中才出现错误,导致安装无法进行,又浪费了系统的资源。
可选的,在本申请其他实施例中,所述触发模块还用于:
获取所述目标主机上的已启动进程;若所述目标主机上的已启动进程的数量小于预设数量,执行所述根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置的操作。
上述预设数量的具体值可以根据需要设定,具体的可以依据目标主机的硬件参数来确定。上述预设数量用于判断目标主机上运行的进程数是否过多。由于当目标主机上运行的预设进程数较多时,可能系统资源被占用的较多,此时安装可能不利于安装的快速进行,并且对于已运行的进程也会降低其运行效率。
因此,在BI工具安装之前对主机上已启动的进程的数量进行判断,可以避免BI工具安装过程中影响主机上其他进程的运行效率,同时提高BI工具的安装效率。
可选地,在本申请其他实施例中,本申请所述的装置还可包括:
启动模块,用于启动所述BI工具,若没有接收到启动成功的反馈信息,确定所述BI工具安装错误,发送提示信息。
在本实施例中,若接收到启动成功的反馈信息,可确定BI工具安装成功。
具体的,在启动BI工具之后,还可以执行简单操作(例如是否相关目录都能打开,或者根据操作是否能够返回正确信息等)进一步校验是否完成安装的正确性。
在本实施例中,通过安装以及配置好以后进行启动来校验安装是否成功完成,以使用户知晓安装的情况,如安装错误,可以发送提示信息使用户进行进一步检查。
进一步地,本申请所述的装置还包括:
分析模块,用于获取所述提示信息,根据所述提示信息进行错误分析,得到错误原因;
处理模块,用于若错误原因为第一原因,触发第一获取模块获取待安装组件,或者触发安装模块根据目标安装模板包括的安装信息和指令进行安装,以及所述目标配置模板对安装后的BI工具进行配置直接,以再次进行BI工具的安装;
所述处理模块,还用于若错误原因为第二原因,向用户发送错误原因提醒。
上述提示信息可以是启动后运行错误的提示信息。
上述根据提示信息进行错误分析的方法具体可以是,根据预先设置的错误原因与提示信息对应关系来获取某一提示信息所对应的错误原因是什么。
上述第一原因为可以通过再次安装来解决的原因。同时,若多次进行安装后都无法通过校验,也可以向用户发送错误原因提醒。
上述第二原因为无法通过再次安装来解决的原因,直接向用户发送错误原因提醒,使得用户可以快速的定位问题进行处理,进而方便再次将BI工具进行安装。
在本实施例中,通过在安装错误时进行分析,可以使BI工具再次进行安装或向用户进行提醒,从而在提高安装的效率的同时,提高安装的成功率。
本申请提供的BI工具的安装配置装置通过第一获取模块接收安装BI工具的指令,获取目标主机所需的待安装组件;第二获取模块获取与所述待安装组件对应的安装模板,得到目标安装模板;第三模块获取所述目标安装模板对应的配置模板,得到目标配置模板;安装模块根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。由于在接收安装BI工具的指令之后,获取待安装组件以及目标安装模板,因此可以无需工作人员值守选取就自动安装,并且根据待配置模板进行自动的配置,无需工作人员再进行配置就自动完成配置,实现了缩短安装配置BI工具的时间,提升安装配置BI工具的效率的目的。
上述以软件功能模块的形式实现的集成的单元,可以存储在一个非易失性可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得计算设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。
如图3所示,图3是本申请实现BI工具的安装配置方法的较佳实施例的计算机装置的结构示意图。所述计算机装置包括至少一个发送装置31、至少一个存储器32、至少一个处理器33、至少一个接收装置34以及至少一个通信总线。其中,所述通信总线用于实现这些组件之间的连接通信。
所述计算机装置是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路 (Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。所述计算机装置还可包括网络设备和/或用户设备。其中,所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。
所述计算机装置可以是,但不限于任何一种可与用户通过键盘、触摸板或声控设备等方式进行人机交互的电子产品,例如,平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、智能式穿戴式设备、摄像设备、监控设备等终端。
所述计算机装置所处的网络包括,但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。
其中,所述接收装置34和所述发送装置31可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他设备进行数据通信。
所述存储器32用于存储程序代码。所述存储器32可以是集成电路中没有实物形式的具有存储功能的电路,如RAM(Random-Access Memory,随机存取存储器)、FIFO(First In First Out,)等。或者,所述存储器32也可以是具有实物形式的存储器,如内存条、TF卡(Trans-flash Card)、智能媒体卡(smart media card)、安全数字卡(secure digital card)、快闪存储器卡(flash card)等储存设备等等。
所述处理器33可以包括一个或者多个微处理器、数字处理器。所述处理器33可调用存储器32中存储的程序代码以执行相关的功能。例如,图3中所述的各个单元是存储在所述存储器32中的程序代码,并由所述处理器33所执行,以实现一种BI工具的安装配置方法。所述处理器33又称中央处理器(CPU,Central Processing Unit),是一块超大规模的集成电路,是运算核心(Core)和控制核心(Control Unit)。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (20)

  1. 一种BI工具的安装配置方法,其特征在于,所述方法包括:
    接收安装BI工具的指令,获取目标主机所需的待安装组件;
    获取与所述待安装组件对应的安装模板,得到目标安装模板;
    获取所述目标安装模板对应的配置模板,得到目标配置模板;
    根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    将所述目标配置模板中目标参数的默认值调整为优化值。
  3. 如权利要求1或2所述的方法,其特征在于,所述获取待安装组件包括:
    获取所述目标主机的性能参数,根据所述性能参数确定待安装组件。
  4. 如权利要求1或2所述的方法,其特征在于,所述获取待安装组件包括:
    获取所述目标主机的历史安装记录,根据所述历史安装记录确定待安装组件。
  5. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:
    获取所述目标主机上的已启动进程;
    判断所述目标主机上的已启动进程中是否包含预设进程;
    若是,在所述预设进程退出之后,执行所述根据所述指令和所述目标安装模板包含的安装信息进行安装,以及根据所述目标模板对安装后的所述BI工具进行配置的操作。
  6. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:
    获取所述目标主机上的已启动进程;
    若所述目标主机上的已启动进程的数量小于预设数量,执行所述根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置的操作。
  7. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:
    启动所述BI工具,若没有接收到启动成功的反馈信息,确定所述BI工具安装错误,发送提示信息。
  8. 一种BI工具的安装配置装置,其特征在于,所述装置包括:
    第一获取模块,用于接收BI工具的指令,获取目标主机所需的待安装组件;
    第二获取模块,用于获取与所述待安装组件对应的安装模板,得到目标安装模板;
    第三获取模块,用于获取所述目标安装模板对应的配置模板,得到目标配置模板;
    安装模块,用于根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
  9. 一种计算机装置,其特征在于,所述计算机装置包括存储器及处理器,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现以下步骤:
    接收安装BI工具的指令,获取目标主机所需的待安装组件;
    获取与所述待安装组件对应的安装模板,得到目标安装模板;
    获取所述目标安装模板对应的配置模板,得到目标配置模板;
    根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
  10. 如权利要求9所述的计算机装置,其特征在于,所述获取待安装组件包括:
    获取所述目标主机的性能参数,根据所述性能参数确定待安装组件。
  11. 如权利要求9所述的计算机装置,其特征在于,所述获取待安装组件包括:
    获取所述目标主机的历史安装记录,根据所述历史安装记录确定待安装组件。
  12. 如权利要求9所述的计算机装置,其特征在于,所述处理器还用于执行所述至少一个指令以实现以下步骤:
    获取所述目标主机上的已启动进程;
    判断所述目标主机上的已启动进程中是否包含预设进程;
    若是,在所述预设进程退出之后,执行所述根据所述指令和所述目标安装模板包含的安装信息进行安装,以及根据所述目标模板对安装后的所述BI工具进行配置的操作。
  13. 如权利要求9所述的计算机装置,其特征在于,所述处理器用于执行所述至少一个指令以实现以下步骤:
    获取所述目标主机上的已启动进程;
    若所述目标主机上的已启动进程的数量小于预设数量,执行所述根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置的操作。
  14. 如权利要求9所述的计算机装置,其特征在于,所述处理器用于执行所述至少一个指令以实现以下步骤:
    启动所述BI工具,若没有接收到启动成功的反馈信息,确定所述BI工具安装错误,发送提示信息。
  15. 一种非易失性可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现以下步骤:
    接收安装BI工具的指令,获取目标主机所需的待安装组件;
    获取与所述待安装组件对应的安装模板,得到目标安装模板;
    获取所述目标安装模板对应的配置模板,得到目标配置模板;
    根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置。
  16. 如权利要求15所述的存储介质,其特征在于,所述获取待安装组件包括:
    获取所述目标主机的性能参数,根据所述性能参数确定待安装组件。
  17. 如权利要求15所述的存储介质,其特征在于,所述获取待安装组件包括:
    获取所述目标主机的历史安装记录,根据所述历史安装记录确定待安装组件。
  18. 如权利要求15所述的存储介质,其特征在于,所述计算机指令被处理器执行时还实现以下步骤:
    获取所述目标主机上的已启动进程;
    判断所述目标主机上的已启动进程中是否包含预设进程;
    若是,在所述预设进程退出之后,执行所述根据所述指令和所述目标安装模板包含的安装信息进行安装,以及根据所述目标模板对安装后的所述BI工具进行配置的操作。
  19. 如权利要求15所述的存储介质,其特征在于,所述计算机指令被处理器执行时还实现以下步骤:
    获取所述目标主机上的已启动进程;
    若所述目标主机上的已启动进程的数量小于预设数量,执行所述根据所述指令和所述目标安装模板包括的安装信息进行安装,以及根据所述目标配置模板对安装后的所述BI工具进行配置的操作。
  20. 如权利要求15所述的存储介质,其特征在于,所述计算机指令被处理器执行时还实现以下步骤:
    启动所述BI工具,若没有接收到启动成功的反馈信息,确定所述BI工具安装错误,发送提示信息。
PCT/CN2018/099783 2018-04-23 2018-08-10 Bi工具的安装配置方法、装置、计算机装置及存储介质 WO2019205349A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810367353.3 2018-04-23
CN201810367353.3A CN108647035A (zh) 2018-04-23 2018-04-23 Bi工具的安装配置方法、装置、计算机装置及存储介质

Publications (1)

Publication Number Publication Date
WO2019205349A1 true WO2019205349A1 (zh) 2019-10-31

Family

ID=63747283

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099783 WO2019205349A1 (zh) 2018-04-23 2018-08-10 Bi工具的安装配置方法、装置、计算机装置及存储介质

Country Status (2)

Country Link
CN (1) CN108647035A (zh)
WO (1) WO2019205349A1 (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207859A (zh) * 2010-03-31 2011-10-05 国际商业机器公司 解决方案部署方法、设备和系统
CN103268242A (zh) * 2013-06-05 2013-08-28 中国电子科技集团公司第十五研究所 安装信息系统的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2507978A (en) * 2012-11-15 2014-05-21 Ibm Updating virtual machine templates using feed data relating to the application
CN105487859B (zh) * 2015-11-25 2018-11-13 北京工业大学 一种基于模板的大数据组件web部署方法
CN107704249A (zh) * 2017-09-21 2018-02-16 杭州云霁科技有限公司 一种用于物理机自动安装配置的系统及方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207859A (zh) * 2010-03-31 2011-10-05 国际商业机器公司 解决方案部署方法、设备和系统
CN103268242A (zh) * 2013-06-05 2013-08-28 中国电子科技集团公司第十五研究所 安装信息系统的方法及装置

Also Published As

Publication number Publication date
CN108647035A (zh) 2018-10-12

Similar Documents

Publication Publication Date Title
US10817157B2 (en) User interface for database management services
US10768923B2 (en) Release orchestration for performing pre release, version specific testing to validate application versions
US12068912B2 (en) Implementation of compliance settings by a mobile device for compliance with a configuration scenario
US11119746B2 (en) Extensions for deployment patterns
US20210279203A1 (en) System and method for provisioning databases in a hyperconverged infrastructure system
US9602599B2 (en) Coordinating application migration processes
US9459856B2 (en) Effective migration and upgrade of virtual machines in cloud environments
US20200034178A1 (en) Virtualization agnostic orchestration in a virtual computing system
US9460109B1 (en) Centralized provisioning process leveraging network attached storage
US9223601B2 (en) Control device, control method, and non-transitory computer-readable storage medium for a virtual system deployment
US12105683B2 (en) System and method for creating template for database services
US11645186B2 (en) Remote deployment of monitoring agents on computing systems
US10958523B1 (en) Consistent deployment of monitoring configurations on multiple computing systems
US11526501B2 (en) Materialized views assistant
WO2019205349A1 (zh) Bi工具的安装配置方法、装置、计算机装置及存储介质
US11656926B1 (en) Systems and methods for automatically applying configuration changes to computing clusters
US20230126997A1 (en) Database group management
US20230350712A1 (en) Bmc parameter configuration and effect-taking method and apparatus, device, and medium
US11456919B2 (en) Input and output for target device communication
WO2021189895A1 (zh) 配置数据的管理方法、装置、设备及存储介质
US20210349705A1 (en) Performance sensitive storage system upgrade
US11388239B2 (en) Previewing impacted entities in automated device definitions
US20160380904A1 (en) Instruction selection based on a generic directive
CN108595190B (zh) 报表工具搭建方法、装置、计算机装置及存储介质
US20240333704A1 (en) Agentless gitops and custom resources for application orchestration and management

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: 18916606

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: 18916606

Country of ref document: EP

Kind code of ref document: A1