hadoop - Hadoop:ssh:无法解析主机名名称:名称或服务未知
问题描述
有一些外部 jars 路径要添加到 hadoop 类路径中。运行 start-dfs.sh 后,我发现了这些错误。如果我从 hadoop-env.sh 文件中删除类路径,Hadoop 会正常运行。我还在hadoop-env.sh 文件中设置了HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=/usr/local/hadoop/lib/native"
和。export HADOOP_COMMON_LIB_NATIVE_DIR="/usr/local/hadoop/lib/native/"
[main]]: ssh: Could not resolve hostname [main]]: Name or service not known
using: ssh: Could not resolve hostname using: Name or service not known
14:48:34.392: ssh: Could not resolve hostname 14:48:34.392: Name or service not known
hadoop: ssh: Could not resolve hostname hadoop: Name or service not known
14:48:34.392: ssh: Could not resolve hostname 14:48:34.392: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
KerberosName: ssh: Could not resolve hostname kerberosname: Name or service not known
hadoop.security.token.service.use_ip: ssh: Could not resolve hostname hadoop.security.token.service.use_ip: Name or service not known
cacheTimeout=300000;: ssh: Could not resolve hostname cachetimeout=300000;: Name or service not known
Group: ssh: Could not resolve hostname group: Name or service not known
[main]]: ssh: Could not resolve hostname [main]]: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
login: ssh: Could not resolve hostname login: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
Using: ssh: Could not resolve hostname using: Name or service not known
[main]]: ssh: Could not resolve hostname [main]]: Name or service not known
warningDeltaMs=5000: ssh: Could not resolve hostname warningdeltams=5000: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
user:UnixPrincipal:: ssh: Could not resolve hostname user:unixprincipal:: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
[main]]: ssh: Could not resolve hostname [main]]: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
name: ssh: Could not resolve hostname name: Name or service not known
"username": ssh: Could not resolve hostname "username": Name or service not known
entry:: ssh: Could not resolve hostname entry:: Name or service not known
from: ssh: Could not resolve hostname from: Name or service not known
PrivilegedAction: ssh: Could not resolve hostname privilegedaction: Name or service not known
subject.: ssh: Could not resolve hostname subject.: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
14:48:34.393: ssh: Could not resolve hostname 14:48:34.393: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
user:: ssh: Could not resolve hostname user:: Name or service not known
externally: ssh: Could not resolve hostname externally: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
is: ssh: Could not resolve hostname is: Name or service not known
UGI: ssh: Could not resolve hostname ugi: Name or service not known
managed: ssh: Could not resolve hostname managed: Name or service not known
UserGroupInformation: ssh: Could not resolve hostname usergroupinformation: Name or service not known
[main]]: ssh: Could not resolve hostname [main]]: Name or service not known
loginUser:username: ssh: Could not resolve hostname loginuser:username: Name or service not known
[main]]: ssh: Could not resolve hostname [main]]: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
from:org.apache.hadoop.hdfs.tools.GetConf.run(GetConf.java:315): ssh: Could not resolve hostname from:org.apache.hadoop.hdfs.tools.getconf.run(getconf.java:315): Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
login: ssh: Could not resolve hostname login: Name or service not known
[[DEBUG]: ssh: Could not resolve hostname [[debug]: Name or service not known
commit: ssh: Could not resolve hostname commit: Name or service not known
keytab: ssh: Could not resolve hostname keytab: Name or service not known
logged: ssh: Could not resolve hostname logged: Name or service not known
(auth:SIMPLE): ssh: Could not resolve hostname (auth:simple): Name or service not known
in: ssh: Could not resolve hostname in: Name or service not known
Assuming: ssh: Could not resolve hostname assuming: Name or service not known
User: ssh: Could not resolve hostname user: Name or service not known
有人可以帮忙吗?
解决方案
推荐阅读
- ruby-on-rails - will_paginate 有问题,当 put per_page 我的集成测试失败时?
- java - Java:从 CSV 传递到 HashMap 并打印键和值
- flutter - 只有单行来自 json api
- c++ - 具有静态成员的 C++ 模板类 - 未定义的引用,而我的静态成员似乎已声明和初始化
- opencv - MXNetError:ImageRec 需要 opencv 来处理
- android-studio - Android Studio 中的 Firebase 符号问题
- css - Flex-wrap 从上一行的垂直端开始
- python - 如何从 json 输出中仅提取一个值?
- r - 为什么 fullrange=TRUE 不适用于 ggplot2 中的 geom_smooth?
- c++ - 使用 std::string 声明一个 std::bitset 数组