伪分布模式安装步骤概述:
1. 修改ip
2. 修改hostname
3. 关闭防火墙
4. 设置ssh自动登录
5. 安装jdk
6. 安装hadoop
伪分布模式安装详细步骤:
【直接使用root用户登陆】,不要通过su root方式,因为通过这种方式有些操作不一定有权限。
1.设置静态ip
在centos桌面右上角的图标上,右键修改。
执行命令 service network restart 重启网卡
验证:执行命令 ifconfig
2.修改主机名
修改当前会话中的主机名,执行命令hostname hadoop
修改配置中文件中的主机名, vi /etc/sysconfig/network
验证:重启机器 reboot
3.把hostname和ip绑定
执行命令 vi /etc/hosts 增加一行内容,如下
192.168.80.100 hadoop
保存退出
验证:ping hadoop
4.关闭防火墙
执行命令: service iptables stop
验证:service iptables status
5.关闭防火墙自动运行
执行命令:chkconfig iptables off
验证:chkconfig --list | grep iptables
6.SSH(secure shell)的免密码登录
<1>执行命令 ssh-keygen -t rsa 产生