云计算课程实验
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

119 Zeilen
3.3 KiB

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <configuration>
  3. <property>
  4. <name>dfs.replication</name>
  5. <value>3</value>
  6. </property>
  7. <property>
  8. <name>dfs.name.dir</name>
  9. <value>/data/dfs/nn</value>
  10. </property>
  11. <property>
  12. <name>dfs.data.dir</name>
  13. <value>/data/dfs/dn</value>
  14. </property>
  15. <property>
  16. <name>dfs.nameservices</name>
  17. <value>Ucluster</value>
  18. </property>
  19. <property>
  20. <name>dfs.ha.namenodes.Ucluster</name>
  21. <value>nn1,nn2</value>
  22. </property>
  23. <property>
  24. <name>dfs.namenode.rpc-address.Ucluster.nn1</name>
  25. <value>uhadoop-ia1nlbku-master1:8020</value>
  26. </property>
  27. <property>
  28. <name>dfs.namenode.rpc-address.Ucluster.nn2</name>
  29. <value>uhadoop-ia1nlbku-master2:8020</value>
  30. </property>
  31. <property>
  32. <name>dfs.namenode.http-address.Ucluster.nn1</name>
  33. <value>uhadoop-ia1nlbku-master1:50070</value>
  34. </property>
  35. <property>
  36. <name>dfs.namenode.http-address.Ucluster.nn2</name>
  37. <value>uhadoop-ia1nlbku-master2:50070</value>
  38. </property>
  39. <property>
  40. <name>dfs.namenode.shared.edits.dir</name>
  41. <value>qjournal://uhadoop-ia1nlbku-master1:8485;uhadoop-ia1nlbku-master2:8485;uhadoop-ia1nlbku-core1:8485/Ucluster</value>
  42. </property>
  43. <property>
  44. <name>dfs.journalnode.edits.dir</name>
  45. <value>/data/dfs/jn</value>
  46. </property>
  47. <property>
  48. <name>dfs.client.failover.proxy.provider.Ucluster</name>
  49. <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
  50. </property>
  51. <property>
  52. <name>dfs.ha.fencing.methods</name>
  53. <value>sshfence(hadoop:22)</value>
  54. </property>
  55. <property>
  56. <name>dfs.ha.fencing.ssh.connect-timeout</name>
  57. <value>30000</value>
  58. <description>SSH connection timeout, in milliseconds, to use with the builtin shfence fencer. </description>
  59. </property>
  60. <property>
  61. <name>dfs.ha.fencing.ssh.private-key-files</name>
  62. <value>/home/hadoop/conf/id_rsa</value>
  63. </property>
  64. <property>
  65. <name>dfs.ha.automatic-failover.enabled</name>
  66. <value>true</value>
  67. </property>
  68. <property>
  69. <name>dfs.datanode.max.xcievers</name>
  70. <value>4096</value>
  71. </property>
  72. <property>
  73. <name>dfs.webhdfs.enabled</name>
  74. <value>true</value>
  75. </property>
  76. <property>
  77. <name>dfs.namenode.heartbeat.recheck-interval</name>
  78. <value>45000</value>
  79. </property>
  80. <property>
  81. <name>fs.trash.interval</name>
  82. <value>7320</value>
  83. </property>
  84. <property>
  85. <name>dfs.datanode.max.transfer.threads</name>
  86. <value>8192</value>
  87. </property>
  88. <property>
  89. <name>dfs.image.compress</name>
  90. <value>true</value>
  91. </property>
  92. <property>
  93. <name>dfs.namenode.num.checkpoints.retained</name>
  94. <value>12</value>
  95. </property>
  96. <property>
  97. <name>dfs.datanode.handler.count</name>
  98. <value>20</value>
  99. </property>
  100. <property>
  101. <name>dfs.namenode.handler.count</name>
  102. <value>20</value>
  103. </property>
  104. <property>
  105. <name>dfs.socket.timeout</name>
  106. <value>900000</value>
  107. </property>
  108. <property>
  109. <name>dfs.hosts.exclude</name>
  110. <value>/home/hadoop/conf/excludes</value>
  111. </property>
  112. <property>
  113. <name>dfs.client.read.shortcircuit</name>
  114. <value>true</value>
  115. </property>
  116. <property>
  117. <name>dfs.domain.socket.path</name>
  118. <value>/var/lib/hadoop-hdfs/dn_socket</value>
  119. </property>
  120. </configuration>