经过不同的尝试,在仍然有warn的情况下,我重新hadoop namenode -format。然后重启hadoop,最后成功!
[mw_shl_code=bash,true]
[hadoop@master ~]$ jps
16785 ResourceManager
16628 SecondaryNameNode
17685 Jps
16431 NameNode
[/mw_shl_code]
[mw_shl_code=bash,true]
[hadoop@slave native]$ jps
3113 DataNode
3228 NodeManager
4029 Jps
[/mw_shl_code]
1.虽然说是成功,能正常运行。但是在启动或者执行hadoop命令的时候都会有warn,但是不影响。
[mw_shl_code=bash,true]
[hadoop@master ~]$ hadoop dfs -ls /
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Java HotSpot(TM) Server VM warning: You have loaded library /home/hadoop/hadoop-2.7.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'.
15/07/08 00:04:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Found 1 items
drwxr-xr-x - hadoop supergroup 0 2015-07-07 23:58 /user
[/mw_shl_code]
2.还有一点我不是很明白,用file命令查看libhadoop.so.1.0.0显示的是64位(本机CentOS 32位)。这难道就是warn的原因?
[mw_shl_code=bash,true]
[hadoop@master ~]$ file ~/hadoop-2.7.0/lib/native/libhadoop.so.1.0.0
/home/hadoop/hadoop-2.7.0/lib/native/libhadoop.so.1.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
[/mw_shl_code]
|