& Http://www.aliyun.com/zixun/aggregation/37954.html "> Hadoop diary Day2 --- build a development environment First, Hadoop configuration software (my computer is Windows7 flagship - 64bit)
1. VMWare dedicated CentOS image (Centos is a Linux operating system)
2. VMware-workstation10
Hadoop-1.1.2.tar.gz
Jdk-6u24-linux-i586.bin
PieTTY 0.3.26 (landing remote host terminal)
Winscp516setup (able to transfer files and Linux tools)
The above and Hbase, Hive and other software download address is as follows:
http://pan.baidu.com/s/1mgoPiNQ Second, the environment to build 2.1 Install VMware-workstation10
VMware-workstation10 installation is very simple, just follow the prompts to select "Next" to meet the answer "Yes" or "No" place, select "Yes." In the installation process, there will be a temporary network outage, do not panic, will resume. After the installation is completed in the Network Sharing Center → change the adapter settings, VMware-workstation10 will automatically create a virtual network as shown in Figure 2.1
Figure 2.1
vmnet0, is actually a virtual bridge (VMware has not shown, but still have this feature)
vmnet1, which is a Host-Only network mode (this card must be enabled using Host-Only connection)
vmnet8, this is a NAT mode (NAT connection must use this card)
2.2 Open the Centos image with VMware
Unzip Centos mirror later, find the directory as shown in Figure 2.2 below
Figure 2.2
Double-click the file in the box can be, do not have to install, which Centos has been configured, a total of two users, one is a Hadoop ordinary account, the password for hadoop, a root user, the password for hadoop.
2.3 host (windows) and client (installed in the virtual machine Linux) network connection
(1) host-only host-client and client network.
Benefits: Network isolation
The downside: The virtual machine can not communicate with other servers
(2) brige client and host in the same LAN.
Benefits: all in the same LAN can visit each other
Disadvantages: not safe
(3) NAT omitted
For the detailed differences between these three connection methods, see the website:
http://www.cnblogs.com/sunddenly/articles/3970769.html
2.4 Set up the network
We can set their own network connection according to their own conditions, because the use of the network I have a limited IP, so I use the bridge. Set as follows:
Figure 2.3
Figure 2.4
Figure 2.5
Since I was using bridging mode, virtual machines VMnet1 and VMnet8 are not used so I will disable it, but choose Host-Only or NAT can not be disabled, which use which to open.
(1) boot
Figure 2.6
Click here I have moved
Figure 2.7
Figure 2.8
After opening, we choose Other, enter root, password: hadoop into the system, as shown below
2) Configure static network
As I use the bridge, so the network segment set by Linux and my host host's network segment 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 The configuration is successful