CN109388625B - Method and device for processing configuration file in multi-distributed file system - Google Patents

Method and device for processing configuration file in multi-distributed file system Download PDF

Info

Publication number
CN109388625B
CN109388625B CN201811182682.7A CN201811182682A CN109388625B CN 109388625 B CN109388625 B CN 109388625B CN 201811182682 A CN201811182682 A CN 201811182682A CN 109388625 B CN109388625 B CN 109388625B
Authority
CN
China
Prior art keywords
file system
distributed file
configuration file
configuration
distributed
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.)
Active
Application number
CN201811182682.7A
Other languages
Chinese (zh)
Other versions
CN109388625A (en
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.)
Beijing Xiaomi Intelligent Technology Co Ltd
Original Assignee
Beijing Xiaomi Intelligent 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 Beijing Xiaomi Intelligent Technology Co Ltd filed Critical Beijing Xiaomi Intelligent Technology Co Ltd
Priority to CN201811182682.7A priority Critical patent/CN109388625B/en
Publication of CN109388625A publication Critical patent/CN109388625A/en
Application granted granted Critical
Publication of CN109388625B publication Critical patent/CN109388625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method and a device for processing configuration files in a multi-distributed file system, wherein the method comprises the following steps: receiving a configuration file acquisition request sent by a client, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client; acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the mapping relation table stores the identifier of the distributed file system and the configuration file of the corresponding distributed file system; and sending the configuration file of the target distributed file system to the client. The method and the device can realize that the client does not need to configure and update the configuration file of the distributed file system under the environment of the distributed file system cluster, and can obviously reduce the configuration management overhead.

Description

