windows 安装 hadoop

hdfs-site.xml文件配置
dir配置为file:/hadoop/data/dfs/namenode ok hadoop程序安装在D盘,则在d盘下生成hadoop/data/dfs/namenode文件
dir配置为file:/d:/hadoop/data/dfs/namenode error
<configuration>
  <property>
    <name>dfs.replication</name>
    <value>1</value>
  </property>
  <property>
    <name>dfs.block.size</name>
    <value>134217728</value>
  </property>
  <!--property>
    <name>dfs.data.dir</name>
    <value>file:/hadoop/dfs/data/</value>
  </property-->
  <property>
        <name>dfs.namenode.name.dir</name>
        <value>file:/hadoop/data/dfs/namenode</value>
    </property>
    <property>
        <name>dfs.datanode.data.dir</name>
        <value>file:/hadoop/data/dfs/datanode</value>
    </property>
</configuration>


你可能感兴趣的:(windows 安装 hadoop)