怎么回事hadoop-2.6.0#bin⼀hadoop namenode

2025-04-04 17:43:17
推荐回答(1个)
回答1:

  1.增加masters文件
  sudo vi masters

这里面放什么内容还是比较关键的,这里我们指定slave1节点上运行SecondaryNameNode。

注意:如果你想单独配置一台机器,那么在这个文件里面,填写这个节点的ip地址或则是hostname,如果是多台,则在masters里面写上多个,一行一个,我们这里指定一个
  slave1
  

2.修改hdfs-site.xml
在下面文件中增加如下内容:(记得下面亦可写成ip地址,这里为了理解方便,写的是hostname)

dfs.http.address
master:50070

The address and the base port where the dfs namenode web ui will listen on.
If the port is 0 then the server will start on a free port.



dfs.namenode.secondary.http-address
slave1:50090


3.修改core-site.xml文件

  

  fs.checkpoint.period

  3600

  The number of seconds between two periodic checkpoints.

  


  


  

  fs.checkpoint.size

  67108864

  


  

上面修改完毕,相应的节点也做同样的修改