Hadoop 2.2.0:“名称或服务未知”警告 [英] Hadoop 2.2.0 : "name or service not known" Warning

查看:247
本文介绍了Hadoop 2.2.0:“名称或服务未知”警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是在Ubuntu 12.4上运行hadoop 2.2.0。我能够做到这一点,但当我运行以下命令:
rushi @ ubuntu:/ usr / local / hadoop $ sbin / start-dfs.sh



我的dfs正在启动namenode,scondarynamenode和datanode,但问题在于我收到以下警告

  rushi @ ubuntu:/ usr / local / hadoop $ sbin / start-dfs.sh 
14/01/24 12:05:46 WARN util.NativeCodeLoader:无法加载native-hadoop library for your platform ...在适用的地方使用builtin-java类
在[Java HotSpot(TM)64位服务器VM警告中启动namenodes:已加载库/usr/local/hadoop-2.2.0/lib /native/libhadoop.so.1.0.0可能已禁用堆栈后卫。虚拟机现在会尝试修复堆栈后卫。
强烈建议您使用'execstack -c< libfile>'来修复库,或者将它与'-z noexecstack'链接起来。
localhost]
sed:-e表达式#1,字符6:未知选项到`s'
Java:ssh:无法解析主机名Java:名称或服务未知
库:ssh:无法解析主机名称:名称或服务未知
warning :: ssh:无法解析主机名称警告::名称或服务未知
其中:ssh:无法解析主机名称:名称或服务未知
有:ssh:无法解析主机名具有:名称或服务未知
可能:ssh:无法解析主机名可能:名称或服务未知
您:ssh :无法解析主机名您:名称或服务未知
已加载:ssh:无法解析主机名已加载:名称或服务未知
服务器:ssh:无法解析主机名服务器:名称或服务未知
HotSpot(TM):ssh:无法解析主机名HotSpot(TM):名称或服务未知
有:ssh:无法解析主机名具有:名称或服务未知
64位:ssh:无法解析主机名64位:名称或服务未知
VM:ssh:无法解析主机名VM:名称或服务未知
disabled:ssh:无法解析主机名禁用:名称或服务未知
VM:ssh:无法解析主机名VM:名称或服务未知
堆栈:ssh:无法解析主机名堆栈:名称或服务未知
:ssh:无法解析主机名称:名称或服务未知
修复:ssh:无法解析主机名称修复:名称或服务未知
try:ssh:无法解析主机名称:名称或服务不知道
guard:ssh:无法解析主机名警卫:名称或服务未知
to:ssh:无法将主机名解析为:名称或服务未知
现在:ssh :现在无法解析主机名:名称或服务未知
将:ssh:无法解析主机名将:名称或服务未知
:ssh:无法解析主机名:名称或服务未知
堆栈:ssh:无法解析主机名堆栈:名称或服务未知
:ssh:无法解析主机名:名称或服务未知
:ssh:可能未解析主机名您:名称或服务未知
-c:未知密码类型'cd'
guard:ssh:无法解析主机名守卫:名称或服务未知
它是:ssh:无法解析主机名它是:名称或服务未知
高度:ssh:无法高度解析主机名:名称或服务未知
修正:ssh:无法解析主机名修复:名称或服务未知$推荐使用b $ b:ssh:无法解析推荐的主机名称:名称或服务未知
或:ssh:无法解析主机名或:名称或服务未知
:ssh:无法解析主机名:名称或服务未知
库:ssh:无法解析主机名称库:名称或服务未知
链接:ssh:无法解析主机名链接:名称或服务未知
'execstack:ssh:无法解析主机名'execstack:名称或服务未知
with:ssh:无法解析主机名:名称或服务未知
< libfile>',:ssh:无法解析主机名< libfile>',:名称或服务未知
it:ssh:无法解析主机名it:名称或服务未知
noexecstack' 。:ssh:无法解析主机名noexecstack':名称或服务未知
with:ssh:无法解析主机名:名称或服务未知
'-z:ssh:无法解析主机名'-z:名称或服务未知
localhost:启动namenode,记录到/usr/local/hadoop-2.2.0/logs/hadoop-rushi-namenode-ubuntu.out
localhost:启动datanode ,记录到/usr/local/hadoop-2.2.0/logs/hadoop-rushi-datanode-ubuntu.out
启动辅助名称节点[Java HotSpot(TM)64位服务器VM警告:您已经加载了库/ USR /本地/ Hadoop的2.2.0 /lib/native/libhadoop.so.1.0.0这可能会禁用堆栈后卫。虚拟机现在会尝试修复堆栈后卫。
强烈建议您使用'execstack -c< libfile>'来修复库,或者将它与'-z noexecstack'链接起来。
0.0.0.0

]

