CN106202490A - A kind of SolrCloud configuration file amending method, Apparatus and system - Google Patents

A kind of SolrCloud configuration file amending method, Apparatus and system Download PDF

Info

Publication number
CN106202490A
CN106202490A CN201610570409.6A CN201610570409A CN106202490A CN 106202490 A CN106202490 A CN 106202490A CN 201610570409 A CN201610570409 A CN 201610570409A CN 106202490 A CN106202490 A CN 106202490A
Authority
CN
China
Prior art keywords
configuration file
node
solr
solrcloud
filiation
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
Application number
CN201610570409.6A
Other languages
Chinese (zh)
Inventor
王阳
赵山
高传集
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610570409.6A priority Critical patent/CN106202490A/en
Publication of CN106202490A publication Critical patent/CN106202490A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • G06F16/322Trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of SolrCloud configuration file amending method, Apparatus and system, be applied to service end, method includes: build SolrCloud so that it is include at least one Zookeeper node and multiple Solr node;Each Zookeeper node at least one Solr node corresponding;In SolrCloud, read the configuration file that in Zookeeper node, Solr node is corresponding one by one;Determine each configuration file filiation;This filiation is sent to client, makes client according to this filiation, configuration file is modified.Being applied to client, method includes: obtains service end and sends the filiation of configuration file;According to this filiation, generate tree and show;In showing tree, operation that configuration file is modified.The present invention can simplify the operation of the amendment to SolrCloud configuration file.

Description

