hadoop - 将驱动器添加到现有群集

时间:2015-03-06 21:07:50

标签: hadoop cloud hdfs bigdata hadoop-partitioning

我设置了4个节点的hadoop集群,我向每个节点添加了3个驱动器到我的集群。我将3个驱动器安装在其中一个节点(主设备)中,并添加了一个属性dfs.data.dir。如果我这样做,我的datanode无法启动。我应该更改任何其他配置文件吗?

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
<property>
<name>dfs.replication</name>
  <value>4</value>
  <description>Default block replication.
  The actual number of replications can be specified when the file is created.
  The default is used if replication is not specified in create time.
  </description>
</property>
<property>dfs.data.dir</property>
   <value>/app/hadoop/tmp,/media/hd1,/media/hd2,/media/hd3</value>
</property>
</configuration>

你能告诉我出了什么问题吗? 在此先感谢!

1 个答案:

答案 0 :(得分:0)

您需要使用<value>关闭</value>代码。