• hdfs://192.168.30.149:9004  

[root@localhostconf]# vim hdfs-site.xml

 

 
  1. dfs.replication  
  2. 2  

[root@localhostconf]# vim masters 

 

 
  1. hadoop149   

 

[root@localhostconf]# vim slaves 

 

 
  1. hadoop150  
  2. hadoop148  

 

一共编辑了5个文件,具体意义代表什么,之后会讲到

这里注意要被指/etc/hosts文件,如下(192.168.30.149):

         [root@localhostconf]# vim /etc/hosts

 
  1. # Do not removethe following line, or various programs  
  2. # that requirenetwork functionality will fail.  
  3. 127.0.0.1               localhost.localdomain localhost  
  4. ::1             localhost6.localdomain6 localhost6  
  5.           
  6. 192.168.30.149hadoop149  
  7. 192.168.30.150hadoop150  
  8. 192.168.30.148hadoop148   
     


相关内容