Hadoop tutorial (1) ---- use VMware to install CentOS

Source: Internet
Author: User

Hadoop tutorial (1) ---- use VMware to install CentOS

1. Overview

My Learning Environment-install four CentOS systems (used to build a Hadoop cluster) under the vmwarevm. One of them is the Master, three are the Slave, and the Master is the NameNode in the Hadoop cluster, three Slave as DataNode. At the same time, we set the IP addresses of the four CentOS systems to static to prevent the cluster from being unavailable due to IP changes. (If the IP address changes, you have to modify the configuration to use the Hadoop cluster)

2. Install VMware

  VMware Workstation Pro 12.1.1 Build 3770994 release and download

  After the download is complete, double-click to run and click Next to install other software. You can modify the installation path. The installation directory is D: \ developer \ VMware Workstation.  

3. Install CentOS
Next, we will start to install the CentOS system. Here we choose the CentOS 32-bit system, which provides the following information.


3.1. we can't do it here. Open our Installed VMware, click "Create a VM", select "typical" (recommended) "(T), and next. Here we will learn how to install CentOS, next, we will not select the automatic installation of VMware. We will directly choose to install the operating system later, then select the operating system type, and select linux, select CentOS (if 64-bit CentOS is installed, select CentOS 64-bit), and click Next to select the installation location and name, here, the author changes the name to HadoopMaster (the other three are changed to HadoopSlave1, HadoopSlave2, HadoopSlave3), and the location is uniformly installed on D: \ developer \ Virtual Machines \ directory (you can modify the installation location and name). You can continue to use the default options in subsequent steps, that is, click Next to complete the installation.


3.2. Adjust the virtual machine settings to edit the memory and processor information. For CentOS6 and later systems, we recommend that you select memory greater than 632 MB. The author chooses 1024 MB, that is, 1 GB. Continue to select CD/DVD, the default single button is to use the physical initiator, here to use the ISO image file, and select the location of the downloaded CentOS-6.7-i386-bin-DVD1.iso. The network adapter is changed to the bridge mode. The bridge mode can communicate with all computers in the LAN. We recommend that you select this mode.

3.3 click Enable virtual machine to go to The CentOS installation page. After selecting the first option, the page is shown in.



3.4.
Select skip, skip the test, and install it directly.



3.5.
Click Next when the page appears. Select English> U. S. English and click Next.



3.6.

Select the storage device to be installed, select Basic storage Devices, and click Next to check whether data is discarded. Because we are a new installation system, select Yes to discard data, and then configure the host name, use the default one directly.

3. 7. next, select the time zone. I am a Chinese. Select Asia/Shanghai from the drop-down list. Of course, if you know the location on the map, you can click the location to select Shanghai, and then click Next.

 


  



3.8. Set the password later. I won't tell you the password here. It's a secret! The password set here is the password of the root user. If the password strength is too weak, a prompt is displayed. You can Use this password directly (Use Anyway) and continue to the next step.

 

 

. As shown in, let's select the installation type. Here we choose Create Custom Layout to continue the next step.



3.10.

 

Below is the selection of partitions. After I wrote the post, the image disappeared. Here I will write it again. We have four partitions: boot, swap,/, and home. Among them, boot is the system boot partition, which stores the boot file. Because the file is relatively small, it is enough to divide it into MB; swap partition (also known as "swap partition ") when the physical memory of the system is insufficient, release some space in the hard disk space for the currently running program. We recommend that you double the memory size, if the size of memory is greater than 4G, why is the memory size equal? The home partition is the user file storage partition, And the created users are all in this partition. The size is determined based on the number of users using this system;/(root partition) it is equivalent to a top-level partition, which has no specific significance. Generally, the remaining space is allocated to the root partition. Some images are left here. Some images were missing when they were originally saved and released. It may be because I don't use TinyMCE very much ~~~~




   


3.11.

 

After partitioning, select the installation type, such as desktop and minimal installation. Here, select Basic Server. If you are not familiar with linux, we recommend this type. After the installation is complete, Click reboot to restart. After the restart is complete, enter the user name and password to log on. This completes. I am sorry because the previous images are gone, so I have to save them next time.



3.12. this method can be used to install three other slave instances. You can also use the complete clone function of VMware to clone the three slave instances. However, this network may cause problems, the content in the next article supplements the description and solution of the last problem.

4. Next set Forecast
In the next article, let's write about jdk installation. I believe everyone will install it. But this is a note. You still have to do it. Please support me a lot !!!

See for all series:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.