Build pseudo-Distributed & upload and download files in Centos64

Source: Internet
Author: User

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

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.