我是参照的林子雨老师的Hadoop安装教程做的,更详细的操作步骤可见原文:http://dblab.xmu.edu.cn/blog/install-hadoop/
一:安装SSH,配置SSH免密登陆:
集群、单节点模式都需要用到 SSH 登陆(类似于远程登陆,你可以登录某台 Linux 主机,并且在上面运行命令),Ubuntu 默认已安装了 SSH client,此外还需要安装 SSH server:
二.配置java环境:
三:安装Hadoop2:
引用自:http://dblab.xmu.edu.cn/blog/install-hadoop/