hdfs-site.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <configuration>
  3. <property>
  4. <name>dfs.nameservices</name>
  5. <value>nameservice1</value>
  6. </property>
  7. <property>
  8. <name>dfs.ha.namenodes.nameservice1</name>
  9. <value>nn1,nn2</value>
  10. </property>
  11. <property>
  12. <name>dfs.namenode.rpc-address.nameservice1.nn1</name>
  13. <value>tw-node3:8020</value>
  14. </property>
  15. <property>
  16. <name>dfs.namenode.rpc-address.nameservice1.nn2</name>
  17. <value>tw-node1:8020</value>
  18. </property>
  19. <property>
  20. <name>dfs.namenode.http-address.nameservice1.nn1</name>
  21. <value>tw-node3:50070</value>
  22. </property>
  23. <property>
  24. <name>dfs.namenode.http-address.nameservice1.nn2</name>
  25. <value>tw-node1:50070</value>
  26. </property>
  27. <property>
  28. <name>dfs.ha.automatic-failover.enabled.nameservice1</name>
  29. <value>true</value>
  30. </property>
  31. <property>
  32. <name>dfs.namenode.shared.edits.dir.nameservice1</name>
  33. <value>qjournal://tw-node3:8485;tw-node1:8485;tw-node2:8485/nameservice1</value>
  34. </property>
  35. <property>
  36. <name>dfs.client.failover.proxy.provider.nameservice1</name>
  37. <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
  38. </property>
  39. <property>
  40. <name>dfs.ha.automatic-failover.enabled.nameservice1</name>
  41. <value>true</value>
  42. </property>
  43. <property>
  44. <name>dfs.journalnode.rpc-address</name>
  45. <value>0.0.0.0:8485</value>
  46. </property>
  47. <property>
  48. <name>dfs.journalnode.http-address</name>
  49. <value>0.0.0.0:8480</value>
  50. </property>
  51. <property>
  52. <name>dfs.datanode.address</name>
  53. <value>0.0.0.0:50010</value>
  54. </property>
  55. <property>
  56. <name>dfs.datanode.http.address</name>
  57. <value>0.0.0.0:50075</value>
  58. </property>
  59. <property>
  60. <name>dfs.datanode.ipc.address</name>
  61. <value>0.0.0.0:50020</value>
  62. </property>
  63. <property>
  64. <name>dfs.hosts.exclude</name>
  65. <value>/etc/hdfs1/conf/exclude-list.txt</value>
  66. </property>
  67. <property>
  68. <name>dfs.domain.socket.path</name>
  69. <value>/var/run/hdfs1/dn_socket</value>
  70. </property>
  71. <property>
  72. <name>license.zookeeper.quorum</name>
  73. <value>tw-node3:2291,tw-node1:2291,tw-node2:2291</value>
  74. </property>
  75. <property>
  76. <name>dfs.journalnode.edits.dir</name>
  77. <value>/hadoop/journal</value>
  78. </property>
  79. <property>
  80. <name>dfs.permissions.superusergroup</name>
  81. <value>hbase</value>
  82. </property>
  83. <property>
  84. <name>dfs.client.socket-timeout</name>
  85. <value>120000</value>
  86. </property>
  87. <property>
  88. <name>dfs.datanode.data.dir.perm</name>
  89. <value>755</value>
  90. </property>
  91. <property>
  92. <name>dfs.datanode.du.reserved</name>
  93. <value>21464141824</value>
  94. </property>
  95. <property>
  96. <name>dfs.namenode.handler.count</name>
  97. <value>100</value>
  98. </property>
  99. <property>
  100. <name>dfs.namenode.acls.enabled</name>
  101. <value>true</value>
  102. </property>
  103. <property>
  104. <name>dfs.data.transfer.protection</name>
  105. <value>authentication</value>
  106. </property>
  107. <property>
  108. <name>dfs.client.read.shortcircuit</name>
  109. <value>true</value>
  110. </property>
  111. <property>
  112. <name>dfs.namenode.name.dir</name>
  113. <value>/vdir/hadoop/namenode_dir,/vdir/mnt/disk1/hadoop/namenode_dir</value>
  114. </property>
  115. <property>
  116. <name>dfs.datanode.handler.count</name>
  117. <value>30</value>
  118. </property>
  119. <property>
  120. <name>dfs.datanode.failed.volumes.tolerated</name>
  121. <value>0</value>
  122. </property>
  123. <property>
  124. <name>dfs.datanode.data.dir</name>
  125. <value>/vdir/mnt/disk1/hadoop/data</value>
  126. </property>
  127. </configuration>