【问题标题】:unable to run start-dfs.sh无法运行 start-dfs.sh
【发布时间】:2016-11-17 02:41:20
【问题描述】:

我无法运行start-dfs.sh

ubuntu@UBUNTU:~$ start-dfs.sh
14/10/19 19:26:50 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
Starting secondary namenodes [0.0.0.0]
0.0.0.0: ssh: connect to host 0.0.0.0 port 22: Connection refused
14/10/19 19:27:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ubuntu@UBUNTU:~$

我在安装 hadoop 时做了以下操作:

ssh-keygen -t rsa -P ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

【问题讨论】:

  • 您的防火墙似乎阻止了远程 ssh 连接。你检查过iptables吗?
  • 您是否将默认 SSH 端口修改为端口 22 以外的其他端口?

标签: ubuntu hadoop ssh localhost


【解决方案1】:

ssh localhost 有效吗?我猜不是。你必须先完成这项工作。您必须具有公钥/私钥集的有效组合。欲了解更多信息,请谷歌passwordless SSH login 或在此处查看示例:http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html

【讨论】:

    猜你喜欢
    • 2016-02-15
    • 2021-12-05
    • 2020-05-27
    • 1970-01-01
    • 2021-07-12
    • 1970-01-01
    • 2021-01-28
    • 1970-01-01
    相关资源
    最近更新 更多