报错了:ssh: connect to host localhost port 22: Connection refused

来源:2-3 Hadoop安装-配置hadoop

sd1700092

2015-06-29 06:56

在执行start-all.sh时报如下的错误:

root@ubuntu:/home/sd1700092/skyone/hadoop-1.2.1/bin# start-all.sh

Warning: $HADOOP_HOME is deprecated.


starting namenode, logging to /home/sd1700092/skyone/hadoop-1.2.1/libexec/../logs/hadoop-root-namenode-ubuntu.out

localhost: ssh: connect to host localhost port 22: Connection refused

localhost: ssh: connect to host localhost port 22: Connection refused

starting jobtracker, logging to /home/sd1700092/skyone/hadoop-1.2.1/libexec/../logs/hadoop-root-jobtracker-ubuntu.out

localhost: ssh: connect to host localhost port 22: Connection refused


有人遇到过么?

写回答 关注

5回答

  • 慕工程3313179
    2017-11-21 15:21:17

    呃呃呃(⊙o⊙)嗯

  • fenghy0601
    2015-06-29 20:32:10

    我也遇到了和楼上相同的问题,少了两个进程

    同时,运行 hadoop fs -ls /的时候显示以下错误

    ls: Call to ubuntu/127.0.1.1:9000 failed on connection exception: java.net.ConnectException: Connection refused

    不知道应该怎样更改配置文件,求解

    (我的localhost的名字是ubuntu)


    xuanlo... 回复Kit_Re...

    我的就是映射的问题,ip地址改了一次,所以报这个错,十分感谢,在网上找了好久,我的和他们的问题还不太一样,原来是ip问题,所以拒绝,还以为是ssh的问题。

    2017-04-18 18:11:36

    共 4 条回复 >

  • sd1700092
    2015-06-29 07:36:20

    配了好久解决了上个问题,现在每步操作都做好了,但看JPS只有这几个东西。。

    root@ubuntu:/home/sd1700092/skyone/hadoop-1.2.1/bin# jps

    6501 SecondaryNameNode

    6906 Jps

    6312 DataNode

    6785 TaskTracker

    请问另外几个去哪里了?该怎么设置才能也出来,谢谢

    Kit_Re...

    mapred.job.tracker fs.default.name 是怎么配的? 帖上来看看

    2015-07-02 16:19:06

    共 1 条回复 >

  • sd1700092
    2015-06-29 07:09:17

    我去安装sudo apt-get install openssh-server时接着报错,

    Reading package lists... Done

    Building dependency tree       

    Reading state information... Done

    Some packages could not be installed. This may mean that you have

    requested an impossible situation or if you are using the unstable

    distribution that some required packages have not yet been created

    or been moved out of Incoming.

    The following information may help to resolve the situation:


    The following packages have unmet dependencies:

     openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1.3) but 1:5.9p1-5ubuntu1.4 is to be installed

                      Recommends: ssh-import-id but it is not going to be installed

    E: Unable to correct problems, you have held broken packages.


    这个又该怎么解决。。。?

    Kit_Re...

    版本冲突了。用源码安装试试。

    2015-07-02 16:16:48

    共 1 条回复 >

  • sd1700092
    2015-06-29 06:57:42

    root@ubuntu

    我已经获取根用户了,为什么还是Connection refused

    Kit_Re...

    可能是你的系统没有装openssh-server

    2015-07-02 16:14:20

    共 1 条回复 >

认识Hadoop--基础篇

Hadoop入门视频教程,大数据人才的入门首选

138835 学习 · 348 问题

查看课程

相似问题