Method and device for processing configuration file in multi-distributed file system
Technical Field
The present disclosure relates to the field of distributed technologies, and in particular, to a method and an apparatus for processing a configuration file in a multi-distributed file system.
Background
With the continuous development of internet technology, the appearance of a distributed file system effectively solves the difficult problems of data storage and management.
The distributed file system generally comprises clients, a metadata server and a data server, and in the distributed file system, a configuration file of the distributed file system is configured in each client, wherein the configuration file comprises information such as the address and the domain name of the metadata server of the distributed file system. When a client needs to access a certain batch or a certain target file in a distributed file system, a metadata server address of the distributed file system needs to be acquired through a configuration file stored by the client, then a data server where the target file is located is acquired through the metadata server, and finally actual user data corresponding to the target file is acquired from the data server.
In the environment of a distributed file system cluster, configuration files of all distributed file systems in the cluster need to be configured at a client, and under the conditions that the cluster is frequently built or destroyed and the number of client nodes is large, the configuration files of the client need to be frequently updated according to a received update software package, and the configuration mode can cause large management overhead.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for processing a configuration file in a multi-distributed file system. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for processing a configuration file in a multi-distributed file system, including:
receiving a configuration file acquisition request sent by a client, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
and sending the configuration file of the target distributed file system to the client.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by storing the identifier of the distributed file system and the corresponding configuration file of the distributed file system in the mapping relation table, after receiving a configuration file acquisition request sent by a client, the configuration file of the target distributed file system can be acquired according to the identifier of the target distributed file system and the mapping relation table carried in the configuration file acquisition request, so that the client does not need to configure and update the configuration file of the distributed file system, and the configuration management overhead can be obviously reduced in the environment of a distributed file system cluster.
Further, the method further comprises:
receiving a configuration file sent when a distributed file system is started;
and storing the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table.
Further, the method further comprises:
sending detection information to a first distributed file system at intervals of preset time, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
and deleting the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for processing a configuration file in a multi-distributed file system, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a configuration file acquisition request sent by a client, and the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
the acquisition module is configured to acquire a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
a first sending module configured to send the configuration file of the target distributed file system to the client.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by storing the identifier of the distributed file system and the corresponding configuration file of the distributed file system in the mapping relation table, after receiving a configuration file acquisition request sent by a client, the configuration file of the target distributed file system can be acquired according to the identifier of the target distributed file system and the mapping relation table carried in the configuration file acquisition request, so that the client does not need to configure and update the configuration file of the distributed file system, and the configuration management overhead can be obviously reduced in the environment of a distributed file system cluster.
Further, the apparatus further comprises:
the second receiving module is configured to receive the configuration file sent when the distributed file system is started;
a storage module configured to store the identifier of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table.
Further, the apparatus further comprises:
the second sending module is configured to send detection information to a first distributed file system at preset time intervals, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
a deleting module configured to delete the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for processing a configuration file in a multi-distributed file system, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
receiving a configuration file acquisition request sent by a client, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
and sending the configuration file of the target distributed file system to the client.
According to a fourth aspect of embodiments of the present disclosure, there is provided a system for processing a configuration file in a multi-distributed file system, the system comprising a server and a client,
the client is configured to: sending a configuration file acquisition request to the server, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
the server is configured to: acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
the server is further configured to: and sending the configuration file of the target distributed file system to the client.
According to a fifth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored therein a computer program which, when executed by at least one processor of an apparatus for processing configuration files in a multi-distributed file system, performs the method of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is an interactive flow diagram illustrating a method of processing configuration files in a multi-distributed file system in accordance with an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a method for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment.
FIG. 3 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment.
FIG. 4 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment.
FIG. 6 is a block diagram illustrating a system for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment.
FIG. 7 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is an interactive flowchart illustrating a method for processing a configuration file in a multi-distributed file system according to an exemplary embodiment, which is illustrated in the embodiment where the method for processing a configuration file in a multi-distributed file system is applied to a server and a client. The method for processing configuration files in the multi-distributed file system can comprise the following steps.
In step S11, the client sends a configuration file obtaining request to the server, where the configuration file obtaining request carries an identifier of a target distributed file system to be accessed by the client.
Specifically, the method of this embodiment may be applied to a distributed file system cluster, where there are multiple clients, and when each client needs to access a certain target distributed file system, the client first obtains a configuration file of the target distributed file system to be accessed from a server, where the configuration file includes information such as a metadata server address and a domain name of the distributed file system, obtains the metadata server address according to the obtained configuration file, and then accesses the target distributed file system, for example, to access the target file of the target distributed file system, and may obtain a data server where the target file is located according to the metadata server corresponding to the metadata server address, and then obtains actual user data corresponding to the target file from the data server.
In step S12, the server obtains a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relationship table, where the configuration file at least includes a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relationship table.
Specifically, the server stores the configuration file of each distributed file system in the distributed file system cluster in advance in a manner of an identifier of the distributed file system and a configuration file of a corresponding distributed file system, for example, as shown in the following table one:
watch 1
Distributed file system 1 Configuration document 1
Distributed file system 2 Configuration file 2
…… ……
Distributed file system n Configuration file n
In this embodiment, further, the method of this embodiment may further include:
and the server receives the configuration file sent when the distributed file system is started.
And the server stores the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table.
The above-described process is a process in which the server stores the configuration file of each distributed file system in advance. It will be appreciated that when a distributed file system is added to the distributed file system cluster, the server stores the configuration file of the newly constructed distributed file system.
In this embodiment, further, the method of this embodiment may further include:
and at preset intervals, the server sends detection information to a first distributed file system, wherein the first distributed file system is any one distributed file system stored in the mapping relation table.
Specifically, when a distributed file system cluster has a situation that a certain distributed file system is destroyed, the server periodically sends detection information to the distributed file system stored in the mapping relation table to detect whether the distributed file system still exists, and if the distributed file system does not exist, the following steps are executed:
and when the detection feedback information sent by the first distributed file system is not received, the server deletes the identifier of the first distributed file system and the configuration file of the first distributed file system, which are stored in the mapping relation table.
Through the operation, when a certain distributed file system in the distributed file system cluster is destroyed, the server deletes the identifier of the destroyed distributed file system and the corresponding configuration file, so that the stored configuration file is updated, and the updated cluster information is ensured to be obtained.
In step S13, the server sends the configuration file of the target distributed file system to the client.
Optionally, the configuration file obtaining request is sent by the client to the server periodically, after the client receives the configuration file of the target distributed file system sent by the server for the first time, the configuration file can be saved so as to be accessed again, the configuration file of the distributed file system is obtained by the client periodically, the client does not need to make any additional configuration, and the latest configuration file can be obtained from the server.
In summary, in the method for processing a configuration file in a multi-distributed file system provided in this embodiment, the server stores the identifier of the distributed file system and the corresponding configuration file of the distributed file system in the mapping relationship table, and after receiving the configuration file acquisition request sent by the client, the server can acquire the configuration file of the target distributed file system according to the identifier of the target distributed file system and the mapping relationship table carried in the configuration file acquisition request, so that the client does not need to configure and update the configuration file of the distributed file system, and the configuration management overhead can be significantly reduced in the environment of a distributed file system cluster.
Fig. 2 is a flowchart illustrating a method for processing a configuration file in a multi-distributed file system according to an exemplary embodiment, which is illustrated in the embodiment where the method for processing a configuration file in a multi-distributed file system is applied to a server and a client. The method for processing configuration files in the multi-distributed file system can comprise the following steps.
In step S21, the server receives a configuration file sent at startup of the distributed file system, where the configuration file includes at least a metadata server address.
Specifically, when a distributed file system is newly added to the distributed file system cluster, the server stores the configuration file of the newly constructed distributed file system.
In step S22, the server stores the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping table.
In step S23, the client sends a configuration file obtaining request to the server, where the configuration file obtaining request carries an identifier of a target distributed file system to be accessed by the client.
Optionally, the client may send the configuration file acquisition request to the server periodically, and the period may be preset, for example, the period may be set according to an update condition of the distributed file system cluster, so that when the distributed file system cluster changes or a configuration file of any distributed file system in the distributed file system cluster changes, the latest configuration file may be acquired.
In step S24, the server obtains the configuration file of the target distributed file system according to the identifier of the target distributed file system and the mapping relationship table, where the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relationship table.
In step S25, the server sends the configuration file of the target distributed file system to the client.
In step S26, the client stores the configuration file of the target distributed file system.
And the client stores the configuration file of the target distributed file system so as to access the target distributed file system again and can directly access the target distributed file system.
In step S27, at preset intervals, the server sends probe information to the first distributed file system, where the first distributed file system is any one of the distributed file systems stored in the mapping relationship table.
In step S28, when the probe feedback information sent by the first distributed file system is not received, the server deletes the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relationship table.
It should be noted that, step S27 and step S28 may be executed at any time after S21, and through the operations in step S27 and step S28, when a certain distributed file system in the distributed file system cluster is destroyed, the server deletes the identifier of the destroyed distributed file system and the corresponding configuration file, so as to update the stored configuration file, and ensure that the obtained cluster information is updated.
In summary, in the method for processing a configuration file in a multi-distributed file system provided in this embodiment, the server stores the identifier of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relationship table, and after receiving the configuration file acquisition request sent by the client, the server can acquire the configuration file of the target distributed file system according to the identifier of the target distributed file system and the mapping relationship table carried in the configuration file acquisition request, so that when the configuration file of any one distributed file system in the distributed file system cluster is frequently constructed or destroyed or changed, the client does not need to configure and update the configuration file of the distributed file system, and configuration management overhead can be significantly reduced.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
FIG. 3 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment. The device for processing configuration files in the multi-distributed file system can be implemented by software, hardware or a combination of the two to become a part or all of the server. Referring to fig. 3, the apparatus includes:
the first receiving module 11 is configured to receive a configuration file acquisition request sent by a client, where the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client.
The obtaining module 12 is configured to obtain a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, where the configuration file at least includes a metadata server address, and the identifier of the distributed file system and a configuration file of a corresponding distributed file system are stored in the mapping relation table.
The first sending module 13 is configured to send the configuration file of the target distributed file system to the client.
In summary, in the apparatus provided in this embodiment, the server stores the identifier of the distributed file system and the corresponding configuration file of the distributed file system in the mapping relationship table, and after receiving the configuration file acquisition request sent by the client, the server can acquire the configuration file of the target distributed file system according to the identifier of the target distributed file system and the mapping relationship table carried in the configuration file acquisition request, so that the client does not need to configure and update the configuration file of the distributed file system, and the configuration management overhead can be significantly reduced in the environment of a distributed file system cluster.
FIG. 4 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment. As shown in fig. 4, the apparatus of this embodiment may further include, in addition to the apparatus shown in fig. 3: a second receiving module 14 and a storage module 15.
The second receiving module 14 is configured to receive the configuration file sent at startup of the distributed file system.
The storage module 15 is configured to store the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table.
FIG. 5 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment. As shown in fig. 5, the apparatus of this embodiment may further include, in addition to the apparatus shown in fig. 3: a second sending module 16 and a deleting module 17.
The second sending module 16 is configured to send, at preset intervals, probe information to a first distributed file system, where the first distributed file system is any one of the distributed file systems stored in the mapping relationship table;
the deleting module 17 is configured to delete the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
In the above embodiment, optionally, the address of the server is an address known by the client.
FIG. 6 is a block diagram illustrating a system for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment. As shown in fig. 6, the system of this embodiment includes a server 21 and a plurality of clients 22, and in this embodiment, the client 22 is configured to: and sending a configuration file acquisition request to the server 21, where the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client 22.
The server 21 is configured to: and acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table.
The server 21 is further configured to: sending the configuration file of the target distributed file system to the client 22.
Further, the server 21 is further configured to: receiving a configuration file sent when a distributed file system is started;
and storing the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table.
Further, the server 21 is further configured to:
sending detection information to a first distributed file system at intervals of preset time, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
and deleting the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
Further, the configuration file obtaining request is periodically sent to the server by the client 22.
Further, the client 22 is also configured to: and after receiving the configuration file of the target distributed file system sent by the server, saving the configuration file.
In summary, in the system provided in this embodiment, the server stores the identifier of the distributed file system and the corresponding configuration file of the distributed file system in the mapping relationship table, and after receiving the configuration file acquisition request sent by the client, the server can acquire the configuration file of the target distributed file system according to the identifier of the target distributed file system and the mapping relationship table carried in the configuration file acquisition request, so that the client does not need to configure and update the configuration file of the distributed file system, and the configuration management overhead can be significantly reduced in the environment of a distributed file system cluster.
FIG. 7 is a block diagram illustrating an apparatus for processing configuration files in a multiple distributed file system in accordance with an exemplary embodiment. For example, the apparatus 800 for processing configuration files in a multi-distributed file system may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, an apparatus 800 for processing a configuration file in a multi-distributed file system may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls the overall operation of the apparatus 800 for processing configuration files in a multi-distributed file system, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 for processing a configuration file in a multi-distributed file system to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (5)

