CN107423345A - A kind of configuration file management method, equipment and system - Google Patents

A kind of configuration file management method, equipment and system Download PDF

Info

Publication number
CN107423345A
CN107423345A CN201710344765.0A CN201710344765A CN107423345A CN 107423345 A CN107423345 A CN 107423345A CN 201710344765 A CN201710344765 A CN 201710344765A CN 107423345 A CN107423345 A CN 107423345A
Authority
CN
China
Prior art keywords
configuration file
parsing
file management
configuration
management method
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
CN201710344765.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710344765.0A priority Critical patent/CN107423345A/en
Publication of CN107423345A publication Critical patent/CN107423345A/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/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies

Abstract

The present invention provides a kind of configuration file management method, equipment and system, and the above method comprises the following steps:Obtain the configuration file uploaded and parsed;According to analysis result, respective handling is carried out to the configuration file;By being parsed to the configuration file of upload, and according to analysis result, respective handling is carried out to the configuration file so that configuration file come into force process more efficiently, intelligence, safety.

Description

A kind of configuration file management method, equipment and system
Technical field
The invention belongs to file process field, more particularly to a kind of configuration file management method, equipment and system.
Background technology
Ambari is as the open source softwares such as Hadoop, and an item in Apache Software Foundation Mesh, and be top project.For Ambari effect, Hadoop cluster is exactly created, manages, monitoring, but here Hadoop be broad sense, refer to the whole ecospheres of Hadoop (such as Hive, Hbase, Sqoop, Zookeeper etc.), and simultaneously It is not only to refer in particular to Hadoop.For a word, Ambari is exactly to allow Hadoop and the big data software of correlation more to hold The instrument easily used.
User is if the configuration file of oneself when in use by Ambari, if it is desired to allowing configuration file to come into force, it is necessary to one Bar is manually entered configuration, and this operation one side efficiency is low, and on the other hand wrong odds also greatly increases.
Therefore, there is an urgent need to a kind of efficient, intelligent, safe configuration file take-effective method.
The content of the invention
The present invention provides a kind of configuration file management method, equipment and system, to solve the above problems.
The embodiment of the present invention provides a kind of configuration file management method.The above method comprises the following steps:
Obtain the configuration file uploaded and parsed;
According to analysis result, respective handling is carried out to the configuration file.
The embodiment of the present invention also provides a kind of configuration file management equipment, including acquisition module, parsing module, processing mould Block, wherein, the acquisition module is connected by the parsing module with the processing module;
The acquisition module, for obtaining configuration file;
The parsing module, for being parsed to the configuration file, obtain analysis result;
The processing module, for according to analysis result, respective handling to be carried out to the configuration file.
The embodiment of the present invention also provides a kind of profile management systems, including above-mentioned configuration file management equipment.
The present invention provides a kind of configuration file management method, equipment and system, by being solved to the configuration file of upload Analysis, and according to analysis result, respective handling is carried out to the configuration file so that configuration file come into force process more efficiently, intelligence Energy, safety.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the flow chart of the according to embodiments of the present invention 1 configuration file management method provided;
Fig. 2 show the schematic diagram of the according to embodiments of the present invention 2 configuration file management equipment provided;
Fig. 3 show the schematic diagram of according to embodiments of the present invention 3 profile management systems provided;
Fig. 4 show the detail flowchart of the according to embodiments of the present invention 4 configuration file management methods provided.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 1 show the flow chart of the according to embodiments of the present invention 1 configuration file management method provided, including following step Suddenly:
Step 101:Obtain the configuration file uploaded and parsed;
Further, Web page upload configuration file is passed through.
Further, the process for parsing configuration file is:Judge whether form is correct.
Further, if form is correct, parsing configuration, generate new file and call background script, make configuration take-effective.
Further, if parsing failure, feedback error result, wherein, the error result include error reason information, Error type information, location of mistake information.
Step 102:According to analysis result, respective handling is carried out to the configuration file.
Further, according to the error result, corresponding program is called to repair the configuration file.
Further, if repairing successfully, secondary parsing is carried out to the configuration file of reparation.
Fig. 2 show the schematic diagram of the according to embodiments of the present invention 2 configuration file management equipment provided, including acquisition module 201st, parsing module 202, processing module 203, wherein, the acquisition module 201 passes through the parsing module 202 and the processing Module 203 is connected;
The acquisition module 201, for obtaining configuration file;
The parsing module 202, for being parsed to the configuration file, obtain analysis result;
The processing module 203, for according to analysis result, respective handling to be carried out to the configuration file.
Further, the parsing module is additionally operable to judge whether configuration file format is correct;
The processing module, if correct for form, background script is called, the configuration file is come into force.
Further, the parsing module, if being additionally operable to parsing failure, feedback error result;Be additionally operable to repair into The configuration file of work(carries out secondary parsing;
The processing module, it is additionally operable to according to the error result, calls corresponding program to carry out the configuration file Repair.
Fig. 3 show the schematic diagram of according to embodiments of the present invention 3 profile management systems provided, includes above-mentioned Configuration file management equipment.
Fig. 4 show the detail flowchart of the according to embodiments of the present invention 4 configuration file management methods provided, such as Fig. 4 institutes Show, comprise the following steps:
Step 401:Upload configuration file
Further, the mode of upload configuration file includes passing through Web page upload configuration file.
Step 402:Parse configuration file
Step 403:Judge whether configuration file format is correct, if correctly, going to step 404;Otherwise, then 406 are gone to step;
Step 404:Parsing configuration, generates new file;
Step 405:Background script is called, makes configuration take-effective;
Step 406:Terminate
Pass through following scheme:The configuration file of upload is parsed, and according to analysis result, the configuration file entered Row respective handling so that configuration file come into force process more efficiently, intelligence, safety.
Pass through following scheme:If parsing failure, feedback error result, according to the error result, calls corresponding journey Configuration file is repaired described in ordered pair;If repairing successfully, secondary parsing is carried out to the configuration file of reparation, realizes configuration The quick diagnosis of information and reparation, greatly improve the efficiency that configuration file comes into force.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. configuration file management method, it is characterised in that comprise the following steps:
    Obtain the configuration file uploaded and parsed;
    According to analysis result, respective handling is carried out to the configuration file.
  2. 2. configuration file management method according to claim 1, it is characterised in that the process for parsing configuration file is:Sentence Whether disconnected form is correct.
  3. 3. configuration file management method according to claim 2, it is characterised in that if form is correct, parsing configuration is raw Into new file and background script is called, makes configuration take-effective.
  4. 4. configuration file management method according to claim 1, it is characterised in that if parsing failure, feedback error knot Fruit, wherein, the error result includes error reason information, error type information, location of mistake information.
  5. 5. configuration file management method according to claim 4, it is characterised in that according to the error result, call phase The program answered is repaired to the configuration file.
  6. 6. configuration file management method according to claim 5, it is characterised in that if repairing successfully, match somebody with somebody to reparation Put file and carry out secondary parsing.
  7. A kind of 7. configuration file management equipment, it is characterised in that including acquisition module, parsing module, processing module, wherein, institute Acquisition module is stated by the parsing module with the processing module to be connected;
    The acquisition module, for obtaining configuration file;
    The parsing module, for being parsed to the configuration file, obtain analysis result;
    The processing module, for according to analysis result, respective handling to be carried out to the configuration file.
  8. 8. configuration file management equipment according to claim 7, it is characterised in that the parsing module is additionally operable to judgement and matched somebody with somebody Whether correct put file format;
    The processing module, if correct for form, parsing configuration, generate new file and call background script, give birth to configuration Effect.
  9. 9. configuration file management equipment according to claim 7, it is characterised in that the parsing module, if being additionally operable to solution Analysis fails, then feedback error result;It is additionally operable to carry out secondary parsing to repairing successful configuration file;
    The processing module, it is additionally operable to, according to the error result, call corresponding program to repair the configuration file.
  10. 10. a kind of profile management systems, it is characterised in that including as described in any one of claim 7-9 claim Configuration file management equipment.
CN201710344765.0A 2017-05-16 2017-05-16 A kind of configuration file management method, equipment and system Pending CN107423345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710344765.0A CN107423345A (en) 2017-05-16 2017-05-16 A kind of configuration file management method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710344765.0A CN107423345A (en) 2017-05-16 2017-05-16 A kind of configuration file management method, equipment and system

Publications (1)

Publication Number Publication Date
CN107423345A true CN107423345A (en) 2017-12-01

Family

ID=60425693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710344765.0A Pending CN107423345A (en) 2017-05-16 2017-05-16 A kind of configuration file management method, equipment and system

Country Status (1)

Country Link
CN (1) CN107423345A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467520A (en) * 2010-11-10 2012-05-23 金蝶软件(中国)有限公司 Data storage method and device
US20140082053A1 (en) * 2011-03-30 2014-03-20 Lin Chen System and method for generating information file based on parallel processing
CN104135483A (en) * 2014-06-13 2014-11-05 汪志 Automatic configuration management system for network security
CN104468230A (en) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 Configuration file management method, reading method and corresponding device and system
CN104573053A (en) * 2015-01-21 2015-04-29 郑州轻工业学院 Configuration item template dynamic customizing method based on XML

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467520A (en) * 2010-11-10 2012-05-23 金蝶软件(中国)有限公司 Data storage method and device
US20140082053A1 (en) * 2011-03-30 2014-03-20 Lin Chen System and method for generating information file based on parallel processing
CN104135483A (en) * 2014-06-13 2014-11-05 汪志 Automatic configuration management system for network security
CN104468230A (en) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 Configuration file management method, reading method and corresponding device and system
CN104573053A (en) * 2015-01-21 2015-04-29 郑州轻工业学院 Configuration item template dynamic customizing method based on XML

Similar Documents

Publication Publication Date Title
CN104483842B (en) One kind regulation and control one automation main website comparison method
US20090271351A1 (en) Rules engine test harness
CN110247792A (en) One kind being based on the associated fault handling method of network alarm and device
CN107450493B (en) A kind of nuclear power plant's control system temporarily controls change online management method
WO2022142927A1 (en) Rule-based fault analysis method and apparatus, device, and storage medium
CN105095048A (en) Processing method for alarm correlation of monitoring system based on business rules
CN105140810B (en) The soft pressing plate of intelligent substation whole station, which is thrown, moves back status check system and method
CN112492567B (en) Fault analysis and solution method and device in emergency command communication
CN106919612A (en) A kind of processing method and processing device of SQL script of reaching the standard grade
CN109063090A (en) Automate operation management system
CN113313280B (en) Cloud platform inspection method, electronic equipment and nonvolatile storage medium
CN107918629A (en) The correlating method and device of a kind of alarm failure
CN109190008A (en) Automate operation management method
US20230252978A1 (en) Systems and methods of material compliance
CN104125094A (en) System and method for processing communication network faults of State Grid Corporation of China
CN110175272A (en) One kind realizing the convergent control method of work order and control device based on feature modeling
CN108959037A (en) A kind of data center's automatic detecting method and device
CN106570775A (en) Power grid fault countermeasure plan combining compilation method and device
CN110532487A (en) The generation method and device of label
CN112214602B (en) Humor-based text classification method and device, electronic equipment and storage medium
CN109815124A (en) Method and device, the interlock system of interlock defect analysis based on MBSE
CN107423345A (en) A kind of configuration file management method, equipment and system
CN110414008B (en) Relation extraction system and method based on deep learning
CN103684814A (en) Method and device for comparing data of communication system
CN115827843A (en) Data processing system for text workload recognition capable of being researched

Legal Events

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

Application publication date: 20171201

RJ01 Rejection of invention patent application after publication