Environment:
Vmware-workstation-full-10.0.0-1295980.exe
Centos-6.7-x86_64-bin-dvd1.iso
Begin:
personal habits created two directories one to put the software to install one to put the software installed address
Unpack and install the JDK
Configuring the JDK
Reboot to take effect after configuration is complete we execute a command, this time it takes effect.
So javac and javac can use it.
Check out our JDK version.
1. Unzip the hadoop-2.6.0-x64.tar.gz
Move the extracted files to the directory we want
2. Edit Etc/hadoop/core-site.xml
Hadoop is my username.
3. Edit Etc/hadoop/hdfs-site.xml
4. Generate a key to facilitate later use
5. Now copy the key to our users
This time, the error.
Could not resolve hostname hadoop:temporary failure in name resolution
Unable to resolve host name Hadoop: Temporary fault name resolution
Because he doesn't know Hadoop , and now we're going to configure it .
Execute ssh-copy-id Hadoop again
6. Now the configuration is almost there, before we start, we'll format it.
See, this format is successful.
7. Now it's ready to start.
But it was a mistake when it started.
The reason is that the jdk is a relative path inside the Hadoop environment and we're going to change it to an absolute path.
And then continue to start
The boot was successful.
8. Close our firewall here, I'll shut it down, or I can shut it down this time.
So we can access it externally.
9. but we should configure Hadoop before the visit .
Then continue to access
The presence of this page represents the success of our pseudo-distributed build.
10. We're going to upload a file.
Here we upload the jdk directly to the root directory of Hadoop .
The upload was successful.
11. Download The jdk we uploaded
This is downloaded to/ tmp by default
Here is the end of where there is no shortage of places also hope that you more comments, thank you!
Build pseudo-Distributed & upload and download files in Centos64