问题1:hadoop2.7.3部署警告: Unable to load native-hadoop library for your platform
解决办法:
1.编辑hadoop-env.sh
dream361@ubuntu:~$ vim /usr/local/hadoop/etc/hadoop/hadoop-env.sh
2.修改HADOOP_OPTS:
# Extra Java runtime options. Empty by default. #export HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv4Stack=true" export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib:$HADOOP_PREFIX/lib/native"
问题2:The authenticity of host ‘0.0.0.0 (0.0.0.0)’ can’t be established.(错误)
解决办法:关闭防火墙
dream361@ubuntu:~$ sudo ufw disable
问题3:DEPRECATED: Use of this script to execute hdfs command is deprecated
分析:当前使用的hadoop 将hadoop命令切换为hdfs
例如查看目录命令
dream361@ubuntu:~$ hadoop dfs -ls /