Hadoop集群搭建(1)(2)
hdfs://192.168.30.149:9004
[root@localhostconf]# vim hdfs-site.xml
dfs.replication 2
[root@localhostconf]# vim masters
- hadoop149
[root@localhostconf]# vim slaves
- hadoop150
- hadoop148
一共编辑了5个文件,具体意义代表什么,之后会讲到
这里注意要被指/etc/hosts文件,如下(192.168.30.149):
[root@localhostconf]# vim /etc/hosts
- # Do not removethe following line, or various programs
- # that requirenetwork functionality will fail.
- 127.0.0.1 localhost.localdomain localhost
- ::1 localhost6.localdomain6 localhost6
- 192.168.30.149hadoop149
- 192.168.30.150hadoop150
- 192.168.30.148hadoop148
评论暂时关闭