The entire process of installing Hadoop with VMware

Source: Internet
Author: User
Although the process of building a large-scale learning Hadoop platform began in middle July, it seems that there are not many problems to solve, however, it takes some time for a person who has never been familiar with linux, java, and cloud computing platforms before. The biggest emotion is that the version of various tools is very important. Vmware, Ubuntu, jdk, hadoop, hbase, zookeeper, and any version is fatal. At the beginning, I started my experiment on the second version of cloud computing by Liu Peng. Li

Preface:

Although it seems that there are not many implementation problems in the process of building a large-scale learning Hadoop platform since middle July, for a person who has never been familiar with linux, java, and cloud computing platforms before, it took a while. The biggest emotion is that the version of various tools is very important. Vmware, Ubuntu, jdk, hadoop, hbase, zookeeper, and any version is fatal.

At the beginning, I started my experiment on the second version of cloud computing by Liu Peng. It seems like a simple sentence. It takes me a whole day to implement it. For example:

1. Virtual Machine usage problems. In the latest version of Vmware, after installing Vmware-tools, the/mnt/hgfs/share directory does not exist and there is no shared folder, I was unable to get various software (although I know that virtual machines can access the Internet directly, but at first I thought that various software could only be obtained through sharing with the host, I have used all kinds of methods, and almost all web pages installed with Vmware-tools have been replaced by Baidu. The latest extreme kernel, a simple alternative to the old vmwaretest, And the mware-workstation-full-7.1.1-282343.exe. After the change, when the cd/mnt/hgfs appears in the command line, the excitement cannot be explained. But I didn't realize that there were even more problems waiting for me.

2. Install the jdk and java environment configurations. Now it seems very simple to write the paths of the various tools we installed in the/ect/profile file. But at the beginning, I was confused. I always accidentally wrote a path error and finally had to modify it over and over again.

3. about linux File permissions. When I first started using a common user, I always indicated that the permission was insufficient. Finally, I was too lazy to use The sudo command to directly jump into the root user and always used it to solve the problem. This habit has caused a huge problem when hbase is used later.

If you are not talking about it, go to the experiment process.

Various versions used: 

1)VMware-workstation-full-7.1.1-282343.exe is recommended not to be written in Chinese. The latest version has a problem.

2) ubuntu-10.04.1-desktop-i386.iso

32.16hadoop-0.%2.tar.gz

Experiment Process

1. Change the root user password:

Sudo passwd root change root Password

Su root enters the root user

Ii. Install virtual machine tools:

1. mount-o, loop/dev/cdrom/mnt means to mount the optical drive to the/mnt directory.

2. Enter the cd/mnt directory

3. tar zxvf VmwareTools-8.4.2-261024.tar.gz-C ~

Extract the VmwareTools-8.4.2-261024.tar.gz to the/root directory, and write C in uppercase.

4.../vmware-install.pl run the installation file in the/root/vmware-tools-distrib directory

5. Press ENTER or yes

6. restart the system and remove the attachment to the CD in VM Setting. The shared folder is also set at www.linuxidc.com.

7,/usr/bin/vmware-config-tools.pl is the location and name of the configuration file, to configure the shared folder, you need to use the root user, still one way press enter, yes, no

8. The cd/mnt/hdfs/share folder exists, indicating that the VM tool is successfully installed.

3. Install SSH

Sudo apt-get install ssh

4. install and configure JAVA

1. In the/usr directory, create a java Folder: mkdir java requires the root user

2, in the/usr/java directory, run:/mnt/hgfs/share/jdk-6u26-linux-i586.bin

Enter java javac java-version with information

3,Install the vim software to edit the file apt-get install vim later. (We strongly recommend that you install it because the vi tool is inconvenient to use)

4. Configure the java environment:

1) vim/etc/profile edit the profile file

2) Add the following information to the end of the file:

JAVA_HOME =/usr/java/jdk1.6.0 _ 26
JRE_HOME =/usr/java/jdk1.6.0 _ 26/jre
CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH
Export JAVA_HOME
Export JRE_HOME
Export CLASSPATH
Export PATH

3) Edited: wq is saved and exited.

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.