In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to deploy moosefs2.0", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to deploy moosefs2.0" this article.
Moosefs schematic diagram
From the picture above, you can see that master is the brain of the entire system. It knows how many parts of the data are divided and where it is placed on that server. Client goes through master every time it visits. Chunk is the real place where data is stored.
Realization process
Master is responsible for the management of the data of the whole system, saving how many parts of the data are divided and storing information on that server; metalogger will back up the management data of master regularly, and after master failure, the system can be restored through the backup data of metalogger; chunk server is the real storage location of the data, and the data will be divided into multiple chunk and placed in chunk server. The client side is the user of the distributed system. After the system is built successfully, the system can be mounted on the client like a hard disk to realize the distributed application of the system.
Installation specifications:
1. The moosefs source file package is uniformly placed under / usr/local/src of all servers.
2. Create an independent running user: mfs
3. The installation directory is: / usr, and the configuration file path is: / etc/mfs
4. The storage path of Chunk server is / mfschunk.
5. The mount point of Client is / mnt/mfs.
6. The startup of Master and chunk server is added to the / etc/rc.local file so that it starts with boot.
The Masterside of the installation process
1. Upload the tar package to / usr/loca/src
2. Enter the following content in the / etc/hosts file: "IP mfsmaster" (where IP is the ip address of master)
3. Add mfs user: useradd mfs
4. Unpack: tar xf moosefs-2.0.81-1.tar.gz
5. Enter the installation directory: cd moosefs-2.0.81
6. Compile and install:. / configure--prefix=/usr-- sysconfdir=/etc-- localstatedir=/var/lib--with-default-user=mfs-- with-default-group=mfs-- disable-mfschunkserver--disable-mfsmount
7. Compile: make&&make install
8. # cd/etc/mfs/ change the configuration file name:
Change the original file name to cfg file
# cp mfsmaster.cfg.dist mfsmaster.cfg
# cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
# cp mfsexports.cfg.dist mfsexports.cfg
# cp mfstopology.cfg.dist mfstopology.cfg
9. Start master:/usr/sbin/mfsmasterstart
Metalogger server end
1. Upload the tar package to / usr/loca/src
2. Enter the following content in the / etc/hosts file: "IP mfsmaster" (where IP is the ip address of master)
3. Add mfs user: useradd mfs
4. Unpack: tar xf moosefs-2.0.81-1.tar.gz
5. Enter the installation directory: cd moosefs-2.0.81
6. Compile and install:. / configure--prefix=/usr-- sysconfdir=/etc-- localstatedir=/var/lib--with-default-user=mfs-- with-default-group=mfs-- disable-mfschunkserver--disable-mfsmount
7. Compile: make&&makeinstall
8. Start metaloggerserver:/usr/sbin/mfsmetalogger start
Chunk server end
1. Upload the tar package to / usr/loca/src
2. Enter the following content in the / etc/hosts file: "IP mfsmaster" (where IP is the ip address of master)
3. Add mfs user: useradd mfs
4. Unpack: tar xf moosefs-2.0.81-1.tar.gz
5. Enter the installation directory: cd moosefs-2.0.81
6. Compile and install:. / configure--prefix=/usr-- sysconfdir=/etc-- localstatedir=/var/lib--with-default-user=mfs-- with-default-group=mfs-- disable-mfsmaster
7. Compile: make&&makeinstall
8. Change the profile name:
# cd / etc/mfs
# cp mfschunkserver.cfg.dist mfschunkserver.cfg
# cp mfshdd.cfg.dist mfshdd.cfg
# cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
9. Create a directory: mkdir / mfschunk
10. Modify permissions chmod-R mfs:mfs / mfschunk
11. Modify the configuration file: add content to the / etc/mfs/mfshdd.cfg file: / mfschunk
12. Start chunkserver: / usr/sbin/mfschunkserverstart
Client end
1. Install fuse:yum install-y fuse*
2. Enter the following content in the / etc/hosts file: "IP mfsmaster" (where IP is the ip address of master)
3. Upload the tar package to / usr/loca/src
4. Unpack: tar xf moosefs-2.0.81-1.tar.gz
5. Enter the installation directory: cd moosefs-2.0.81
6. Compile and install:. / configure--prefix=/usr-- sysconfdir=/etc-- localstatedir=/var/lib--with-default-user=mfs-- with-default-group=mfs-- disable-mfsmaster--disable-mfschunkserver
7. Compile: make&&makeinstall
8. Mount the file system: / usr/bin/mfschunk/mnt/mfs-H mfsmaster
9. Check with df-h, and the following shows that the installation is successful.
Now you can use the entire file system just like a regular hard drive.
These are all the contents of the article "how to deploy moosefs2.0". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.