hdfs-site.xml配置参考

<property>
    <name>dfs.nameservices</name>
    <value>EDPI</value>
  </property>
  <property>
    <name>dfs.ha.namenodes.EDPI</name>
    <value>nna,nns</value>
  </property>
  <property>
    <name>dfs.namenode.rpc-address.EDPI.nna</name>
    <value>RSLog001:8020</value>
  </property>
  <property>
    <name>dfs.namenode.rpc-address.EDPI.nns</name>
    <value>RSLog002:8020</value>
  </property>
  <property>
    <name>dfs.namenode.http-address.EDPI.nna</name>
    <value>RSLog001:50070</value>
  </property>
  <property>
    <name>dfs.namenode.http-address.EDPI.nns</name>
    <value>RSLog002:50070</value>
  </property>
  <property>
    <name>dfs.namenode.shared.edits.dir</name>
    <value>qjournal://RSLog001:8485;RSLog002:8485;RSLog003:8485/EDPI</value>
  </property>
  <property>
    <name>dfs.journalnode.edits.dir</name>
    <value>/data1/hadoop/data/dfs/jn</value>
  </property>
  <property>
    <name>dfs.client.failover.proxy.provider.EDPI</name>
    <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
  </property>
  <property>
    <name>dfs.ha.fencing.methods</name>
    <value>
          sshfence
          shell(/bin/true)
    </value>
  </property>
  <property>
    <name>dfs.ha.fencing.ssh.private-key-files</name>
    <value>/home/deployer/.ssh/id_rsa</value>
  </property>
  <property>
    <name>dfs.ha.automatic-failover.enabled</name>
    <value>true</value>
  </property>
   <property>
        <name>dfs.namenode.name.dir</name>
        <value>/data1/hadoop/data/dfs/nn</value>
    </property>
    <property>
        <name>dfs.datanode.data.dir</name>
        <value>file:/data2/hadoop/data/dn,/data11/hadoop/data/dn,/data12/hadoop/data/dn
        </value>
    </property>

   <property>
        <name>dfs.replication</name>
        <value>3</value>
    </property>
    <property>
        <name>dfs.webhdfs.enabled</name>
        <value>true</value>
    </property>

    <property>
        <name>dfs.journalnode.http-address</name>
        <value>0.0.0.0:8480</value>
    </property>
    <property>
        <name>dfs.journalnode.rpc-address</name>
        <value>0.0.0.0:8485</value>
    </property>
    <property>
    <name>ha.zookeeper.quorum</name>
        <value>RSLog001:2181,RSLog002:2181,RSLog003:2181,RSLog004:2181,RSLog005:2181</value>
    </property>
    <property>  
        <name>dfs.permissions.enabled</name>  
        <value>true</value>  
    </property>  
    <property>  
        <name>dfs.namenode.acls.enabled</name>  
        <value>true</value>  
    </property>
    <property>
        <name>dfs.datanode.max.transfer.threads</name>
        <value>10240</value>
    </property>
    <property>
        <name>dfs.client.socket-timeout</name>
        <value>1800000</value>
    </property>
 <property>
        <name>dfs.datanode.handler.count</name>
        <value>50</value>
    </property>
<property>
    <name>dfs.datanode.balance.bandwidthPerSec</name>
    <value>512m</value>
</property>
</configuration>

 

posted @ 2019-07-10 16:32  北漂-boy  阅读(319)  评论(0编辑  收藏  举报