A kind of SolrCloud configuration file amending method, Apparatus and system
Technical field
The present invention relates to technical field of data processing, particularly to a kind of SolrCloud configuration file amending method, device And system.
Background technology
SolrCloud is a kind of distributed full-text search system based on Solr and ZooKeeper, and wherein, Solr is one Individual quick full-text search server, it has powerful full-text search ability and the feature of dynamic cluster.ZooKeeper is The distributed application program coordination service of one open source code, it can provide configuring maintenance, domain name service, distributed synchronization, The functions such as group service.
In prior art, when SolrCloud configuration file is modified, need to provide order by ZooKeeper Go or by calling the form of API (Application Programming Interface, application programming interface), come Realize the amendment to SolrCloud configuration file.
But, the amending method operation complexity of prior art.
Summary of the invention
Present invention is primarily targeted at and provide a kind of SolrCloud configuration file amending method, Apparatus and system, with It is easy to simplify the amendment to SolrCloud configuration file operate.
First aspect, embodiments provides a kind of SolrCloud configuration file amending method, and the method includes:
Being applied to service end, described method includes:
Build SolrCloud, SolrCloud and include at least one Zookeeper node and multiple Solr node;Each Zookeeper node at least one Solr node corresponding;
In SolrCloud, read in each Zookeeper node corresponding at least one Solr node extremely one by one A few configuration file;
Determine the filiation of each configuration file at least one configuration file described;
The filiation of each configuration file is sent to client, so that described client is according to each configuration literary composition described The filiation of part, modifies to each configuration file.
Preferably,
Before described structure SolrCloud, farther include: the node generation obtaining client transmission instructs, wherein, Described node generates instruction and carries target number;Generate instruction according to described node and generate the several Solr nodes of described target;
After described structure SolrCloud, farther include: the running status of each Solr node is monitored, When monitoring the Solr node of running status exception, the Solr node abnormal to described running status processes;
And/or,
Farther include: when determining that SolrCloud includes newly-increased configuration file, generate and set several Solr joint The several Solr nodes of the setting of generation are arranged in SolrCloud by point, and by least one in SolrCloud Zookeeper node distributes to the several Solr nodes of this setting, and it is several that newly-increased configuration file stores this setting In Solr node.
Preferably, described determine the filiation of each configuration file at least one configuration file described, including:
Determine at least three attribute information;
According to the described at least three attribute information corresponding to each configuration file, determine that each configuration file is in tree Order in shape structure;
According to order in the tree determined, obtain the filiation of each configuration file.
Being applied to client, described method includes:
Obtain the filiation of each configuration file that service end sends;
According to the filiation of each configuration file described, generate the tree that each configuration file is corresponding;
Show described tree;
In the described tree shown, operation that each configuration file is modified.
Preferably,
Described amendment operation includes: increases, delete, revise, check, at least one in mobile and renaming;
After described operation that each configuration file modified, farther include: determine and be modified operation The attribute information of target configuration file, operates the attribute information determined and described amendment and is sent to service end, so that service Target configuration file in Solr node is revised by end accordingly.
Second aspect, the embodiment of the present invention additionally provides a kind of SolrCloud configuration file amendment device, including:
A kind of service end, including:
Construction unit, is used for building SolrCloud, SolrCloud and includes at least one Zookeeper node and multiple Solr node;Each Zookeeper node at least one Solr node corresponding;
Read unit, in SolrCloud, read at least one Solr in each Zookeeper node one by one At least one configuration file corresponding to node;
Determine unit, for determining the filiation of each configuration file at least one configuration file described;
Transmitting element, for the filiation of each configuration file is sent to client so that described client according to The filiation of each configuration file described, modifies to each configuration file.
Preferably,
Farther include:
First signal generating unit, the node sent for obtaining client generates instruction, and wherein, described node generates instruction and takes Band target number;Generate instruction according to described node and generate the several Solr nodes of described target;
Farther include:
Detector unit, for being monitored the running status of each Solr node, is monitoring running status exception During Solr node, the Solr node abnormal to described running status processes;
And/or,
Farther include:
Second signal generating unit, for when determining that SolrCloud includes newly-increased configuration file, generating setting several The several Solr nodes of the setting of generation are arranged in SolrCloud by Solr node, and by least in SolrCloud Individual Zookeeper node distributes to the several Solr nodes of this setting, and it is several that newly-increased configuration file stores this setting In Solr node.
And/or,
Determine unit specifically for:
Determine at least three attribute information;
According to the described at least three attribute information corresponding to each configuration file, determine that each configuration file is in tree Order in shape structure;
According to order in the tree determined, obtain the filiation of each configuration file.
A kind of client, including:
Acquiring unit, for obtaining the filiation of each configuration file that service end sends;
Signal generating unit, for the filiation according to each configuration file described, generates the tree that each configuration file is corresponding Shape structure;
Display unit, is used for showing described tree;
Amendment unit, in the described tree in displaying, operation that each configuration file is modified.
Preferably,
Described amendment operation includes: increases, delete, revise, check, at least one in mobile and renaming;
Farther include:
Determine unit, for determining the attribute information of the target configuration file being modified operation, the attribute that will determine Information and described amendment operation are sent to service end, so that the target configuration file in Solr node is carried out accordingly by service end Amendment.
The third aspect, embodiments provides a kind of SolrCloud configuration file amendment system, and this system includes:
A kind of service end described in second aspect and a kind of client described in second aspect interact the simplification of formation SolrCloud configuration file is revised the system of operation.
Embodiments providing a kind of SolrCloud configuration file amending method, Apparatus and system, service end is used for Build SolrCloud, and each Zookeeper node at least one Solr node corresponding;Read each one by one At least one configuration file corresponding at least one Solr node in Zookeeper node;And confirm in configuration file each The filiation of configuration file, then the filiation of this each configuration file is sent to client.Client is used for receiving The filiation of each configuration file, the most again by the filiation of this configuration file, generates corresponding tree-shaped of configuration file Structure, shows this tree, and in this tree shown, operation that each configuration file is modified.This Individual process makes the filiation between each configuration file be presented in user by the form of a tree visualization window In front, each configuration file can be modified operation by user the most intuitively, makes user operate the simplest Convenient, therefore simplify the amendment operation of SolrCloud configuration file.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to These accompanying drawings obtain other accompanying drawing.
Fig. 1 is a kind of SolrCloud configuration file amending method flow chart that one embodiment of the invention provides;
Fig. 2 is the another kind of SolrCloud configuration file amending method flow chart that one embodiment of the invention provides;
Fig. 3 is another SolrCloud configuration file amending method flow chart that one embodiment of the invention provides;
Fig. 4 is a kind of SolrCloud configuration file visualization window schematic diagram that one embodiment of the invention provides;
Fig. 5 is a kind of SolrCloud cluster topology schematic diagram that one embodiment of the invention provides;
Fig. 6 is a kind of service end structure chart that one embodiment of the invention provides;
Fig. 7 is the another kind of service end structure chart that one embodiment of the invention provides;
Fig. 8 is a kind of client terminal structure figure that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of SolrCloud configuration file amending method, it is applied to service End, the method may comprise steps of:
Step 101: build SolrCloud, SolrCloud and include at least one Zookeeper node and multiple Solr joint Point;Each Zookeeper node at least one Solr node corresponding;
Step 102: in SolrCloud, reads at least one Solr node institute in each Zookeeper node one by one At least one corresponding configuration file;
Step 103: determine the filiation of each configuration file at least one configuration file described;
Step 104: the filiation of each configuration file is sent to client so that described client according to described respectively The filiation of individual configuration file, modifies to each configuration file.
According to the invention described above embodiment, the most first build SolrCloud, SolrCloud and include at least one Zookeeper node and multiple Solr node, each Zookeeper node at least one Solr node corresponding, and one by one Read at least one configuration file corresponding at least one Solr node in each Zookeeper node, determine that these are joined Putting the filiation of each and every one configuration file in file, the filiation between this configuration file is sent to client, so, This logical order having filiation of configuration file, can represent that each configuration file is at whole configuration file the most intuitively In particular location, be thus easy to client and it carried out visual presentation, therefore can simplify SolrCloud configuration file Amendment operation.
In an embodiment of the invention, owing to needing to there is Solr node before SolrCloud, so being accomplished by root The several Solr nodes of target are generated according to the node instruction that client is concrete, and after building SolrCloud, in order to ensure Each Solr node is properly functioning, it is necessary to be monitored the running status of Solr node, occurs running status abnormal, in real time Go solve abnormal problem.And after building SolrCloud, need to increase new configuration file, to increase new functional areas Territory, then just can set and generate new Solr node, is used for placing new configuration file, including:
Before described structure SolrCloud, farther include: the node generation obtaining client transmission instructs, wherein, Described node generates instruction and carries target number;Generate instruction according to described node and generate the several Solr nodes of described target;
After described structure SolrCloud, farther include: the running status of each Solr node is monitored, When monitoring the Solr node of running status exception, the Solr node abnormal to described running status processes;
And/or,
Farther include: when determining that SolrCloud includes newly-increased configuration file, generate and set several Solr joint The several Solr nodes of the setting of generation are arranged in SolrCloud by point, and by least one in SolrCloud Zookeeper node distributes to the several Solr nodes of this setting, and it is several that newly-increased configuration file stores this setting In Solr node.
According to the invention described above embodiment, before building SolrCloud, first instruct according to the generation of client and generate mesh The several Solr nodes of mark, thus can guarantee that the number of the Solr node built in SolrCloud is to meet the tool of client Body requires, after building SolrCloud, increases monitoring program, so can ensure that whole in each Solr node Each Solr node in SolrCloud can run normally, can make corresponding reaction rapidly if any operation exception. And after building SolrCloud, configuration file can be increased newly, placed by the new Solr node of generation and need to increase configuration literary composition newly Part, adds the elasticity of SolrCloud, simple to operate, largely simplifies the amendment operation step of SolrCloud configuration file Suddenly.
In an embodiment of the invention, it is thus necessary to determine that at least one configuration file, the father and son of each configuration file is closed System, determines the configuration file with this logical order of filiation, it is ensured that the filiation of this configuration file sends To during client can clearly the filiation of these configuration files is represented clearly with the form of tree, including:
Determine at least three attribute information;
According to the described at least three attribute information corresponding to each configuration file, determine that each configuration file is in tree Order in shape structure;
According to order in the tree determined, obtain the filiation of each configuration file.
According to the invention described above embodiment, can determine that each configuration file is in data according at least three attribute information Order in structure, obtains the filiation of each configuration file, it is ensured that the filiation of this configuration file is sent to client User couple can be facilitated the filiation of these configuration files to be represented clearly with the form of visualization window clearly during end Configuration file carries out the operations such as edit-modify, largely simplifies the amendment operating procedure of SolrCloud configuration file.
As in figure 2 it is shown, embodiments provide a kind of SolrCloud configuration file amending method, it is applied to client End, the method may comprise steps of:
Step 201: obtain the filiation of each configuration file that service end sends;
Step 202: according to the filiation of each configuration file described, generate the tree-shaped knot that each configuration file is corresponding Structure;
Step 203: show described tree;
Step 204: in the described tree shown, operation that each configuration file is modified.
According to the invention described above embodiment, client receives the filiation of each configuration file of service end, then root Generate corresponding tree according to the filiation of this configuration file, then the visualization of this tree is shown, root This configuration file modified operation according to concrete target instruction target word.It is permissible that visualization at this tree represents window Configuration file being carried out position move, renaming, amendment such as checks at the edit operation, owing to being visual can to look for rapidly To the target configuration file needing amendment to operate, therefore simplify the amendment operation of SolrCloud configuration file.
In an embodiment of the invention, the visualization window of a filiation with configuration file is generated when client Operation can be revised accordingly according to concrete target call after Kou, but the amendment having in this operating process operates, Not only simply the content in this visualization window is operated, and need the cooperation of service end just can complete, including:
Amendment operation includes: increases, delete, revise, check, at least one in mobile and renaming;
After described operation that each configuration file modified, farther include: determine and be modified operation The attribute information of target configuration file, operates the attribute information determined and described amendment and is sent to service end, so that service Target configuration file in Solr node is revised by end accordingly.
According to the invention described above embodiment, when the content in visualization window being modified operation, due to visualization Simply represent in window is the tree of the filiation of configuration file, and therefore, some amendment is accomplished by determining and carries out The attribute information of the target configuration file of amendment operation, then operates the attribute information determined and described amendment and is sent to clothes Business end, so that the target configuration file in Solr node is revised by service end accordingly, this ensures that theres client institute The content represented is completely the same with the profile information in the Solr node in service end.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and to service end and client Interaction between end illustrates, and enters with a kind of SolrCloud configuration file amending method realizing providing the present invention Row describes in detail.
As it is shown on figure 3, embodiments provide a kind of SolrCloud configuration file amending method, the method is permissible Comprise the following steps:
Step 301: service end obtains the node generation instruction that client sends, and wherein, described node generates instruction and carries Target number.
Such as: the instruction of the client such as sent is more new data, as updated the more new data of whole nation information for hospital Instruct, and node generation target number is 34.These 34 is exactly that target number is carried in node generation instruction.
Step 302: service end generates instruction according to described node and generates the several Solr nodes of described target.
Such as: instruct more new data according to the generation provided in step 302 and generate the requirement of 34 target numbers, then 34 Solr nodes will be generated.
Step 303: service end builds SolrCloud, SolrCloud and includes at least one Zookeeper node and multiple Solr node;Each Zookeeper node at least one Solr node corresponding.
Such as: when building SolrCloud, it is desirable at least include a Zookeeper node, it is also possible to include two, Three etc..This Zookeeper node can decide its quantity in its sole discretion according to the specific requirement of user.When determining Zookeeper After the data of node, it may be determined that the quantity of the Solr node corresponding with Zookeeper node, the data of this Solr node are extremely It is one less, naturally it is also possible to be two, three etc., also it is that its quantity is decided in the specific requirement according to user in its sole discretion.
Step 304: the running status of each Solr node, after building SolrCloud, is monitored by service end, When monitoring the Solr node of running status exception, the Solr node abnormal to described running status processes;
So can monitor the real time execution situation of Solr node in real time, once Solr node running status is abnormal, then Just can make corresponding process rapidly, it is ensured that the operation of whole SolrCloud.Such as can be at Solr node installation HealthMonitor, for monitoring the ruuning situation of each Solr node, the data of configuration file in such as Solr node, Whether Solr node stopped the problems such as operation, can notify the operation journey of client when going wrong by the mode of mail or information Sequence personnel.
Step 305: in SolrCloud, service end reads at least one Solr in each Zookeeper node one by one At least one configuration file corresponding to node;
Such as: read in each Zookeeper node corresponding at least one Solr node at least the most one by one One configuration file, just has a Solr node in such as one Zookeeper node, then only need to read this Solr node In configuration file, then if a Zookeeper node just has multiple Solr node, then be accomplished by reading one by one each Configuration file in individual Solr node.
Step 306: service end determines at least three attribute information.
Such as: attribute information is at least three, the relation sequence of only three attribute informations just can determine that the position of node, Certainly attribute information can be four, five or more, as may determine that, attribute information is: " id ", " pid ", " name " belong to Property information.
Step 307: service end, according to the described at least three attribute information corresponding to each configuration file, determines each Individual configuration file order in tree;
For example, it is possible to be that " id ", " pid ", " name " can determine configuration file in Solr node by root according to attribute information Particular location, be on top or the bottom of tree, or other concrete positions.
As, in this Solr node, configuration file is all the information about all hospitals of Hebei province, then according to " id ", " pid ", " name " just can carry out location according to province, city, district, town, the such tree in village to this each configuration file and arrange Sequence.
Step 308: service end, according to order in the tree determined, obtains the filiation of each configuration file.
Such as: each configuration can be obtained according to each configuration file that step 306 draws order in tree The filiation of file, the data knot of the configuration file of all hospitals in having determined that all about Hebei province such as step 306 Order in structure, then can be obtained by province, city, district, town, the such filiation in village.
The most such as, key code can be as follows:
Step 309: the filiation of each configuration file is sent to client by service end.
Such as: such as step 307 can be obtained the province of each configuration file, city, district, town, the such father and son in village pass by service end System sends client to.
Step 310: client obtains the filiation of each configuration file that service end sends.
Client receives the filiation of each configuration file that service end sends over, such as: client receives step The province of each configuration file, city, district, town, the filiation in village in rapid 309 examples.
Step 311: client, according to the filiation of each configuration file described, generates the tree that each configuration file is corresponding Shape structure.
Such as, client may utilize zTree to generate the tree that each configuration file is corresponding.Such as key code is such as Under:
Step 312: client shows described tree.
Such as, the tree of displaying can be just a visual window, as shown in Figure 4.File directory in Fig. 4 Structure is exactly a tree, finds out the most easily between the position of each configuration file, and each configuration file Mutual relation.Such as, option and installment file currency.xml so can demonstrate this on the position on the right side as shown in Figure 4 The content of configuration file is included inside configuration file under individual configuration file.In content is modified operation, such as renaming Operation, then click on the preservation in the lower right corner, this configuration file the most renewable after operation.
Step 313: client show described tree in, operation that each configuration file is modified.
This described amendment operation includes: increases, delete, revise, check, at least one in mobile and renaming;
Such as, client can obtain configuration file content by calling zk_get.sh, and realizes compiling by JavaScript Volume function, in each configuration file, the configuration file of the operation that needs to modify is modified operation.Such as view Hebei In province Baoding about in the configuration file of hospital about hospital department to arrange quantity inaccurate, then be accomplished by by calling Zk_get.sh obtains configuration file content, is then modified the quantity of this hospital department by JavaScript.
Such as, key code is as follows:
Step 314: client determines the attribute information of the target configuration file being modified operation, the attribute that will determine Information and described amendment operation are sent to service end, so that the target configuration file in Solr node is carried out accordingly by service end Amendment.
Such as: for the amendment amended configuration file of hospital department quantity in the example of step 315, it is necessary to by this Attribute information and the amendment operation of configuration file are sent to service end, the information pair that service end is sent to according to this client Target configuration file in Solr node is revised accordingly.Ensure the impression window information of client and joining in client Put the information in file consistent.
Step 315: after all of configuration file is revised, needs determining that SolrCloud includes newly-increased configuration file Time, service end is accomplished by generating and sets a several Solr node.
Such as, after all of configuration file has all been revised, find need to newly increase new configuration file, if desired for Baoding increases the configuration file of a newly-built hospital, then is accomplished by newly-built generation and sets a several Solr node, and such as one It is the most permissible that individual Solr node places newly-increased configuration file, then is generated as a new Solr node.
Such as, by calling backstage zk_put.sh and zk_clear.sh file, it is achieved node additions and deletions change look into, renaming etc. Function, key code is as follows:
Step 316: the several Solr nodes of the setting of generation are arranged in SolrCloud, and by SolrCloud At least one Zookeeper node distributes to the several Solr nodes of this setting.
Such as, as it is shown in figure 5, this newly-built Solr node does not give him newly-built Zookeeper node, but it is received In all Zookeeper node clusters entered in SolrCloud, at least in this Zookeeper node cluster Individual Zookeeper node distributes to this newly-built Solr node,
Step 317: newly-increased configuration file is stored in the several Solr nodes of this setting by service end.
Such as, to place newly-increased configuration file the most permissible for Solr node, then is generated as a new Solr and saves Point, after Solr node generates, is just placed on newly-increased configuration file in this newly-generated Solr node.
As shown in Figure 6, embodiments provide a kind of service end, including:
Construction unit 601, is used for building SolrCloud, SolrCloud and includes that at least one Zookeeper node is with many Individual Solr node;Each Zookeeper node at least one Solr node corresponding;
Read unit 602, in SolrCloud, read at least one in each Zookeeper node one by one At least one configuration file corresponding to Solr node;
Determine unit 603, for determining the filiation of each configuration file at least one configuration file described;
Transmitting element 604, for the filiation of each configuration file is sent to client, so that described client root According to the filiation of each configuration file described, each configuration file is modified.
In an embodiment of the invention, before described structure SolrCloud, as it is shown in fig. 7, farther include:
First signal generating unit 701, the node sent for obtaining client generates instruction, and wherein, described node generates and refers to Target number is carried in order;Generate instruction according to described node and generate the several Solr nodes of described target;
After described structure SolrCloud, farther include:
Monitoring means 702, for the running status of each Solr node is monitored, abnormal monitoring running status Solr node time, the Solr node abnormal to described running status processes;
And/or,
Farther include:
Second signal generating unit 703, for when determining that SolrCloud includes newly-increased configuration file, generating and set number The setting of generation several Solr nodes are arranged in SolrCloud by individual Solr node, and by SolrCloud at least One Zookeeper node distributes to the several Solr nodes of this setting, and newly-increased configuration file stores this setting number In individual Solr node.
In an embodiment of the invention, determine unit 603, specifically for:
Determine at least three attribute information;
According to the described at least three attribute information corresponding to each configuration file, determine that each configuration file is in tree Order in shape structure;
According to order in the tree determined, obtain the filiation of each configuration file.
A kind of client that the embodiment of the present invention provides, as shown in Figure 8, including:
Acquiring unit 801, for obtaining the filiation of each configuration file that service end sends;
Signal generating unit 802, for the filiation according to each configuration file described, generates each configuration file corresponding Tree;
Display unit 803, is used for showing described tree;
Amendment unit 804, in the described tree in displaying, operation that each configuration file is modified.
In an embodiment of the invention, revise unit 804, be used for carrying out described amendment operation and include: increase, delete, Revise, check, at least one in mobile and renaming;
Farther include:
Determine unit 805, for determining the attribute information of the target configuration file being modified operation, the genus that will determine Property information and described amendment operation be sent to service end, so that service end carries out phase to the target configuration file in Solr node The amendment answered.
In an embodiment of the invention, by a kind of service end and a kind of client, interact and define one SolrCloud configuration file amendment system, service end builds SolrCloud, and each Zookeeper node of reading one by one In at least one configuration file corresponding at least one Solr node, it is then determined that the filiation of these configuration files, clothes The filiation of this each configuration file is being sent to client by business end, and client is closed according to the father and son of this configuration file System, forms tree, and the form of visualization window shows, and the personnel of operating with can be according to this visualization window Each configuration file and each Solr node modified, increase, delete, the operation such as renaming, these are being repaiied by client The attribute information determined such as changing and described amendment operation is sent to service end, service end is updated operation to configuration file, Service end and this interactive system of client, can simplify the amendment operation of SolrCloud configuration file.
To sum up, each embodiment of the present invention at least can realize following beneficial effect:
1, in embodiments of the present invention, the most first build SolrCloud, SolrCloud and include at least one Zookeeper Node and multiple Solr node, each Zookeeper node at least one Solr node corresponding, and read each one by one At least one configuration file corresponding at least one Solr node in Zookeeper node, determines in these configuration files The filiation of individual configuration file, the filiation between this configuration file is sent to client, so, configuration file this Plant the logical order having filiation, each configuration file concrete position in whole configuration file can be represented the most intuitively Put, be thus easy to client and it is carried out visual presentation, therefore can simplify the amendment behaviour of SolrCloud configuration file Make.
2, in embodiments of the present invention, before building SolrCloud, first instruct according to the generation of client and generate target Individual several Solr node, thus can guarantee that the number of the Solr node built in SolrCloud is meet client concrete Require, after building SolrCloud, each Solr node increases monitoring program, so can ensure that whole Each Solr node in SolrCloud can run normally, can make corresponding reaction rapidly if any operation exception. And after building SolrCloud, configuration file can be increased newly, placed by the new Solr node of generation and need to increase configuration literary composition newly Part, adds the elasticity of SolrCloud, simple to operate, largely simplifies the amendment operation step of SolrCloud configuration file Suddenly.
3, in embodiments of the present invention, can determine that each configuration file is tied in data according at least three attribute information Order in structure, the filiation to each configuration file part, it is ensured that the filiation of this configuration file is sent to client User couple can be facilitated the filiation of these configuration files to be represented clearly with the form of visualization window clearly during end Configuration file carries out the operations such as edit-modify, largely simplifies the amendment operating procedure of SolrCloud configuration file.
4, in embodiments of the present invention, when the content in visualization window being modified operation, due to visualization window Simply represent in Kou is the tree of the filiation of configuration file, and therefore, some amendment is accomplished by determining is repaiied Change the attribute information of the target configuration file of operation, then the attribute information determined and described amendment are operated the service of being sent to End, so that the target configuration file in Solr node is revised by service end accordingly, this ensures that theres the exhibition of service end institute Existing content is completely the same with the profile information in the Solr node in service end.
The contents such as the information between each unit in said apparatus is mutual, execution process, owing to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that in this article, the relational terms of such as first and second etc is used merely to an entity Or operation separates with another entity or operating space, and not necessarily require or imply existence between these entities or operation The relation of any this reality or order.And, term " includes ", " comprising " or its any other variant are intended to non- Comprising of exclusiveness, so that include that the process of a series of key element, method, article or equipment not only include those key elements, But also include other key elements being not expressly set out, or also include being consolidated by this process, method, article or equipment Some key elements.In the case of there is no more restriction, statement the key element " including a 〃 " and limiting, do not arrange Except there is also other same factor in including the process of described key element, method, article or equipment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in the storage medium of embodied on computer readable, this program Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or light In the various medium that can store program code such as dish.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate the skill of the present invention Art scheme, is not intended to limit protection scope of the present invention.All made within the spirit and principles in the present invention any amendment, Equivalent, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. a SolrCloud configuration file amending method, it is characterised in that be applied to service end, described method includes:
Build SolrCloud, SolrCloud and include at least one Zookeeper node and multiple Solr node;Each Zookeeper node at least one Solr node corresponding;
In SolrCloud, read in each Zookeeper node at least one at least one corresponding to Solr node one by one Individual configuration file;
Determine the filiation of each configuration file at least one configuration file described;
The filiation of each configuration file is sent to client, so that described client is according to each configuration file described Filiation, modifies to each configuration file.
Method the most according to claim 1, it is characterised in that
Before described structure SolrCloud, farther include: obtain the node generation instruction that client sends, wherein, described Node generates instruction and carries target number;Generate instruction according to described node and generate the several Solr nodes of described target;
After described structure SolrCloud, farther include: the running status of each Solr node is monitored, at prison When measuring the Solr node of running status exception, the Solr node abnormal to described running status processes;
And/or,
Farther include: when determining that SolrCloud includes newly-increased configuration file, generate and set a several Solr node, will The several Solr nodes of setting generated are arranged in SolrCloud, and by least one Zookeeper in SolrCloud Node distributes to the several Solr nodes of this setting, and is stored by newly-increased configuration file in the several Solr nodes of this setting.
Method the most according to claim 1, it is characterised in that described determine that at least one configuration file described, each is joined Put the filiation of file, including:
Determine at least three attribute information;
According to the described at least three attribute information corresponding to each configuration file, determine that each configuration file is at tree-shaped knot Order in structure;
According to order in the tree determined, obtain the filiation of each configuration file.
4. a SolrCloud configuration file amending method, it is characterised in that be applied to client, described method includes:
Obtain the filiation of each configuration file that service end sends;
According to the filiation of each configuration file described, generate the tree that each configuration file is corresponding;
Show described tree;
In the described tree shown, operation that each configuration file is modified.
Method the most according to claim 4, it is characterised in that
Described amendment operation includes: increases, delete, revise, check, at least one in mobile and renaming;
After described operation that each configuration file modified, farther include: determine the target being modified operation The attribute information of configuration file, operates the attribute information determined and described amendment and is sent to service end, so that service end pair Target configuration file in Solr node is revised accordingly.
6. a service end, it is characterised in that including:
Construction unit, is used for building SolrCloud, SolrCloud and includes at least one Zookeeper node and multiple Solr joint Point;Each Zookeeper node at least one Solr node corresponding;
Read unit, in SolrCloud, read at least one Solr node in each Zookeeper node one by one At least one corresponding configuration file;
Determine unit, for determining the filiation of each configuration file at least one configuration file described;
Transmitting element, for being sent to client by the filiation of each configuration file, so that described client is according to described The filiation of each configuration file, modifies to each configuration file.
Service end the most according to claim 6, it is characterised in that
Farther include:
First signal generating unit, the node sent for obtaining client generates instruction, and wherein, described node generates instruction and carries mesh Mark number;Generate instruction according to described node and generate the several Solr nodes of described target;
Farther include:
Detector unit, for being monitored the running status of each Solr node, is monitoring the Solr that running status is abnormal During node, the Solr node abnormal to described running status processes;
And/or,
Farther include:
Second signal generating unit, for when determining that SolrCloud includes newly-increased configuration file, generates and sets several Solr joint The several Solr nodes of the setting of generation are arranged in SolrCloud by point, and by least one in SolrCloud Zookeeper node distributes to the several Solr nodes of this setting, and it is several that newly-increased configuration file stores this setting In Solr node;
And/or,
Described determine unit specifically for:
Determine at least three attribute information;
According to the described at least three attribute information corresponding to each configuration file, determine that each configuration file is at tree-shaped knot Order in structure;
According to order in the tree determined, obtain the filiation of each configuration file.
8. a client, it is characterised in that including:
Acquiring unit, for obtaining the filiation of each configuration file that service end sends;
Signal generating unit, for the filiation according to each configuration file described, generates the tree-shaped knot that each configuration file is corresponding Structure;
Display unit, is used for showing described tree;
Amendment unit, in the described tree in displaying, operation that each configuration file is modified.
Client the most according to claim 8, it is characterised in that
Described amendment operation includes: increases, delete, revise, check, at least one in mobile and renaming;
Farther include:
Determine unit, for determining the attribute information of the target configuration file being modified operation, the attribute information that will determine And described amendment operation is sent to service end, so that the target configuration file in Solr node is repaiied by service end accordingly Change.
10. a SolrCloud configuration file amendment system, it is characterised in that including: the clothes described in the claims 6 or 7 Business end, and, the client described in the claims 8 or 9.
CN201610570409.6A 2016-07-19 2016-07-19 A kind of SolrCloud configuration file amending method, Apparatus and system Pending CN106202490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610570409.6A CN106202490A (en) 2016-07-19 2016-07-19 A kind of SolrCloud configuration file amending method, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610570409.6A CN106202490A (en) 2016-07-19 2016-07-19 A kind of SolrCloud configuration file amending method, Apparatus and system

