hdfs-site.xml配置详解

<configuration>
<property>
        <name>dfs.replication</name>
        <value>2</value>
        <description>设置副本数</description>
</property>

<property>
   <name>dfs.namenode.name.dir</name>
   <value>file:///root/BigData/hadoop-3.0.0/hdfs/name</value>
   <description>设置存放NameNode的文件路径</description>
</property>

<property>
   <name>dfs.datanode.data.dir</name>
   <value>file:///root/BigData/hadoop-3.0.0/hdfs/data</value>
  <description>设置存放DataNode的文件路径</description>
</property>

<property>
    <name>dfs.permissions</name>
    <value>false</value>
    <description>权限还是不要的好</description>
</property>

<property>
    <name>dfs.secondary.http.address</name>
    <value>master:50070</value>
 <description>SNN路径</description>
</property>
  
</configuration>
    原文作者:冰冰大象
    原文地址: https://www.jianshu.com/p/6a6663a2278c
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