上一篇記錄了本機(jī)模式我虛擬分布模式。
http://www.tkk7.com/chenlb/archive/2008/08/11/221311.html
現(xiàn)我在虛擬機(jī)里開三臺(tái)機(jī)子,分別命名為:master(172.16.249.210),slave-1(172.16.249.211),slave-2(172.16.249.212)。
master可以無密碼登錄到slave機(jī)。
每臺(tái)機(jī)子都匹配ip對(duì)應(yīng)名。
127.0.0.1 localhost localhost
172.16.249.210 master
172.16.249.211 slave-1
172.16.249.212 slave-2
修改conf/masters文件和conf/slaves文件。
conf/masters文件:
master
conf/slaves文件:
slave-1
slave-2
格式化后可以啟動(dòng)了:
[chenlb@master hadoop-0.17.1]$ bin/start-all.sh
參考資料:
http://hadoop.apache.org/core/docs/r0.17.1/quickstart.html
http://hadoop.apache.org/core/docs/r0.17.1/cluster_setup.html
posted on 2008-08-11 15:45
流浪汗 閱讀(798)
評(píng)論(0) 編輯 收藏 所屬分類:
Lucene