场景: 预发环境中,同事已经搭建了一套hadoop集群,由于版本与所需不符,所以需要替换版本
问题描述: 在配置文件都准确的情况下,启动hadoop,出现以下报错:
启动之前初始化: 初始化目录跟配置文件目录不一致
hdfs namenode -format
[root@hdoop2 hadoop-2.8.5]# hadoop dfs -ls /
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.ls: Call From hdoop2/192.168.18.87 to hdoop2:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
[root@hdoop2 hadoop-2.8.5]# jps #namenode没启动
88467 SecondaryNa