"Hadoop" Installation and configuration

Source: Internet
Author: User
Tags create directory

Actually, it's just homework.

1. Unzip the JDK


2. Configuring the JDK Environment


Normal user rights input Gedit ~/.BASHRC

Enter the JDK directory on the first line, because the JDK cannot be found when you install the configuration to the rear Hadoop


Super Administrator rights input gedit ~/.BASHRC Configure the path at the bottom of the document


Last save exit, terminal input source ~/.BASHRC execution

Sudoupdate-alternatives--install/usr Jdk1.8.0_60/bin/java Java/usr/jdk/jdk1.8.0_60/bin/java 300

Sudoupdate-alternatives--install/usr/jdk1.8.0_60/bin/javac Javac/usr//jdk1.8.0_60/bin/javac 300

Installing SSH


SSH password is ZJH

Generate SSH key, use ssh localhost next time without entering password


Unzip Hadoop

Configuration file error, error message, value tag in source Hdfs-site.xml file


Start the service


Detect if the service is started


It's so much fun to see this page.

Experimental results or conclusions

1, in the course of the experiment because the version of the different, looking at the contents of the document can not be successful, you must find a variety of data to be configured, especially the configuration of the JDK, 1.6 1.7 1.8 Configuration Some small access

JDK 1.8 To make a soft connection

Sudoupdate-alternatives--install/usr Jdk1.8.0_60/bin/java Java/usr/jdk/jdk1.8.0_60/bin/java 300

Sudoupdate-alternatives--install/usr/jdk1.8.0_60/bin/javac Javac/usr//jdk1.8.0_60/bin/javac 300

2, in the installation if just blindly follow the steps to install, there is no significance of the experiment, because it can not learn anything at all

3, finally in the configuration of Hadoop because of some small negligence on the wrong, fortunately there are error messages

4, the last direct use./sbin/start-all.sh can turn on connected services

5, when the following error message (information forgotten, the Internet to find the same information)

[Email protected]:/usr/hadoop-1.1.2/bin$ start-all.sh
Mkdir:cannot Create directory '/usr/hadoop-1.1.2/libexec/. /logs ': Permission denied
Chown:cannot Access '/usr/hadoop-1.1.2/libexec/. /logs ': No such file or directory

Starting Namenode, logging to/usr/hadoop-1.1.2/libexec/. /logs/hadoop-hm-namenode-hm-ubuntu.out
/usr/hadoop-1.1.2/bin/hadoop-daemon.sh:line 136:/usr/hadoop-1.1.2/libexec/. /logs/hadoop-hm-namenode-hm-ubuntu.out:no such file or directory
Head:cannot Open '/usr/hadoop-1.1.2/libexec/. /logs/hadoop-hm-namenode-hm-ubuntu.out ' for reading:no such file or directory
[email protected] ' s password:

Indicates that the user does not have permission to manipulate the directory

Execute the chown command to give the current user writable permissions to the directory

sudochown-hrhmhadoop-1.1.2

6. Enter localhost:8088 into Hadoop management on the webpage

"Hadoop" Installation and configuration

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.