Publications (1)

Publication Number Publication Date
CN106202490A true CN106202490A (en) 2016-12-07

Family

ID=57493498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610570409.6A Pending CN106202490A (en) 2016-07-19 2016-07-19 A kind of SolrCloud configuration file amending method, Apparatus and system

Country Status (1)

Country Link
CN (1) CN106202490A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544829A (en) * 2017-09-11 2018-01-05 郑州云海信息技术有限公司 A kind of automatic deployment method of ElasticSearch clusters
CN107643960A (en) * 2017-09-18 2018-01-30 浪潮软件集团有限公司 Solr full-text retrieval dynamic configuration system and method
CN108776569A (en) * 2018-04-20 2018-11-09 贵阳朗玛信息技术股份有限公司 A kind of amending method and device controlling compiling option file
CN109408699A (en) * 2018-09-14 2019-03-01 厦门天锐科技股份有限公司 A kind of method that synchronization caching zTree tree realizes tree node quick-searching
CN110109892A (en) * 2018-01-25 2019-08-09 杭州海康威视数字技术股份有限公司 A kind of data migration method, device and electronic equipment
CN110955604A (en) * 2019-12-04 2020-04-03 米哈游科技(上海)有限公司 Information display method, device, server and storage medium
CN111813682A (en) * 2020-07-14 2020-10-23 北京达佳互联信息技术有限公司 File modification method and device, server, intelligent terminal and storage medium
CN112035162A (en) * 2020-09-02 2020-12-04 中国银行股份有限公司 Configuration file batch modification method and device
CN116955209A (en) * 2023-09-18 2023-10-27 北京中电华大电子设计有限责任公司 WebAsssembly virtual machine testing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710554A (en) * 2012-06-25 2012-10-03 深圳中兴网信科技有限公司 Distributed message system and service status detection method thereof
CN103701633A (en) * 2013-12-09 2014-04-02 国家电网公司 Setup and maintenance system of visual cluster application for distributed search SolrCloud
CN104102710A (en) * 2014-07-15 2014-10-15 浪潮(北京)电子信息产业有限公司 Massive data query method
US20150081243A1 (en) * 2013-03-20 2015-03-19 Nec Laboratories America, Inc. Setsudo: Pertubation-based Testing Framework for Scalable Distributed Systems
CN104462236A (en) * 2014-11-14 2015-03-25 浪潮(北京)电子信息产业有限公司 Accompanying vehicle recognition method and device based on big data
CN105407114A (en) * 2014-08-29 2016-03-16 北京信威通信技术股份有限公司 Client and method for processing Zookeeper cluster data
CN105512267A (en) * 2015-12-03 2016-04-20 北京锐安科技有限公司 Method and device for adjusting configuration file
CN105656653A (en) * 2014-11-14 2016-06-08 华为技术有限公司 Network access method of newly added node in distributed coordination system, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710554A (en) * 2012-06-25 2012-10-03 深圳中兴网信科技有限公司 Distributed message system and service status detection method thereof
US20150081243A1 (en) * 2013-03-20 2015-03-19 Nec Laboratories America, Inc. Setsudo: Pertubation-based Testing Framework for Scalable Distributed Systems
CN103701633A (en) * 2013-12-09 2014-04-02 国家电网公司 Setup and maintenance system of visual cluster application for distributed search SolrCloud
CN104102710A (en) * 2014-07-15 2014-10-15 浪潮(北京)电子信息产业有限公司 Massive data query method
CN105407114A (en) * 2014-08-29 2016-03-16 北京信威通信技术股份有限公司 Client and method for processing Zookeeper cluster data
CN104462236A (en) * 2014-11-14 2015-03-25 浪潮(北京)电子信息产业有限公司 Accompanying vehicle recognition method and device based on big data
CN105656653A (en) * 2014-11-14 2016-06-08 华为技术有限公司 Network access method of newly added node in distributed coordination system, device and system
CN105512267A (en) * 2015-12-03 2016-04-20 北京锐安科技有限公司 Method and device for adjusting configuration file

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544829A (en) * 2017-09-11 2018-01-05 郑州云海信息技术有限公司 A kind of automatic deployment method of ElasticSearch clusters
CN107643960A (en) * 2017-09-18 2018-01-30 浪潮软件集团有限公司 Solr full-text retrieval dynamic configuration system and method
CN110109892A (en) * 2018-01-25 2019-08-09 杭州海康威视数字技术股份有限公司 A kind of data migration method, device and electronic equipment
CN110109892B (en) * 2018-01-25 2021-09-10 杭州海康威视数字技术股份有限公司 Data migration method and device and electronic equipment
CN108776569A (en) * 2018-04-20 2018-11-09 贵阳朗玛信息技术股份有限公司 A kind of amending method and device controlling compiling option file
CN109408699A (en) * 2018-09-14 2019-03-01 厦门天锐科技股份有限公司 A kind of method that synchronization caching zTree tree realizes tree node quick-searching
CN109408699B (en) * 2018-09-14 2022-02-08 厦门天锐科技股份有限公司 Method for realizing rapid retrieval of tree nodes by synchronous cache zTree
CN110955604A (en) * 2019-12-04 2020-04-03 米哈游科技(上海)有限公司 Information display method, device, server and storage medium
CN111813682A (en) * 2020-07-14 2020-10-23 北京达佳互联信息技术有限公司 File modification method and device, server, intelligent terminal and storage medium
CN112035162A (en) * 2020-09-02 2020-12-04 中国银行股份有限公司 Configuration file batch modification method and device
CN116955209A (en) * 2023-09-18 2023-10-27 北京中电华大电子设计有限责任公司 WebAsssembly virtual machine testing method and device
CN116955209B (en) * 2023-09-18 2024-02-06 北京中电华大电子设计有限责任公司 WebAsssembly virtual machine testing method and device