可能是什么问题以及如何解决它?
请帮助我

解决方案

这与此链接。它只是被问到其他方式



在遵循此链接后,仍然有机会获得警告

  WARN util.NativeCodeLoader:无法为您的平台加载native-hadoop库...在适用的情况下使用builtin-java类

解决此警告后此链接


My aim is to run hadoop 2.2.0 on Ubuntu 12.4 . i was able to do it but when i run following command: rushi@ubuntu:/usr/local/hadoop$ sbin/start-dfs.sh

my dfs is starting namenode, scondarynamenode and also datanode but the problem is i am getting following Warning

rushi@ubuntu:/usr/local/hadoop$ sbin/start-dfs.sh    
14/01/24 12:05:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
    It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
    localhost]
    sed: -e expression #1, char 6: unknown option to `s'
    Java: ssh: Could not resolve hostname Java: Name or service not known
    library: ssh: Could not resolve hostname library: Name or service not known
    warning:: ssh: Could not resolve hostname warning:: Name or service not known
    which: ssh: Could not resolve hostname which: Name or service not known
    have: ssh: Could not resolve hostname have: Name or service not known
    might: ssh: Could not resolve hostname might: Name or service not known
    You: ssh: Could not resolve hostname You: Name or service not known
    loaded: ssh: Could not resolve hostname loaded: Name or service not known
    Server: ssh: Could not resolve hostname Server: Name or service not known
    HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
    have: ssh: Could not resolve hostname have: Name or service not known
    64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
    VM: ssh: Could not resolve hostname VM: Name or service not known
    disabled: ssh: Could not resolve hostname disabled: Name or service not known
    VM: ssh: Could not resolve hostname VM: Name or service not known
    stack: ssh: Could not resolve hostname stack: Name or service not known
    The: ssh: Could not resolve hostname The: Name or service not known
    fix: ssh: Could not resolve hostname fix: Name or service not known
    try: ssh: Could not resolve hostname try: Name or service not known
    guard.: ssh: Could not resolve hostname guard.: Name or service not known
    to: ssh: Could not resolve hostname to: Name or service not known
    now.: ssh: Could not resolve hostname now.: Name or service not known
    will: ssh: Could not resolve hostname will: Name or service not known
    that: ssh: Could not resolve hostname that: Name or service not known
    stack: ssh: Could not resolve hostname stack: Name or service not known
    the: ssh: Could not resolve hostname the: Name or service not known
    you: ssh: Could not resolve hostname you: Name or service not known
    -c: Unknown cipher type 'cd'
    guard: ssh: Could not resolve hostname guard: Name or service not known
    It's: ssh: Could not resolve hostname It's: Name or service not known
    highly: ssh: Could not resolve hostname highly: Name or service not known
    fix: ssh: Could not resolve hostname fix: Name or service not known
    recommended: ssh: Could not resolve hostname recommended: Name or service not known
    or: ssh: Could not resolve hostname or: Name or service not known
    the: ssh: Could not resolve hostname the: Name or service not known
    library: ssh: Could not resolve hostname library: Name or service not known
    link: ssh: Could not resolve hostname link: Name or service not known
    'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
    with: ssh: Could not resolve hostname with: Name or service not known
    <libfile>',: ssh: Could not resolve hostname <libfile>',: Name or service not known
    it: ssh: Could not resolve hostname it: Name or service not known
    noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
    with: ssh: Could not resolve hostname with: Name or service not known
    '-z: ssh: Could not resolve hostname '-z: Name or service not known
    localhost: starting namenode, logging to /usr/local/hadoop-2.2.0/logs/hadoop-rushi-namenode-ubuntu.out
    localhost: starting datanode, logging to /usr/local/hadoop-2.2.0/logs/hadoop-rushi-datanode-ubuntu.out
    Starting secondary namenodes [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
    It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
    0.0.0.0

]

What may be the problem and how to solve it? Please help me

解决方案

This is same questions as given in this link. It was just asked in other way round

After following this link still there is chance of getting following Warning

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

to resolve this warning follow this link

这篇关于Hadoop 2.2.0:“名称或服务未知”警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