CN109639812A - A kind of participle package management method, apparatus and system - Google Patents
A kind of participle package management method, apparatus and system Download PDFInfo
- Publication number
- CN109639812A CN109639812A CN201811581386.4A CN201811581386A CN109639812A CN 109639812 A CN109639812 A CN 109639812A CN 201811581386 A CN201811581386 A CN 201811581386A CN 109639812 A CN109639812 A CN 109639812A
- Authority
- CN
- China
- Prior art keywords
- participle
- packet
- solr
- participle packet
- client
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of participle package management methods, apparatus and system, this method comprises: receiving the participle packet that user is uploaded by the visual page in client;By participle packet storage to target store path preset on Solr cluster;Corresponding configuration file on the Solr cluster is updated according to participle packet;Preset Solr order is called to start participle packet based on the updated configuration file;If the participle packet starting is normal, the instruction participle is sent to the client and wraps biography successfully instruction information, so that the client is shown the instruction information by the visual page.The device includes: receiving unit, storage unit, configuration unit, detection unit and transmission unit.The system includes: client, Solr cluster and above-mentioned participle packet managing device.This programme is able to use family and more easily uses Solr.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of participle package management method, apparatus and system.
Background technique
Solr is an independent enterprise-level search application server, provides inquiry language more more abundant than Lucene
Speech, support is configurable and expansible, and query performance is optimized.Segment the package definition rule segmented to search term
Then, user the management such as uploads, starts, deletes by the participle packet to Solr and operates, and Solr can be made according to required side
Formula carries out word segmentation processing to search term, and then meets the personalized search demand of user.
Currently, user needs to log in the virtual machine of Solr when uploading the participle packet of Solr, pass through later manually
Participle packet is stored in specified storage catalogue and corresponding configuration file is added by mode, restarts Solr cluster later to complete
Segment the upload of packet.
For the method that the participle packet at present to Solr is uploaded, user needs to log in the machine where Solr cluster,
And store participle packet by way of manually and configuration file is added, biggish inconvenience is brought using Solr to user.
Summary of the invention
The embodiment of the invention provides a kind of participle package management methods, apparatus and system, are able to use family more easily
Use Solr.
In a first aspect, the embodiment of the invention provides a kind of participle package management methods, comprising:
Receive the participle packet that user is uploaded by the visual page in client;
By participle packet storage to target store path preset on Solr cluster;
Corresponding configuration file on the Solr cluster is updated according to participle packet;
Preset Solr order is called to start participle packet based on the updated configuration file;
If the participle packet starting is normal, the instruction participle is sent to the client and wraps biography successfully instruction
Information, so that the client is shown the instruction information by the visual page.
Optionally, call preset Solr order to the participle based on the updated configuration file described
After packet is started, further comprise:
If the participle packet starting is abnormal, the configuration file is rolled back to, it is updated according to participle packet
Preceding state.
Optionally, call preset Solr order to the participle based on the updated configuration file described
After packet is started, further comprise:
If the participle packet starting is abnormal, the reason abnormal to the participle packet starting is analyzed, and is obtained abnormal
Analysis as a result, and the anomaly analysis result is sent to the client so that the client passes through the visualization page
It is shown in face of the anomaly analysis result.
Optionally, it is sent described to the client after indicating that the participle wraps the successful instruction information of biography, into
One step includes:
The enabled instruction for the participle packet that the user is sent by the visual page is received, and according to institute
Enabled instruction is stated to start participle packet.
Optionally, it is sent described to the client after indicating that the participle wraps the successful instruction information of biography, into
One step includes:
It receives the user to instruct by the deletion for the participle packet that the visual page is sent, and according to institute
It states deletion instruction and deletes participle packet from the target store path.
Second aspect, the embodiment of the invention also provides a kind of participle packet managing devices, comprising: receiving unit, storage are single
Member, configuration unit, detection unit and transmission unit;
The receiving unit, the participle packet uploaded for receiving user by the visual page in client;
The storage unit, the participle packet for receiving the receiving unit are stored to default on Solr cluster
Target store path;
The configuration unit, the participle packet for being received according to the receiving unit is to phase on the Solr cluster
Corresponding configuration file is updated;
The detection unit, it is preset for being called based on the updated configuration file of the configuration unit
Solr order starts the participle packet that the storage unit stores;
The transmission unit, for after the detection unit wraps normal starting to the participle, Xiang Suoshu client to be sent out
The instruction participle is sent to wrap biography successfully instruction information, so that the client is by the visual page to the instruction
Information is shown.
Optionally,
The configuration unit is further used for occurring in the starting that the detection unit carries out the participle packet abnormal
Afterwards, the state configuration file being rolled back to before being updated according to the participle packet.
Optionally, which further comprises: analytical unit;
The analytical unit, for the detection unit to it is described participle packet carry out starting there is exception after, to institute
It states the abnormal reason of participle packet starting to be analyzed, obtains anomaly analysis result;
The transmission unit, the anomaly analysis result for being further used for obtaining the analytical unit are sent to described
Client, so that the client is shown the anomaly analysis result by the visual page.
Optionally,
The receiving unit, be further used for receiving the user by the visual page send for described point
The enabled instruction of word packet, and participle packet is started according to the enabled instruction.
Optionally,
The receiving unit, be further used for receiving the user by the visual page send for described point
The deletion of word packet instructs, and is deleted participle packet from the target store path according to deletion instruction.
The third aspect, the embodiment of the invention also provides a kind of participle packet management systems, comprising: client, Solr cluster
Any one the participle packet managing device provided with above-mentioned second aspect;
The client, for showing visual page, and the participle packet that user is uploaded by the visual page
It is sent to the participle packet managing device;
The Solr cluster, for what is received in preset target store path to the participle packet managing device
The participle packet is stored.
Optionally,
The Solr cluster includes: at least three management nodes and at least three Solr nodes;
The management node, for after receiving search mission, according to the computing resource of each Solr node
Idleness distributes at least one described Solr node and handles described search task;
The Solr node is handled described search task for the participle packet by being activated.
Participle package management method provided in an embodiment of the present invention, apparatus and system, user can by client can
Depending on changing page uploading participle packet, after receiving the participle packet that user is uploaded, will be preset in participle packet storage to Solr cluster
Target store path, and according to participle packet configuration file corresponding on Solr cluster is updated, later based on update after
Configuration file call preset Solr order to wrap participle to start, if Solr can normally start, to client
It sends instruction participle and wraps biography successfully instruction information, so that client is shown instruction information by the customization page.
It can be seen that user only needs to upload participle packet by the visual page of client during uploading participle packet, other
It such as segments the storage of packet, the update of configuration file and the detection of participle packet to be automatically performed, so that user can be convenient on the ground
The participle packet of Solr is passed, so as to make user more easily use Solr.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart for segmenting package management method provided by one embodiment of the present invention;
Fig. 2 is the schematic diagram of equipment where a kind of participle packet managing device provided by one embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for segmenting packet managing device provided by one embodiment of the present invention;
Fig. 4 is the schematic diagram of another participle packet managing device provided by one embodiment of the present invention;
Fig. 5 is a kind of schematic diagram for segmenting packet management system provided by one embodiment of the present invention;
Fig. 6 is the schematic diagram of another participle packet management system provided by one embodiment of the present invention;
Fig. 7 is the flow chart of another participle package management method provided by one embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, this method may include following step the embodiment of the invention provides a kind of participle package management method
It is rapid:
Step 101: receiving the participle packet that user is uploaded by the visual page in client;
Step 102: by participle packet storage to target store path preset on Solr cluster;
Step 103: corresponding configuration file on Solr cluster being updated according to participle packet;
Step 104: calling preset Solr order to start participle packet based on updated configuration file;
Step 105: if participle packet starting is normal, sending instruction participle to client and wrap biography successfully instruction letter
Breath, so that client is shown instruction information by visual page.
The embodiment of the invention provides a kind of participle package management method, user can pass through the visual page in client
Participle packet is uploaded, after receiving the participle packet that user is uploaded, participle packet storage is deposited to preset target on Solr cluster
Path is stored up, and configuration file corresponding on Solr cluster is updated according to participle packet, later based on updated configuration text
Part calls preset Solr order to start participle packet, if Solr can normally start, sends and indicates to client
Participle wraps biography successfully instruction information, so that client is shown instruction information by the customization page.It can be seen that
User only needs to upload participle packet by the visual page of client during uploading participle packet, other are such as participle packet
Storage, the update of configuration file and the detection of participle packet are automatically performed, so that user uploads point of Solr in which can be convenient
Word packet, so as to make user more easily use Solr.
Optionally, on the basis of participle package management method shown in Fig. 1, step 103 will configure accordingly on Solr cluster
File be updated to it is corresponding with participle packet after, updated configuration file is suitable for the starting of the participle packet, and step 104 is based on more
Whether the configuration file after new calls Solr order to start the participle packet, normal come the structure for detecting participle packet with this.
If participle packet can normally start, illustrate that the structure of the participle packet is normal, guarantees that Solr cluster can be used normally;If point
Word packet can not normally start, and illustrate the textural anomaly of the participle packet, not can guarantee Solr cluster normal use.
After step 104 calls Solr order to run participle packet, if participle packet starting is abnormal, by Solr collection
The configuration file being updated on group rolls back to the state before being updated according to participle packet.
Since participle packet can not normally start, Solr cluster can not start participle packet according to updated configuration file and execute
Search mission, therefore configuration file is updated into the participle packet newly received according to this state before being updated, so that
Solr cluster can start original participle packet according to the configuration file before update to execute search mission, guarantee that Solr cluster can
With normal use, Solr cluster reliability of operation and stability are promoted.
Optionally, on the basis of participle package management method shown in Fig. 1, Solr order is called to wrap participle in step 104
After being started, if participle packet starting is abnormal, the abnormal reason of starting is wrapped to participle and is analyzed, anomaly analysis is obtained
As a result, and anomaly analysis result obtained is sent to client, allow client by visual page to exception
Analysis result is shown.
When participle packet can not normally start, detailed analysis is carried out to the mistake occurred in participle point start-up course, is obtained
After the abnormal anomaly analysis of participle packet starting be may cause as a result, the anomaly analysis result is sent to client, client can be with
The anomaly analysis result is shown by visual page, so that user can be looked by the visual page in client
To the anomaly analysis as a result, in turn user can according to anomaly analysis result to participle packet there are the problem of optimize so that
User can targetedly segment packet there are the problem of solve, facilitate promoted user usage experience.
It should be noted that by calling Solr order to start participle packet, primarily to detection participle packet
Whether structure is normal, is not related to detect the content of participle packet, because the content of participle packet is user according to itself need
It asks and personalized customization, and segments packet and need there is specific structure could normally start.
Optionally, it on the basis of participle package management method shown in Fig. 1, after detection participle packet can normally start, uses
Family can send enabled instruction by the visual page in client, and then after receiving enabled instruction transmitted by user
Participle packet can be started.In addition, user can also be sent by the visual page in client deletes instruction, in turn
The participle packet for being stored in target store path can be deleted after receiving deletion instruction transmitted by user.
Setting can pass through the visual page not to the visual page that participle packet is managed, user on the client
Participle packet can be only uploaded, the operation such as the participle packet uploaded can also be started, be deleted, so that user is to participle
It wraps when the operation such as being started, deleted without the virtual machine for entering Solr cluster, user is facilitated to open the participle packet of Solr
The operations such as dynamic, deletion further improve the convenience that user uses Solr.
It should be noted that client can realize the displaying of visual page by JavaScript technology, and can be with
The upload of participle packet is realized by Swift.After passing participle packet on the client, participle packet can be completed by Shell language
The operation such as downloading, installation, starting and deletion.In addition, participle packet described in the embodiment of the present invention can for jar format or
Xml format promotes the applicability of the participle package management method to meet the individual demand of different user.
As shown in Figure 2 and Figure 3, the embodiment of the invention provides a kind of participle packet managing devices.Installation practice can pass through
Software realization can also be realized by way of hardware or software and hardware combining.For hardware view, as shown in Fig. 2, for this
A kind of hardware structure diagram of equipment where the participle packet managing device that inventive embodiments provide, in addition to processor shown in Fig. 2, interior
It deposits, except network interface and nonvolatile memory, the equipment in embodiment where device usually can also include that other are hard
Part, such as it is responsible for the forwarding chip of processing message.Taking software implementation as an example, as shown in figure 3, as on a logical meaning
Device is to be read into memory computer program instructions corresponding in nonvolatile memory by the CPU of equipment where it
What operation was formed.Participle packet managing device provided in this embodiment, comprising: receiving unit 301, storage unit 302, configuration unit
303, detection unit 304 and transmission unit 305;
Receiving unit 301, the participle packet uploaded for receiving user by the visual page in client;
Storage unit 302, the participle packet for receiving receiving unit 301 are stored to preset target on Solr cluster
Store path;
Configuration unit 303, the participle packet for being received according to receiving unit 301 is to corresponding configuration on Solr cluster
File is updated;
Detection unit 304, for calling preset Solr order based on the updated configuration file of configuration unit 303
The participle packet stored to storage unit 302 starts;
Transmission unit 305, for sending instruction participle to client after 304 pairs of normal startings of participle packet of detection unit
Biography successfully instruction information is wrapped, so that client is shown instruction information by visual page.
Optionally, on the basis of participle packet managing device shown in Fig. 3,
The configuration unit 303 is further used for occurring in the starting that the detection unit 304 carries out the participle packet
After exception, the configuration file is rolled back to the state before being updated according to the participle packet.
Optionally, on the basis of participle packet managing device shown in Fig. 3, as shown in figure 4, the participle packet managing device may be used also
To further comprise: analytical unit 306;
Analytical unit 306, after exception occurs in the starting for segmenting packet progress at 304 pairs of detection unit, to participle Bao Qi
It moves abnormal reason to be analyzed, obtains anomaly analysis result;
Transmission unit 305 is further used for the anomaly analysis result that analytical unit 306 obtains being sent to client, with
It is shown client to anomaly analysis result by visual page.
Optionally, on the basis of packet managing device is segmented shown in Fig. 3 or Fig. 4,
Receiving unit 301 is further used for receiving user by the visual page transmission in client for participle packet
Enabled instruction, and the participle packet is started according to enabled instruction.
Optionally, on the basis of packet managing device is segmented shown in Fig. 3 or Fig. 4,
Marriage searches unit 301 and is further used for receiving user's wrapping for participle by the visual page hair in client
Deletion instruction, and according to delete instruction by the participle packet from Solr cluster target store path delete.
It should be noted that the contents such as information exchange, implementation procedure between each unit in above-mentioned apparatus, due to this
Inventive method embodiment is based on same design, and for details, please refer to the description in the embodiment of the method for the present invention, no longer superfluous herein
It states.
As shown in figure 5, one embodiment of the invention provides a kind of participle packet management system, comprising: client 501,
The participle packet managing device 503 that Solr cluster 502 and any one above-mentioned embodiment provide;
Client 501 passes through the participle packet that shown visual page uploads for showing visual page, and by user
It is sent to participle packet managing device 503;
Solr cluster is used for the participle packet received in preset target store path to participle packet managing device 503
It is stored.
Participle packet management system provided in an embodiment of the present invention shows there is visual page in client, and user was by should
Visual page can upload participle packet, and the participle packet that user uploads can be then sent to participle packet managing device by client,
Packet managing device is segmented by the participle received packet storage to the target store path on Solr cluster, and completes corresponding configuration text
The update of part and the detection of participle packet.To user upload Solr participle packet when without enter Solr cluster virtual machine,
It does not need that configuration file is manually added, user only needs to upload participle packet by visual page, remaining is as configured text yet
The operations such as part updates, participle packet is detected are automatically performed by participle packet managing device, and user is more easily uploaded
The participle packet of Solr, so as to make user more easily use Solr.
Optionally, on the basis of packet management system is segmented described in Fig. 5, as shown in fig. 6, Solr cluster 502 includes: at least
Three management nodes 5021 and at least three Solr nodes 5022, wherein
Each management node 5021 constitutes management cluster 5023, and each 5022 formation base of Solr node searches for cluster
5024.In addition, Solr cluster 502 can also include expanded search cluster 5025, expanded search cluster 5025 can be according to reality
Demand includes one or more Solr nodes 5022, and Base search cluster 5024 is collectively constituted with expanded search cluster 5025 and searched
Suo Jiqun 5026.
Management node 5021 is used for after receiving search mission, empty according to the computing resource of each Solr node 5022
Not busy rate is distributed at least one Solr node 5022 and is handled the search mission;
5022 user of Solr node passes through the participle packet being activated and handles corresponding search mission.
It should be noted that management node 5021 may include Zookeeper component and HealthMonitor component, pipe
Reason node 5021 can be referred to as Zookeeper.
The embodiment of the invention provides a kind of Solr cluster mode of elastic telescopic, which is managed by Zookeeper
Solr completes building for cluster.Cluster is made of two class node groups (management cluster and search cluster), using the structural portion of 3+3
It affixes one's name to (3Zookeeper+3Solr), to meet basic mutual backup and distributed access requirement.It simultaneously can elasticity there are also one group
Flexible Solr node (expanded search cluster), which can be added cluster in real time, realize the extending transversely of cluster, to improve
Oncurrent processing ability.
It is further to note that participle assures reason dress in the participle packet management system provided by the embodiment of the present invention
It sets and is operated using downloading, starting, the deletion etc. that Shell language completes participle packet, and participle packet is detected, will test result
Return to foreground.Client realizes page presentation by JavaScript technology, calls Swift to realize the upload of participle packet, connects
The testing result that contracture word packet managing device wraps participle, and visualized.
Below with reference to participle packet management system shown in fig. 5, it is provided for the embodiments of the invention participle package management method
It is described in further detail, as shown in fig. 7, this method may include steps of:
Step 701: user uploads participle packet by client.
In embodiments of the present invention, client shows visual page, and user to be uploaded by visual page selection
Participle packet, wherein participle packet can be jar format or xml format.Specifically, client can pass through JavaScript skill
The displaying of art realization visual page.
Step 702: the participle packet that user uploads is sent to participle packet managing device by client.
In embodiments of the present invention, for user after uploading participle packet by visual page, client is uploaded user
Participle packet be sent to participle packet managing device.Specifically, client can call Swift that participle packet is sent to participle and assure
Reason exists.
Step 703: participle packet managing device downloading participle packet, and participle packet storage is stored to the target on Solr cluster
Path.
In embodiments of the present invention, for client after the upload for completing participle packet, participle packet managing device can be to client
It holds uploaded participle packet to be downloaded, and the participle packet downloaded storage is stored to target preset on Solr cluster
Path.
Step 704: participle packet managing device is according to the participle packet downloaded to corresponding configuration file on Solr cluster
It is updated.
In embodiments of the present invention, participle packet managing device is in the participle packet storage that will be downloaded to target store path
Afterwards, corresponding configuration file on Solr cluster is updated according to the participle packet downloaded, so that configuration file is supported to be somebody's turn to do
Segment the starting of packet.
Step 705: participle packet managing device is based on updated configuration file and Solr order is called to open participle packet
It is dynamic.
In embodiments of the present invention, participle packet managing device carries out the configuration file on Solr cluster according to participle packet
After update, call preset Solr order to being stored on target store path based on updated configuration file
Participle packet is started.
Step 706: judge whether participle packet correctly starts, if so, step 707 is executed, it is no to then follow the steps 709.
In embodiments of the present invention, participle packet managing device is after calling Solr order to start participle packet, such as
Fruit participle packet starting is normal, illustrates that the structure of participle packet does not have mistake, correspondingly executes step 707, if participle packet starting is different
Often, illustrate participle packet structure there are mistakes, cause Solr cluster can not work normally, correspondingly execute step 709.
Step 707: participle packet managing device sends instruction participle to client and wraps biography successfully instruction information.
In embodiments of the present invention, after determining that participle packet can normally start, participle packet managing device generation is used for
Instruction participle wraps biography successfully instruction information, and instruction information generated is sent to client.
Step 708: client is shown instruction information by visual page, and terminates current process.
In embodiments of the present invention, client passes through after receiving instruction information transmitted by participle packet managing device
Visual page is shown received instruction information.
Step 709: configuration file is rolled back to the state before updating by participle packet managing device.
In embodiments of the present invention, after determining that participle packet can not can normally start, packet managing device is segmented to step
The configuration file that updates in rapid 704 carries out rollback processing, so that each configuration file is rolled back to according to download participle packet progress
State before update.
Step 710: participle packet managing device carries out analysis to starting abnormal cause and obtains anomaly analysis as a result, and will be abnormal
Analysis result is sent to client.
In embodiments of the present invention, determine participle packet can not can normally start after, participle packet managing device to point
The abnormal reason of word packet starting carries out detailed analysis, obtains corresponding anomaly analysis as a result, and by anomaly analysis obtained
As a result it is sent to client.
Step 711: client is shown anomaly analysis result by visual page.
In embodiments of the present invention, client is receiving transmitted by participle packet managing device after anomaly analysis result,
Received anomaly analysis result is shown by visual page.
It should be noted that client can pass through in the participle package management method provided by above-mentioned Fig. 7
JavaScript technology realizes the displaying of visual page, and Swift can be called to realize the upload of participle packet, and segments and assure
Reason device can be used Shell scripting language and carry out logical process, i.e. participle packet managing device is executed by Shell scripting language
Above-mentioned steps 703 to 707, step 709 and step 710.
It, specifically can be in addition, participle packet managing device is executing above-mentioned steps 703 to 707, step 709 and when step 710
It is realized by following code:
The embodiment of the invention also provides a kind of readable mediums, including execute instruction, when the processor of storage control is held
When executing instruction described in row, the storage control executes the participle package management method that above-mentioned each embodiment provides.
The embodiment of the invention also provides a kind of storage controls, comprising: processor, memory and bus;
The memory is executed instruction for storing, and the processor is connect with the memory by the bus, when
When the storage control is run, the processor executes the described of memory storage and executes instruction, so that the storage
Controller executes the participle package management method that above-mentioned each embodiment provides.
In conclusion participle package management method, apparatus and system that each embodiment of the present invention provides, at least have as follows
The utility model has the advantages that
1, in embodiments of the present invention, user can upload participle packet by the visual page in client, receive
After the participle packet uploaded to user, by participle packet storage to target store path preset on Solr cluster, and according to participle
Packet is updated configuration file corresponding on Solr cluster, calls preset Solr life based on updated configuration file later
It enables and participle packet is started, if Solr can normally start, sent to client and indicate that participle is wrapped biography and successfully referred to
Show information, so that client is shown instruction information by the customization page.It can be seen that in the process for uploading participle packet
Middle user only needs to upload participle packet by the visual page of client, other such as storage of participle packet, configuration files are more
New and participle packet detection is automatically performed, so that user uploads the participle packet of Solr in which can be convenient, so as to use
Family more easily uses Solr.
2, in embodiments of the present invention, since participle packet can not normally start, Solr cluster is according to updated configuration text
Part can not start participle packet and execute search mission, therefore configuration file is updated to the participle packet newly received according to this and is carried out more
State before new allows Solr cluster to start original participle packet according to the configuration file before update and appoints to execute search
Business guarantees that Solr cluster can be used normally, promotes Solr cluster reliability of operation and stability.
3, in embodiments of the present invention, when participle packet can not normally start, to the mistake occurred in participle point start-up course
Detailed analysis is accidentally carried out, obtains and may cause the abnormal anomaly analysis of participle packet starting as a result, the anomaly analysis result is sent to
After client, client can be shown the anomaly analysis result by visual page, so that user can pass through visitor
Visual page on the end of family finds the anomaly analysis as a result, user can have participle packet according to anomaly analysis result in turn
The problem of optimize, allow user targetedly segment packet there are the problem of solve, facilitate promoted user
Usage experience.
4, in embodiments of the present invention, setting can use the visual page that participle packet is managed on the client
Family can not only upload participle packet by the visual page, can also be started to the participle packet uploaded, be deleted
Operation so that user when the operation such as starting, deleting to participle packet without entering the virtual machine of Solr cluster, facilitate user
The operation such as started, deleted to the participle packet of Solr, further improves the convenience that user uses Solr.
5, in embodiments of the present invention, during uploading participle packet, user only needs the visualization by client
Page selection participle packet is uploaded, without wrapping in specified path storage to participle by way of manually and configuration being added
File, avoiding manual operation fault causes participle to wrap the case where biography fails, and improves the success rate that participle wraps biography.
6, in embodiments of the present invention, using the B/S structure of popular, B/S is rapid with Internet in recent years
A kind of technology to grow up, it is similar with Client/Server, and client is the browser of a standard, this system
Based on B/S structure, its function is showed in the form of website, has adapted to the status of current Internet development.Through the invention, energy
The problem of primary Solr administration page of effective solution is only capable of checking participle packet operation, and user is unable to complete upload, publication.
It should be noted that, in this document, such as first and second etc relational terms are used merely to an entity
Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation
Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements,
It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged
Except there is also other identical factors in the process, method, article or apparatus that includes the element.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
In the various media that can store program code such as disk.
Finally, it should be noted that the foregoing is merely presently preferred embodiments of the present invention, it is merely to illustrate skill of the invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.
Claims (10)
1. a kind of participle package management method characterized by comprising
Receive the participle packet that user is uploaded by the visual page in client;
By participle packet storage to target store path preset on Solr cluster;
Corresponding configuration file on the Solr cluster is updated according to participle packet;
Preset Solr order is called to start participle packet based on the updated configuration file;
If the participle packet starting is normal, the instruction participle is sent to the client and wraps biography successfully instruction letter
Breath, so that the client is shown the instruction information by the visual page.
2. the method according to claim 1, wherein being called in advance described based on the updated configuration file
After the Solr order first set starts participle packet, further comprise:
If the participle packet starting is abnormal, the configuration file is rolled back to before being updated according to participle packet
State.
3. the method according to claim 1, wherein being called in advance described based on the updated configuration file
After the Solr order first set starts participle packet, further comprise:
If the participle packet starting is abnormal, the reason abnormal to the participle packet starting is analyzed, and obtains anomaly analysis
As a result, and the anomaly analysis result is sent to the client so that the client pass through the visual page pair
The anomaly analysis result is shown.
4. method according to any one of claims 1 to 3, which is characterized in that indicated in described sent to the client
After the participle wraps the successful instruction information of biography, further comprise:
The enabled instruction for the participle packet that the user is sent by the visual page is received, and is opened according to described
Dynamic instruction starts participle packet;
And/or
It receives the user to instruct by the deletion for the participle packet that the visual page is sent, and is deleted according to described
Except instruction deletes participle packet from the target store path.
5. a kind of participle packet managing device characterized by comprising receiving unit, storage unit, configuration unit, detection unit
And transmission unit;
The receiving unit, the participle packet uploaded for receiving user by the visual page in client;
The storage unit, the participle packet for receiving the receiving unit are stored to preset mesh on Solr cluster
Mark store path;
The configuration unit, the participle packet for being received according to the receiving unit is to corresponding on the Solr cluster
Configuration file be updated;
The detection unit, for calling preset Solr life based on the updated configuration file of the configuration unit
Order starts the participle packet that the storage unit stores;
The transmission unit, for after the detection unit wraps normal starting to the participle, the transmission of Xiang Suoshu client to refer to
Show that the participle wraps biography successfully instruction information, so that the client is by the visual page to the instruction information
It is shown.
6. device according to claim 5, which is characterized in that
The configuration unit is further used for after exception occurs in the starting that the detection unit carries out the participle packet, will
The configuration file is rolled back to the state before being updated according to the participle packet.
7. device according to claim 5, which is characterized in that further comprise: analytical unit;
The analytical unit, for the detection unit to it is described participle packet carry out starting there is exception after, to described point
The abnormal reason of word packet starting is analyzed, and anomaly analysis result is obtained;
The transmission unit, the anomaly analysis result for being further used for obtaining the analytical unit are sent to the client
End, so that the client is shown the anomaly analysis result by the visual page.
8. according to the device any in claim 5 to 7, which is characterized in that
The receiving unit, be further used for receiving the user by the visual page send for participle packet
Enabled instruction, and according to the enabled instruction to the participle packet start;
And/or
The receiving unit, be further used for receiving the user by the visual page send for participle packet
Deletion instruction, and according to deletions instruction by the participle wrap from the target store path deletion.
9. a kind of participle packet management system characterized by comprising any in client, Solr cluster and claim 5 to 8
The participle packet managing device;
The client is sent for showing visual page, and by user by the participle packet that the visual page uploads
To the participle packet managing device;
The Solr cluster, described in receiving in preset target store path to the participle packet managing device
Participle packet is stored.
10. system according to claim 9, which is characterized in that
The Solr cluster includes: at least three management nodes and at least three Solr nodes;
The management node, it is idle according to the computing resource of each Solr node for after receiving search mission
Rate is distributed at least one described Solr node and is handled described search task;
The Solr node is handled described search task for the participle packet by being activated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811581386.4A CN109639812A (en) | 2018-12-24 | 2018-12-24 | A kind of participle package management method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811581386.4A CN109639812A (en) | 2018-12-24 | 2018-12-24 | A kind of participle package management method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109639812A true CN109639812A (en) | 2019-04-16 |
Family
ID=66076784
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811581386.4A Pending CN109639812A (en) | 2018-12-24 | 2018-12-24 | A kind of participle package management method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639812A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110706A (en) * | 2007-07-23 | 2008-01-23 | 中兴通讯股份有限公司 | Configuration data synchronization method |
CN101136770A (en) * | 2006-10-13 | 2008-03-05 | 中兴通讯股份有限公司 | Automatically updating method and apparatus for telecom multi-branch network management system |
CN103701633A (en) * | 2013-12-09 | 2014-04-02 | 国家电网公司 | Setup and maintenance system of visual cluster application for distributed search SolrCloud |
CN106649800A (en) * | 2016-12-29 | 2017-05-10 | 南威软件股份有限公司 | Solr-based Chinese search method |
CN106777253A (en) * | 2016-12-27 | 2017-05-31 | 努比亚技术有限公司 | The update method and device of a kind of dictionary |
CN106844714A (en) * | 2017-02-08 | 2017-06-13 | 河海大学常州校区 | A kind of knowledge base management system |
-
2018
- 2018-12-24 CN CN201811581386.4A patent/CN109639812A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136770A (en) * | 2006-10-13 | 2008-03-05 | 中兴通讯股份有限公司 | Automatically updating method and apparatus for telecom multi-branch network management system |
CN101110706A (en) * | 2007-07-23 | 2008-01-23 | 中兴通讯股份有限公司 | Configuration data synchronization method |
CN103701633A (en) * | 2013-12-09 | 2014-04-02 | 国家电网公司 | Setup and maintenance system of visual cluster application for distributed search SolrCloud |
CN106777253A (en) * | 2016-12-27 | 2017-05-31 | 努比亚技术有限公司 | The update method and device of a kind of dictionary |
CN106649800A (en) * | 2016-12-29 | 2017-05-10 | 南威软件股份有限公司 | Solr-based Chinese search method |
CN106844714A (en) * | 2017-02-08 | 2017-06-13 | 河海大学常州校区 | A kind of knowledge base management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11645183B1 (en) | User interface for correlation of virtual machine information and storage information | |
JP6629697B2 (en) | Method and apparatus for extracting a virtual machine image file | |
US11032140B2 (en) | Using a template to update a stack of resources | |
JP6463393B2 (en) | Tenant data recovery across tenant migration | |
US8799709B2 (en) | Snapshot management method, snapshot management apparatus, and computer-readable, non-transitory medium | |
CN104077131B (en) | A kind of deployment of components system and method | |
JP2004227359A (en) | Operation management method for storage system based on policy | |
KR101373461B1 (en) | Terminal and method for using cloud sevices | |
CN107741852B (en) | Service deployment method based on cluster software | |
CN107632937B (en) | Method and device for testing virtual machine cluster and readable storage medium | |
US20140013238A1 (en) | File transfer method and device | |
CN108563440A (en) | The automatic adding method of List Controller code, device and readable storage medium storing program for executing | |
CN108280174A (en) | Front end file construction method and server, page access method and terminal | |
CN106713460B (en) | Version control method and system for flash application | |
US9628331B2 (en) | Rerouting services using routing policies in a multiple resource node system | |
US20180219752A1 (en) | Graph search in structured query language style query | |
CN111770153A (en) | Object downloading method and device, electronic equipment and storage medium | |
CN109639812A (en) | A kind of participle package management method, apparatus and system | |
CN113641640B (en) | Data processing method, device, equipment and medium for stream type computing system | |
EP3240232A1 (en) | Cloud-configuration storage system, cloud-configuration storage method, and cloud-configuration storage program | |
CN106713025B (en) | A kind of network disaster tolerance method for synchronizing information | |
US20200364065A1 (en) | User interface optimization for delayed data | |
CN103902663A (en) | File synchronization method and device | |
CN109101253B (en) | Management method and device for host in cloud computing system | |
CN109597537B (en) | File synchronization method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |
|
RJ01 | Rejection of invention patent application after publication |