Hadoop diary Day2 Linux in---virtual machines

Source: Internet
Author: User

Note: For more information on how to import Hadoop source into eclipse see HTTP://PAN.BAIDU.COM/S/1EQCCDCM

First, Hadoop configuration software (My computer is Windows7 flagship--64bit)

1. VMware dedicated CentOS image (CentOS is one of the Linux operating systems)

2. Vmware-workstation10

3. hadoop-1.1.2.tar.gz

4. Jdk-6u24-linux-i586.bin

5. Pietty 0.3.26 (Login to remote host terminal)

6. Winscp516setup (Tools capable of transferring files to and from Linux)

The above and hbase,hive software are as follows:

Http://pan.baidu.com/s/1mgoPiNQ
Second, the environment construction

2.1 Installing VMWARE-WORKSTATION10

The installation of the VMWARE-WORKSTATION10 is very simple, just follow the prompts step by step to select "Next", encounter the answer "yes" or "No" place, select "Yes". During the installation process, there will be temporary network interruption, do not panic, will be restored. After the installation is complete in the network Sharing center → change adapter settings, the VMWARE-WORKSTATION10 automatically establishes the virtual network as shown in 2.1

Figure 2.1

  • vmnet0, which is actually a virtual bridge (VMware is no longer displayed, but still has this feature)
  • Vmnet1, This is a host-only network mode (this NIC must be enabled using the Host-only connection method)
  • Vmnet8, This is a Nat method (this network card must be enabled using NAT connection mode)

2.2 Using VMware to open the CentOS image

After extracting the CentOS image, find the directory as shown in 2.2

Figure 2.2

Double-click the file in the box, do not install, the inside of the CentOS has been configured, a total of two users, one is a Hadoop ordinary account, password for Hadoop, one is the root user, password for Hadoop.

2.3 Host (Windows) network connection to the client computer (Linux installed in the virtual machine)

(1) Host-only host and client separate networking.

  • Benefits: Network Isolation
  • Cons: Cannot communicate between virtual machines and other servers

(2) The Brige client is in the same LAN as the host.

  • Benefits: All on the same LAN can access each other
  • Cons: Unsafe

(3) NAT slightly

The detailed differences between the three types of connections are described in the URL:

Http://www.cnblogs.com/sunddenly/articles/3970769.html

2.4 Setting up the network

We can set their own network connection according to their own conditions, because the use of the intranet I have a limit on the IP side, so I use the way Bridge . Here's how it's set up:

Figure 2.3

Figure 2.4

Figure 2.5

Since I am using bridged mode, the VMnet1 and VMnet8 of the virtual machine are not used so I disable it, but select Host-only or NAT cannot disable all, whichever one you use.

(1) Boot

Figure 2.6

Click here I have moved

Figure 2.7

Figure 2.8

After opening, we select other, enter root, password: Hadoop enters the system, such as

(2) Configuring a static network

Since I am using a bridging approach, the network segment set by Linux and my host's network segment is in the same network segment

Figure 2.9

Figure 2.10

Figure 2.11

Figure 2.12 My computer's IP is 192.168.1.49, the virtual machine is 192.168.1.50, both in the same network segment, select Manual static mode, and finally click Apply.

Figure 2.13 Configuration Success

Hadoop diary Day2 Linux in---virtual machines

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.