hdfs-rbf-default.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <!-- Do not modify this file directly. Instead, copy entries that you -->
  18. <!-- wish to modify from this file into hdfs-site.xml and change them -->
  19. <!-- there. If hdfs-site.xml does not already exist, create it. -->
  20. <configuration>
  21. <property>
  22. <name>dfs.federation.router.default.nameserviceId</name>
  23. <value></value>
  24. <description>
  25. Nameservice identifier of the default subcluster to monitor.
  26. </description>
  27. </property>
  28. <property>
  29. <name>dfs.federation.router.rpc.enable</name>
  30. <value>true</value>
  31. <description>
  32. If true, the RPC service to handle client requests in the router is
  33. enabled.
  34. </description>
  35. </property>
  36. <property>
  37. <name>dfs.federation.router.rpc-address</name>
  38. <value>0.0.0.0:8888</value>
  39. <description>
  40. RPC address that handles all clients requests.
  41. The value of this property will take the form of router-host1:rpc-port.
  42. </description>
  43. </property>
  44. <property>
  45. <name>dfs.federation.router.rpc-bind-host</name>
  46. <value></value>
  47. <description>
  48. The actual address the RPC server will bind to. If this optional address is
  49. set, it overrides only the hostname portion of
  50. dfs.federation.router.rpc-address. This is useful for making the name node
  51. listen on all interfaces by setting it to 0.0.0.0.
  52. </description>
  53. </property>
  54. <property>
  55. <name>dfs.federation.router.handler.count</name>
  56. <value>10</value>
  57. <description>
  58. The number of server threads for the router to handle RPC requests from
  59. clients.
  60. </description>
  61. </property>
  62. <property>
  63. <name>dfs.federation.router.handler.queue.size</name>
  64. <value>100</value>
  65. <description>
  66. The size of the queue for the number of handlers to handle RPC client requests.
  67. </description>
  68. </property>
  69. <property>
  70. <name>dfs.federation.router.reader.count</name>
  71. <value>1</value>
  72. <description>
  73. The number of readers for the router to handle RPC client requests.
  74. </description>
  75. </property>
  76. <property>
  77. <name>dfs.federation.router.reader.queue.size</name>
  78. <value>100</value>
  79. <description>
  80. The size of the queue for the number of readers for the router to handle RPC client requests.
  81. </description>
  82. </property>
  83. <property>
  84. <name>dfs.federation.router.connection.pool-size</name>
  85. <value>1</value>
  86. <description>
  87. Size of the pool of connections from the router to namenodes.
  88. </description>
  89. </property>
  90. <property>
  91. <name>dfs.federation.router.connection.clean.ms</name>
  92. <value>10000</value>
  93. <description>
  94. Time interval, in milliseconds, to check if the connection pool should
  95. remove unused connections.
  96. </description>
  97. </property>
  98. <property>
  99. <name>dfs.federation.router.connection.pool.clean.ms</name>
  100. <value>60000</value>
  101. <description>
  102. Time interval, in milliseconds, to check if the connection manager should
  103. remove unused connection pools.
  104. </description>
  105. </property>
  106. <property>
  107. <name>dfs.federation.router.metrics.enable</name>
  108. <value>true</value>
  109. <description>
  110. If the metrics in the router are enabled.
  111. </description>
  112. </property>
  113. <property>
  114. <name>dfs.federation.router.metrics.class</name>
  115. <value>org.apache.hadoop.hdfs.server.federation.metrics.FederationRPCPerformanceMonitor</value>
  116. <description>
  117. Class to monitor the RPC system in the router. It must implement the
  118. RouterRpcMonitor interface.
  119. </description>
  120. </property>
  121. <property>
  122. <name>dfs.federation.router.admin.enable</name>
  123. <value>true</value>
  124. <description>
  125. If true, the RPC admin service to handle client requests in the router is
  126. enabled.
  127. </description>
  128. </property>
  129. <property>
  130. <name>dfs.federation.router.admin-address</name>
  131. <value>0.0.0.0:8111</value>
  132. <description>
  133. RPC address that handles the admin requests.
  134. The value of this property will take the form of router-host1:rpc-port.
  135. </description>
  136. </property>
  137. <property>
  138. <name>dfs.federation.router.admin-bind-host</name>
  139. <value></value>
  140. <description>
  141. The actual address the RPC admin server will bind to. If this optional
  142. address is set, it overrides only the hostname portion of
  143. dfs.federation.router.admin-address. This is useful for making the name
  144. node listen on all interfaces by setting it to 0.0.0.0.
  145. </description>
  146. </property>
  147. <property>
  148. <name>dfs.federation.router.admin.handler.count</name>
  149. <value>1</value>
  150. <description>
  151. The number of server threads for the router to handle RPC requests from
  152. admin.
  153. </description>
  154. </property>
  155. <property>
  156. <name>dfs.federation.router.http-address</name>
  157. <value>0.0.0.0:50071</value>
  158. <description>
  159. HTTP address that handles the web requests to the Router.
  160. The value of this property will take the form of router-host1:http-port.
  161. </description>
  162. </property>
  163. <property>
  164. <name>dfs.federation.router.http-bind-host</name>
  165. <value></value>
  166. <description>
  167. The actual address the HTTP server will bind to. If this optional
  168. address is set, it overrides only the hostname portion of
  169. dfs.federation.router.http-address. This is useful for making the name
  170. node listen on all interfaces by setting it to 0.0.0.0.
  171. </description>
  172. </property>
  173. <property>
  174. <name>dfs.federation.router.https-address</name>
  175. <value>0.0.0.0:50072</value>
  176. <description>
  177. HTTPS address that handles the web requests to the Router.
  178. The value of this property will take the form of router-host1:https-port.
  179. </description>
  180. </property>
  181. <property>
  182. <name>dfs.federation.router.https-bind-host</name>
  183. <value></value>
  184. <description>
  185. The actual address the HTTPS server will bind to. If this optional
  186. address is set, it overrides only the hostname portion of
  187. dfs.federation.router.https-address. This is useful for making the name
  188. node listen on all interfaces by setting it to 0.0.0.0.
  189. </description>
  190. </property>
  191. <property>
  192. <name>dfs.federation.router.http.enable</name>
  193. <value>true</value>
  194. <description>
  195. If the HTTP service to handle client requests in the router is enabled.
  196. </description>
  197. </property>
  198. <property>
  199. <name>dfs.federation.router.metrics.enable</name>
  200. <value>true</value>
  201. <description>
  202. If the metrics service in the router is enabled.
  203. </description>
  204. </property>
  205. <property>
  206. <name>dfs.federation.router.file.resolver.client.class</name>
  207. <value>org.apache.hadoop.hdfs.server.federation.resolver.MountTableResolver</value>
  208. <description>
  209. Class to resolve files to subclusters.
  210. </description>
  211. </property>
  212. <property>
  213. <name>dfs.federation.router.namenode.resolver.client.class</name>
  214. <value>org.apache.hadoop.hdfs.server.federation.resolver.MembershipNamenodeResolver</value>
  215. <description>
  216. Class to resolve the namenode for a subcluster.
  217. </description>
  218. </property>
  219. <property>
  220. <name>dfs.federation.router.store.enable</name>
  221. <value>true</value>
  222. <description>
  223. If true, the Router connects to the State Store.
  224. </description>
  225. </property>
  226. <property>
  227. <name>dfs.federation.router.store.serializer</name>
  228. <value>org.apache.hadoop.hdfs.server.federation.store.driver.impl.StateStoreSerializerPBImpl</value>
  229. <description>
  230. Class to serialize State Store records.
  231. </description>
  232. </property>
  233. <property>
  234. <name>dfs.federation.router.store.driver.class</name>
  235. <value>org.apache.hadoop.hdfs.server.federation.store.driver.impl.StateStoreZooKeeperImpl</value>
  236. <description>
  237. Class to implement the State Store. There are three implementation classes currently
  238. being supported:
  239. org.apache.hadoop.hdfs.server.federation.store.driver.impl.StateStoreFileImpl,
  240. org.apache.hadoop.hdfs.server.federation.store.driver.impl.StateStoreFileSystemImpl and
  241. org.apache.hadoop.hdfs.server.federation.store.driver.impl.StateStoreZooKeeperImpl.
  242. These implementation classes use the local file, filesystem and ZooKeeper as a backend respectively.
  243. By default it uses the ZooKeeper as the default State Store.
  244. </description>
  245. </property>
  246. <property>
  247. <name>dfs.federation.router.store.connection.test</name>
  248. <value>60000</value>
  249. <description>
  250. How often to check for the connection to the State Store in milliseconds.
  251. </description>
  252. </property>
  253. <property>
  254. <name>dfs.federation.router.cache.ttl</name>
  255. <value>1m</value>
  256. <description>
  257. How often to refresh the State Store caches in milliseconds. This setting
  258. supports multiple time unit suffixes as described in
  259. dfs.heartbeat.interval. If no suffix is specified then milliseconds is
  260. assumed.
  261. </description>
  262. </property>
  263. <property>
  264. <name>dfs.federation.router.store.membership.expiration</name>
  265. <value>300000</value>
  266. <description>
  267. Expiration time in milliseconds for a membership record.
  268. </description>
  269. </property>
  270. <property>
  271. <name>dfs.federation.router.heartbeat.enable</name>
  272. <value>true</value>
  273. <description>
  274. If true, the Router heartbeats into the State Store.
  275. </description>
  276. </property>
  277. <property>
  278. <name>dfs.federation.router.heartbeat.interval</name>
  279. <value>5000</value>
  280. <description>
  281. How often the Router should heartbeat into the State Store in milliseconds.
  282. </description>
  283. </property>
  284. <property>
  285. <name>dfs.federation.router.heartbeat-state.interval</name>
  286. <value>5s</value>
  287. <description>
  288. How often the Router should heartbeat its state into the State Store in
  289. milliseconds. This setting supports multiple time unit suffixes as
  290. described in dfs.federation.router.quota-cache.update.interval.
  291. </description>
  292. </property>
  293. <property>
  294. <name>dfs.federation.router.store.router.expiration</name>
  295. <value>5m</value>
  296. <description>
  297. Expiration time in milliseconds for a router state record. This setting
  298. supports multiple time unit suffixes as described in
  299. dfs.federation.router.quota-cache.update.interval.
  300. </description>
  301. </property>
  302. <property>
  303. <name>dfs.federation.router.safemode.enable</name>
  304. <value>true</value>
  305. <description>
  306. </description>
  307. </property>
  308. <property>
  309. <name>dfs.federation.router.safemode.extension</name>
  310. <value>30s</value>
  311. <description>
  312. Time after startup that the Router is in safe mode. This setting
  313. supports multiple time unit suffixes as described in
  314. dfs.heartbeat.interval. If no suffix is specified then milliseconds is
  315. assumed.
  316. </description>
  317. </property>
  318. <property>
  319. <name>dfs.federation.router.safemode.expiration</name>
  320. <value>3m</value>
  321. <description>
  322. Time without being able to reach the State Store to enter safe mode. This
  323. setting supports multiple time unit suffixes as described in
  324. dfs.heartbeat.interval. If no suffix is specified then milliseconds is
  325. assumed.
  326. </description>
  327. </property>
  328. <property>
  329. <name>dfs.federation.router.monitor.namenode</name>
  330. <value></value>
  331. <description>
  332. The identifier of the namenodes to monitor and heartbeat.
  333. </description>
  334. </property>
  335. <property>
  336. <name>dfs.federation.router.monitor.localnamenode.enable</name>
  337. <value>true</value>
  338. <description>
  339. If true, the Router should monitor the namenode in the local machine.
  340. </description>
  341. </property>
  342. <property>
  343. <name>dfs.federation.router.mount-table.max-cache-size</name>
  344. <value>10000</value>
  345. <description>
  346. Maximum number of mount table cache entries to have.
  347. By default, remove cache entries if we have more than 10k.
  348. </description>
  349. </property>
  350. <property>
  351. <name>dfs.federation.router.client.thread-size</name>
  352. <value>32</value>
  353. <description>
  354. Max threads size for the RouterClient to execute concurrent
  355. requests.
  356. </description>
  357. </property>
  358. <property>
  359. <name>dfs.federation.router.client.retry.max.attempts</name>
  360. <value>3</value>
  361. <description>
  362. Max retry attempts for the RouterClient talking to the Router.
  363. </description>
  364. </property>
  365. <property>
  366. <name>dfs.federation.router.client.reject.overload</name>
  367. <value>false</value>
  368. <description>
  369. Set to true to reject client requests when we run out of RPC client
  370. threads.
  371. </description>
  372. </property>
  373. </configuration>