1. A method for processing configuration files in a multi-distributed file system, the method comprising:
receiving a configuration file acquisition request sent by a client, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
sending the configuration file of the target distributed file system to the client;
the method further comprises the following steps:
receiving a configuration file sent when a distributed file system is started;
storing the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table;
sending detection information to a first distributed file system at intervals of preset time, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
and deleting the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
2. An apparatus for processing a configuration file in a multi-distributed file system, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a configuration file acquisition request sent by a client, and the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
the acquisition module is configured to acquire a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
a first sending module configured to send a configuration file of the target distributed file system to the client;
the device further comprises:
the second receiving module is configured to receive the configuration file sent when the distributed file system is started;
a storage module configured to store the identifier of the distributed file system and a configuration file of the corresponding distributed file system in the mapping relation table;
the second sending module is configured to send detection information to a first distributed file system at preset time intervals, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
a deleting module configured to delete the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
3. An apparatus for processing a configuration file in a multi-distributed file system, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
receiving a configuration file acquisition request sent by a client, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
sending the configuration file of the target distributed file system to the client;
receiving a configuration file sent when a distributed file system is started;
storing the identification of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table;
sending detection information to a first distributed file system at intervals of preset time, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
and deleting the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
4. A system for processing configuration files in a multi-distributed file system, the system comprising a server and a client,
the client is configured to: sending a configuration file acquisition request to the server, wherein the configuration file acquisition request carries an identifier of a target distributed file system to be accessed by the client;
the server is configured to: acquiring a configuration file of the target distributed file system according to the identifier of the target distributed file system and a pre-stored mapping relation table, wherein the configuration file at least comprises a metadata server address, and the identifier of the distributed file system and the configuration file of the corresponding distributed file system are stored in the mapping relation table;
the server is further configured to: sending the configuration file of the target distributed file system to the client;
the server is further configured to: receiving a configuration file sent when a distributed file system is started, and storing an identifier of the distributed file system and the configuration file of the corresponding distributed file system in the mapping relation table;
the server is further configured to: sending detection information to a first distributed file system at intervals of preset time, wherein the first distributed file system is any one distributed file system stored in the mapping relation table;
and deleting the identifier of the first distributed file system and the configuration file of the first distributed file system stored in the mapping relation table when the detection feedback information sent by the first distributed file system is not received.
5. A readable storage medium, in which a computer program is stored, which, when executed by at least one processor of an apparatus for processing a configuration file in a multi-distributed file system, causes the apparatus for processing a configuration file in the multi-distributed file system to perform the method of claim 1.
CN201811182682.7A 2018-10-11 2018-10-11 Method and device for processing configuration file in multi-distributed file system Active CN109388625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811182682.7A CN109388625B (en) 2018-10-11 2018-10-11 Method and device for processing configuration file in multi-distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811182682.7A CN109388625B (en) 2018-10-11 2018-10-11 Method and device for processing configuration file in multi-distributed file system

