Ubuntu13.1+vmware tools+hadoop1.2.1+sublime text2+jdk1.8.0+ssh No password login full solution (cont.)

Source: Internet
Author: User
Tags ssh server

This blog post is primarily for answers to some of the questions that occurred during Hadoop installation of the previous blog post

Issue one: SSH no password login problem

When I am ready to log in with SSH after I generate the key, the following prompt appears

Ssh:connect to host localhost Port 22:connection refused

After consulting the information, it was found that this situation was generally caused by three reasons:

1.sshd not installed
2.sshd not started
3. Firewalls

Workaround:
1. Determine the installation Sshd:sudo Apt-get install Openssh-server
2. Start sshd:/etc/init.d/ssh start
3. Check firewall settings

However, in general, the firewall is closed, so it should be the SSHD service is not started, the boot is ready, but if the startup prompt the following error:

BASH:/etc/init.d/sh:no such file or directory

That means the system doesn't have an SSH service installed.

Execute the following command:

sudo apt-get install Openssh-server

Normally downloads are normal, but sometimes the download fails because of a system version issue, which prompts you for the following error:

Unable to fetch some archives, maybe run apt-get update or try with--fix-mi

This is a lot of information blog is Apt-get Update can be, but Apt-get update also failed, the following error message appears

E:some index files failed to download. They has been ignored, or old ones used instead.

Workaround:

Change the sources.list *.archive to Old-releases as follows

$ sudo sublime/etc/apt/sources.list
So your lines should instead of
Deb 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/E/U261/LANG/ZH-CN /images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>http://*.archive.ubuntu.com/ Ubuntu Jaunty main restricted universe
Look like
Deb 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/E/U261/LANG/ZH-CN /images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>http:// Old-releases.ubuntu.com/ubuntu Jaunty main restricted universe
and replace security with old-releases.

Last Viewed

/var/lib/apt/lists/partial/

If you have a file, delete it all, and then execute the command, you're done.

$ sudo apt-get update

After the update, then execute the sudo apt-get install openssh-server will be OK!!!

SSH server after installation, followed by a blog I sent earlier to do it

ps:1) remember. SSH belongs to itself if not, under root can be empowered, the command is as follows;

Chown-r yzy1:yzy1. SSH

2) The SSH server is strict with the permission requirements. SSH is generally the Id_rsa file under SSH, Id_rsa.pub and Authorezed_keys are 644


Question two:

Hadoop command not found

This problem is most likely to be performed once again Source/etc/profile

Another possibility is that there is a problem with the path of the environment variable, so check it out.


Question three:

Datanode and Namenode creation is not successful, this situation depends on the path we write in the configuration file, whether the actual directory file already exists, if not, we must first build these files, note that we wrote in the configuration file Namenode path is as follows:/hadoop/ Appdata/name, in practice just need to create to AppData just fine. Datanode


Ubuntu13.1+vmware tools+hadoop1.2.1+sublime text2+jdk1.8.0+ssh No password login full solution (cont.) Problem Solving article

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.