码迷,mamicode.com
首页 > 其他好文 > 详细

datanode集群新加硬盘

时间:2015-03-11 14:23:44      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

将硬盘挂载到指定目录,如/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>

 

重启集群

datanode集群新加硬盘

标签:

原文地址:http://www.cnblogs.com/qhg1/p/4329701.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!