Publications (2)

Publication Number Publication Date
CN109388625A CN109388625A (en) 2019-02-26
CN109388625B true CN109388625B (en) 2021-03-30

Family

ID=65427121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811182682.7A Active CN109388625B (en) 2018-10-11 2018-10-11 Method and device for processing configuration file in multi-distributed file system

Country Status (1)

Country Link
CN (1) CN109388625B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334063B (en) * 2019-07-15 2024-05-14 深圳前海微众银行股份有限公司 File system operation method, device, equipment and computer readable storage medium
CN112579554A (en) * 2019-09-29 2021-03-30 北京金山云网络技术有限公司 Batch comparison method and device for server configuration files and electronic equipment
CN110928598B (en) * 2019-11-11 2024-01-30 南方电网财务有限公司 System configuration method, device, computer equipment and storage medium
CN111125226B (en) * 2019-12-24 2024-01-30 中国建设银行股份有限公司 Configuration data acquisition method and device
CN112632542B (en) * 2020-12-29 2022-07-05 五八有限公司 Application program detection file dynamic adjustment method and device, electronic equipment and medium
CN114780616B (en) * 2022-04-28 2024-05-24 苏州浪潮智能科技有限公司 Information summarizing and information acquiring method, electronic equipment and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668028B (en) * 2008-09-03 2013-03-27 浙江大学 Extendable system structure-based distributed system and application method thereof
CN102681899B (en) * 2011-03-14 2015-06-10 金剑 Virtual computing resource dynamic management system of cloud computing service platform
US9697566B2 (en) * 2013-03-15 2017-07-04 Ten-X, Llc System and mehtod for providing information about assets during a live auction
CN107967159B (en) * 2017-11-22 2021-08-24 腾讯科技(深圳)有限公司 Method for configuring file application and server

Also Published As

Publication number Publication date
CN109388625A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN109274510B (en) Message processing method, device, client, server and storage medium
CN112003893B (en) Resource downloading method and device
CN104462296B (en) File management method and device and terminal
CN108804244B (en) Data transmission method, device and storage medium
CN107396149B (en) Method and device for playing advertisement
CN107395624B (en) Information processing method and device
CN106708967B (en) Page display method and device
CN106506808B (en) Method and device for prompting communication message
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN107241439B (en) Message pushing method and device for H5 page
CN106658412B (en) Positioning method and device
CN107885464B (en) Data storage method, device and computer readable storage medium
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN107483605B (en) File downloading method and device and storage medium
CN107463419B (en) Application restarting method and device and computer readable storage medium
CN112769677B (en) Data synchronization method, apparatus, electronic device, storage medium, and program product
CN107257384B (en) Service state monitoring method and device
CN110457084B (en) Loading method and device
CN109246322B (en) Information processing method and system
CN108509641B (en) File backup method, device, server and system
CN107734072B (en) Processing method and device for push information
CN107241432B (en) Message receiving method and device, electronic equipment and computer storage medium
CN112102009A (en) Advertisement display method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant