安装hadoop2.2.0

一、安装JDK

二、设置SSH免密码登陆:

ssh-keygen -t  rsa 之后一路回 车(产生秘钥),位于~/.ssh文件夹中

cd ~

cd .ssh

cp id_rsa.pub authorized_keys

验证:ssh localhost

[root@localhost .ssh]# ssh localhost

The authenticity of host 'localhost (127.0.0.1)' can't be established.

RSA key fingerprint is ec:73:0d:e8:60:7c:43:e7:cd:f8:c6:05:cd:96:71:53.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'localhost' (RSA) to the list of known hosts.

Last login: Mon Aug  4 09:18:39 2014 from 192.168.230.1

[root@localhost ~]# 

如果不行:service sshd restart重启SSH

三、修改hostname

1.关闭sendmail服务,不然修改完hostname重启系统会一直卡住

(1).service sendmail stop (或 /etc/rc.d/init.d/sendmail stop) 停止服务

(2)chkconfig --list sendmail (可以查看到sendmail在2,3,4,5时是自动启动的,而一般的系统设置为3, 因此每次启动时sendmail还是会自动启动。)

(3)系统启动时不启动sendmail:chkconfig --level 2345 sendmail off 关闭其端口,这样就关闭了这个服务。

2.修改物理地址:

(1).service network restart   会提示:

Shutting down interface eth0:  Device eth0 has MAC address 00:0C:29:39:63:E2, 

instead of configured address 00:0C:29:FC:3A:09. Ignoring.

(2).vi /etc/sysconfig/network-scripts/ifcfg-eth0

HWADDR=00:0C:29:39:63:E2

保存退出再 service network restart 一切正常

3.修改hostname

(1).vi /etc/sysconfig/network

HOSTNAME=hadoop0

(2).vi /etc/hosts

192.168.230.132         hadoop0

(3).重启网络:service network restart

4.系统重启 reboot

启动后输入hostname 就会显示 hadoop0了

 

 

四、关闭防火墙

service iptables stop;

chkconfig iptables off;

猜你喜欢

转载自yjf565111293.iteye.com/blog/2100263
今日推荐