本人最近在学习Hadoop, 使用的版本为2.5.2,目前已经在Linux环境下搭建好了。
但是现在在hadoop中建立上传文件目录时,碰到如下问题:
在/hadoop-2.5.2/bin下执行: ./hdfs dfs -mkdir -p ~/hdfile
之后报出错误提示信息:
Java HotSpot(TM) Client VM warning: You have loaded library /home/wluser/hadoop-2.5.2/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 ', or link it with '-z noexecstack'.
15/08/06 00:49:06 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
之后发现,我安装的是64位的hadoop,与32位的linux系统环境相冲突,导致在执行命令时无法加载hadoop的native library。
请问我是应该重装64位的linux系统,还是应该重新编译64位的hadoop去32位?或者有没有其他更好的解决方法?