datanode集群新加硬盘

将硬盘挂载到指定目录,如/data

 

在hdfs-site.xml中修改

<property>

  <name>dfs.datanode.data.dir</name>

  <value>file://${hadoop.tmp.dir}/dfs/data,/data</value>

  <description>Determines where on the local filesystem an DFS data node

  should store its blocks.  If this is a comma-delimited

  list of directories, then data will be stored in all named

  directories, typically on different devices.

  Directories that do not exist are ignored.

  </description>

</property>

 

重启集群

posted @ 2015-03-11 13:50  GavinQiu  阅读(290)  评论(0编辑  收藏  举报