Hadoop2.4.0环境搭建常见问题解答(虚拟机,ubuntu系统)
1、如果系统为64位,无法启动启动hdfs: ./sbin/start-dfs.sh。并有以下错误:
sed: -e expression #1, char 6: unknown option to `s'
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
Java: ssh: Could not resolve hostname Java: Name or service not known
Server: ssh: Could not resolve hostname Server: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
解决方法为:
vi etc/hadoop/hadoop-env.sh
加入:
exportHADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
修改:
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
2、常用命令跟之前的2.2.0版本不同,例如:
(1)、格式化namenode
./bin/hadoop namenode -format
(2)、查看系统状态./bin/hadoop dfsadmin -report
3、更友好的界面: