我设置了一个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>
你能告诉我出什么事了吗?
提前致谢!
最佳答案
您需要使用<value>
关闭</value>
标记。
关于hadoop - hadoop-将驱动器添加到现有集群,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28907679/