Hadoop can be said to be quite a fire lately, and I'm interested in it, so I'm going to learn a little bit. To learn Hadoop, you must first learn to build a Hadoop pseudo-distributed environment on your computer. The first step in the pseudo-distribution mode installation step is to configure the Linux environment . My own Linux is Ubuntu system, but as long as the Linux system, all the same, the configuration steps basically no difference.
First, the local network configuration is required. We need to add a network connection under the Linux system, set the IP (IPv4) address, subnet mask and network officer. Is my settings:
Next, you also need to set the IP address under Windows on the window local connection.
When the network environment is configured, you need to modify the Linux system hostname, modify the hostname requires root user rights, enter the root user only need to enter sudo su under the Linux terminal and then enter the password. You can use vim/etc/hostname to modify your host user name when you have root privileges.
After modifying the hostname, modify the IP address and host name mappings in the hosts. Change the IP address to the IP of the Linux system you set by using the command vim/etc/hosts , and change the hostname to the hostname you just modified.
Finally, we need to shut down the firewall under Linux, which is iptables, using the command UFW disable . Restart the Linux system after completing all the steps above. The settings are then judged to be successful.
Open the terminal of the window, enter Ping 192.168.8.88 (This is the IP address of the Linux system you set up), and if the following result is set, the setting is successful:
Next , under the Linux system also do the following ping 192.168.8.100 (here is the IP address you set under Windows), if the success is shown as follows:
If you find that your ping command did not succeed, it is possible that the virtual machine is not set to host-only mode :
if all of the above steps are successful, the first step in building a Hadoop pseudo-distributed environment is completed.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Hadoop Pseudo-distributed environment to build--linux environment configuration