According to this blog http://dblab.xmu.edu.cn/blog/install-hadoop-in-centos/ in learning tutorial;
First, in accordance with the first step of the operation of the tutorial when the computer directly to a blue screen.
But still failed to attack the passion I want to learn hadoop. Continue to boot centos
According to the tutorial, I just created a user's own name, so here hadoop need to continue to create an account
Hadoop add a user and password, and modify permissions good, Log
Switching into account hadoop
Then enter the SSH mounting operation, first open the terminal, if the test system has been installed ssh
Detects that the next step is already installed, install the Java environment, you need to install Java jdk in linux environment through yum command
Enter the command to wait for a period of time, the installation process:
Next JAVA_HOME environment variable configuration system, and detecting whether the installation is successful
Into the configuration file, add at the end of its value, enter the command file so that the entry into force
Test environment variable configuration and whether it is properly installed java environment
Prompted by the system and can not have this folder, we go to that letter and see whether there is appropriate folder to find the environment variable to the wrong place
According to the path all the way to the final look of the letter, we found the appropriate files. Find any character entered the wrong place is halfway there
Yes usr
Yes lib
Yes jvm
java-1.7.0-openjdk error; not in this folder, but there is a java-1.7.0 and two file folders java-openjdk
To determine which folder is the correct environment variables then have to be into it to see if the corresponding file, java-openjdk no problem, and then view the file also exists java-1.7.0, select the closest java-1.7.0 testing as a priority target
1.7.0 As the environment fails, the environment as openjdk try again.
The same error.
After continuous attempts, eventually to locate a file in the same version number and before, but not the same environment variables and tutorial.
JAVA environment generally already installed
Then enter Hadoop2 installation, download the appropriate hadoop2 through the Firefox browser version
Well, after eating an apple download is complete, and then enter the next step of the operation
解压hadoop同时安装hadoop后查看hadoop的版本信息
hadoop已经被成功安装了
首先初始尝试运行hadoop中的例子,发现出现错误,则使用需要修改其中的hostname映射
进入hostname中填写127.0.0.1的映射,再次运行实例成功运行。
输出结果:
清空output文件夹