执行start-dfs.sh时出现:
:Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hadoop-2.4.0/lib/native/libhadoop.so 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'.
原因是:在官网下载的本地库文件都是32位编译的,我们的系统是64位,所以不能执行本地文件,
解决办法:方法1:换成32位的系统
方法2:从官方下源码,在自己的64位的机器上编译,就可以了(如何编译自己在网上搜(安装JDK和maven,下载源码,编译等过程))