Hadoop 2.x ๋ฒ์ ํ๊ฒฝ ๊ตฌ์ถ ์ค์ ๋ง๋ ์ค๋ฅ
Hadoop 2.4 ๋ฒ์ ์ ๋ฐ์ ์์ถ์ ํ๊ณ ์ค์ ํ์ผ ๋ด์ฉ์ ์ฑ์ด ํ์ ์์ํ๋ ค ํ์ผ๋ ์๋์ ๊ฐ์ ์ค๋ฅ ๋ฉ์์ง๋ฅผ ์ถ๋ ฅํ๋ฉด์ ๋ ์ด์ ์งํ์ด ๋์ง ์์๋ค.
/opt/hadoop$ sbin/start-all.sh This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh 14/06/17 02:04:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [OpenJDK 64-Bit Server VM warning: You have loaded library /opt/hadoop-2.4.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'. localhost] sed: -e expression #1, char 6: unknown option to `s' 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known OpenJDK: ssh: Could not resolve hostname OpenJDK: Name or service not known warning:: ssh: Could not resolve hostname warning:: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known You: ssh: Could not resolve hostname You: Name or service not known guard.: ssh: Could not resolve hostname guard.: Name or service not known will: ssh: Could not resolve hostname will: Name or service not known try: ssh: Could not resolve hostname try: Name or service not known VM: ssh: Could not resolve hostname VM: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known stack: ssh: Could not resolve hostname stack: Name or service not known might: ssh: Could not resolve hostname might: Name or service not known disabled: ssh: Could not resolve hostname disabled: Name or service not known highly: ssh: Could not resolve hostname highly: Name or service not known the: ssh: Could not resolve hostname the: Name or service not known loaded: ssh: Could not resolve hostname loaded: Name or service not known which: ssh: Could not resolve hostname which: Name or service not known library: ssh: Could not resolve hostname library: Name or service not known ....
Stack Overflow ์์ ์ ๋ฌธ์ ์ ๋ํ ์ง๋ฌธ๊ณผ ๋ต์ ์ฐพ์๋ค.
http://stackoverflow.com/questions/20144371/hadoop-2-2-0-setup-pseudo-distributed-mode-error-warn-util-nativecodeloader?rq=1
ํด๊ฒฐ ๋ฐฉ๋ฒ์ hadoop-env.sh ํ์ผ์ ์๋ ๋ ์ค์ ์ถ๊ฐํ๋ฉด ๋๋ค.
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native export HADOOP_OPTS="${HADOOP_OPTS} -Djava.library.path=$HADOOP_PREFIX/lib"













