I have been in touch with Hadoop for almost two years, and have not summed up the installation tutorial myself, and have recently used Hadoop to build a cluster to carry out the experiment, so I use this opportunity to write a tutorial for later use, and to discuss with you.
To install Hadoop first install its secondary environment Java
Installation and configuration of Java under Ubuntu
The Java installation is available after the specified path is easy to find.
Java installation
1 in the/home/xx (that is, the current user) directory, new java1.xx folder: mkdir/home/xx/java1.xx (file name on the version number, to facilitate future understanding of the Java version)
2 Enter/home/xx/java1.xx directory, run installation instructions: Sudo/home/xx/jdk-6u26-linux-i586.bin, then generate folder Jdk1.6.0_26, if the feeling name is too long, you can rename it: MV Jdk1.6.0_26 JDK
You can also use the Sudoapt-get install package to install Java. If you want to uninstall Java use command sudo rm-rf/home/xx/java1.6/jdk1.6 (installation directory)
Configure Environment variables
Enter profile file Add environment configuration, command for sudo gedit/etc/profile at end of file add
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.