hadoop搭建完毕后启动hadoop弹出ssh警告提示的解决办法

来源:互联网 发布:阿里旺旺软件下载 编辑:程序博客网 时间:2024/06/09 03:18

如下的ssh警告提示

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’

guard.: ssh: Could not resolve hostname guard.: Name or service not known

now.: ssh: Could not resolve hostname now.: Name or service not known

-c: Unknown cipher type ‘cd’

noexecstack’.: ssh: Could not resolve hostname noexecstack’.: Name or service not known

have: ssh: Could not resolve hostname have: Name or service not known

VM: ssh: Could not resolve hostname vm: 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

the: ssh: Could not resolve hostname the: Name or service not known

The: ssh: Could not resolve hostname the: Name or service not known

VM: ssh: Could not resolve hostname vm: Name or service not known


解决方法

在/etc/profile文件后面添加以下,前提是你已经设置了HADOOP_HOME的值哦。

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native

export HADOOP_OPTS=”-Djava.library.path=$HADOOP_HOME/lib”

0 0
原创粉丝点击