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
加入:
- export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
修改: export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
时间: 2024-10-28 19:05:12