?You have loaded library /usr/local/hdfs/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 错误。
我的错误提示:
class="java">hduser@ubuntu:/usr/local/hdfs/hadoop-2.2.0/etc/hadoop$ start-dfs.sh 14/10/19 23:16:20 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/hdfs/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'. master.Hadoop] sed: -e expression #1, char 6: unknown option to `s' -c: Unknown cipher type 'cd' The authenticity of host 'master.hadoop (192.168.0.100)' can't be established. ECDSA key fingerprint is e9:54:fe:7f:10:ed:31:0b:f0:34:cb:59:87:9a:06:d4. Are you sure you want to continue connecting (yes/no)? The authenticity of host '64-bit (202.106.199.36)' can't be established. RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b. Are you sure you want to continue connecting (yes/no)? The authenticity of host 'you (202.106.199.36)' can't be established. RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b. Are you sure you want to continue connecting (yes/no)? The authenticity of host 'have (202.106.199.36)' can't be established. RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b. Are you sure you want to continue connecting (yes/no)? ^C64-Bit: Host key verification failed. master.Hadoop: Host key verification failed. have: Host key verification failed. You: Host key verification failed. hduser@ubuntu:/usr/local/hdfs/hadoop-2.2.0/etc/hadoop$ The authenticity of host 'guard. (202.106.199.36)' can't be established. RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b. Are you sure you want to continue connecting (yes/no)? guard.: Host key verification failed. The authenticity of host 'guard (202.106.199.36)' can't be established. RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b. Are you sure you want to continue connecting (yes/no)? guard: Host key verification failed. now.: ssh: Could not resolve hostname now.: Name or service not known noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
?最后在github上找到解决方案。
最后因为环境变量的问题。后面两个链接也挺不错。
You add a variable on hadoop-env.sh and yarn-env.sh.
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
And.. starting!!
$ start-all.sh
Thanks. :D
Reference
http://www.yongbok.net/blog/how-to-install-hadoop-2-2-0-pseudo-distributed-mode
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/NativeLibraries.html
?