Similar Documents

Publication Publication Date Title
CN106202490A (en) A kind of SolrCloud configuration file amending method, Apparatus and system
CN106528129B (en) A kind of Web application interface generation system and method
US9811233B2 (en) Building applications for configuring processes
US9087296B2 (en) Navigable semantic network that processes a specification to and uses a set of declaritive statements to produce a semantic network model
ES2727621T3 (en) Provide unique data views based on changes or rules
CA2884365C (en) Graphically representing programming attributes
US20160004759A1 (en) Platform for Managing and Visualizing Data on a Computer
US10579678B2 (en) Dynamic hierarchy generation based on graph data
US20110010728A1 (en) Method and System for Service Provisioning
US20070094302A1 (en) Method and apparatus for mapping objects to multiple tables of a database
Ochs et al. A unified software framework for deriving, visualizing, and exploring abstraction networks for ontologies
US20130018848A1 (en) Determining and presenting provenance and lineage for content in a content management system
WO2016095365A1 (en) Authorization processing method and apparatus
CN109002334B (en) Operation and maintenance platform and data processing method thereof
US20210125144A1 (en) Bill of material conversion method, electronic apparatus and non-transitory computer-readable storage medium
CN110308895B (en) Project development platform and project development method performed by application project development platform
Steinbrückner et al. Understanding software evolution with software cities
CN109388791A (en) Chart Dynamic Display method, apparatus, computer equipment and storage medium
JPH0944334A (en) Method and device for displaying tree structure summary with identification icon relating to window
CN103473256A (en) Defining content retention rules using a domain-specific language
CN109033157B (en) Complex data retrieval method and system based on user-defined search condition tree
US9875288B2 (en) Recursive filter algorithms on hierarchical data models described for the use by the attribute value derivation
JP2016151908A (en) Personal information anonymization support device
US8626773B2 (en) Aligning records for visual comparison
US9053149B2 (en) Method and system to provide composite view of components

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication