ozone-default.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  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 ozone-site.xml and change them -->
  19. <!-- there. If ozone-site.xml does not already exist, create it. -->
  20. <configuration>
  21. <property>
  22. <name>ozone.enabled</name>
  23. <value>false</value>
  24. <description>
  25. Status of the Ozone Object Storage service is enabled.
  26. Set to true to enable Ozone.
  27. Set to false to disable Ozone.
  28. </description>
  29. </property>
  30. <property>
  31. <name>ozone.handler.type</name>
  32. <value>local</value>
  33. <description>
  34. The second key dfs.storage.handler.type tells ozone which storage
  35. handler to use. The possible values are:
  36. distributed - The Ozone distributed storage handler.
  37. local - Local Storage handler strictly for testing.
  38. </description>
  39. </property>
  40. <property>
  41. <name>ozone.localstorage.root</name>
  42. <value>/tmp/ozone</value>
  43. <description>
  44. </description>
  45. </property>
  46. <property>
  47. <name>ozone.trace.enabled</name>
  48. <value>false</value>
  49. <description>
  50. </description>
  51. </property>
  52. <property>
  53. <name>ozone.container.metadata.dirs</name>
  54. <value></value>
  55. <description>
  56. Ozone metadata dir path.
  57. </description>
  58. </property>
  59. <property>
  60. <name>ozone.key.cache.size</name>
  61. <value>1024</value>
  62. <description>
  63. </description>
  64. </property>
  65. <property>
  66. <name>ozone.administrators</name>
  67. <value></value>
  68. <description>
  69. Ozone administrator users delimited by comma.
  70. If not set, only the user who launches an ozone service will be the
  71. admin user. This property must be set if ozone services are started by
  72. different users. Otherwise the RPC layer will reject calls from
  73. other servers which are started by users not in the list.
  74. </description>
  75. </property>
  76. <property>
  77. <name>ozone.client.socket.timeout.ms</name>
  78. <value>5000</value>
  79. <description>
  80. Socket timeout for Ozone client in milliseconds.
  81. </description>
  82. </property>
  83. <property>
  84. <name>ozone.client.connection.timeout.ms</name>
  85. <value>5000</value>
  86. <description>
  87. Connection timeout for Ozone client in milliseconds.
  88. </description>
  89. </property>
  90. <property>
  91. <name>ozone.scm.client.address</name>
  92. <value></value>
  93. <description>
  94. The address of the Ozone SCM client service. This is a required
  95. setting.
  96. It is a string in the host:port format. The port number is optional
  97. and defaults to 9860.
  98. </description>
  99. </property>
  100. <property>
  101. <name>ozone.scm.client.port</name>
  102. <value>9860</value>
  103. <description>
  104. The port number of the Ozone SCM client service.
  105. </description>
  106. </property>
  107. <property>
  108. <name>ozone.scm.datanode.address</name>
  109. <value></value>
  110. <description>
  111. The address of the Ozone SCM service used for internal communication
  112. between the DataNodes and the SCM.
  113. It is a string in the host:port format. The port number is optional
  114. and defaults to 9861.
  115. This setting is optional. If unspecified then the hostname portion
  116. is picked from the ozone.scm.client.address setting and the
  117. default service port of 9861 is chosen.
  118. </description>
  119. </property>
  120. <property>
  121. <name>ozone.scm.datanode.bind.host</name>
  122. <value></value>
  123. <description>
  124. The hostname or IP address used by the SCM service endpoint to bind.
  125. </description>
  126. </property>
  127. <property>
  128. <name>ozone.scm.datanode.port</name>
  129. <value>9861</value>
  130. <description>
  131. The port number of the Ozone SCM service.
  132. </description>
  133. </property>
  134. <property>
  135. <name>ozone.scm.client.bind.host</name>
  136. <value>0.0.0.0</value>
  137. <description>
  138. The hostname or IP address used by the SCM client endpoint to bind.
  139. This setting is used by the SCM only and never used by clients.
  140. The setting can be useful in multi-homed setups to restrict the
  141. availability of the SCM client service to a specific interface.
  142. The default is appropriate for most clusters.
  143. </description>
  144. </property>
  145. <property>
  146. <name>ozone.scm.internal.bind.host</name>
  147. <value>0.0.0.0</value>
  148. <description>
  149. The hostname or IP address used by the SCM DataNode handler service
  150. to bind. This setting is used by the SCM only and never used by
  151. clients or Data Nodes.
  152. The setting can be useful in multi-homed setups to restrict the
  153. availability of the SCM to a specific interface.
  154. The default is appropriate for most clusters.
  155. </description>
  156. </property>
  157. <property>
  158. <name>ozone.scm.block.client.address</name>
  159. <value></value>
  160. <description>
  161. The address of the Ozone SCM block client service.
  162. </description>
  163. </property>
  164. <property>
  165. <name>ozone.scm.block.client.bind.host</name>
  166. <value>0.0.0.0</value>
  167. <description>
  168. The hostname or IP address used by the SCM block client
  169. endpoint to bind.
  170. </description>
  171. </property>
  172. <property>
  173. <name>ozone.scm.block.client.port</name>
  174. <value>9863</value>
  175. <description>
  176. The port number of the Ozone SCM block client service.
  177. </description>
  178. </property>
  179. <property>
  180. <name>ozone.scm.handler.count.key</name>
  181. <value>20</value>
  182. <description>
  183. The number of RPC handler threads for each SCM service endpoint.
  184. The default is appropriate for small clusters (tens of nodes).
  185. </description>
  186. </property>
  187. <property>
  188. <name>ozone.scm.chunk.size</name>
  189. <value>1048576</value>
  190. <description>
  191. The chunk size for read/write chunk operations in bytes.
  192. The chunk size defaults to 1MB. If the value configured is more
  193. than the maximum size (1MB), it will be reset to the maximum
  194. size.
  195. </description>
  196. </property>
  197. <property>
  198. <name>ozone.scm.heartbeat.interval.seconds</name>
  199. <value>30</value>
  200. <description>
  201. The heartbeat interval from a datanode to SCM in seconds.
  202. </description>
  203. </property>
  204. <property>
  205. <name>ozone.scm.stale.node.interval.ms</name>
  206. <value>90000</value>
  207. <description>
  208. The interval in milliseconds for stale node flagging.
  209. </description>
  210. </property>
  211. <property>
  212. <name>ozone.scm.dead.node.interval.ms</name>
  213. <value>600000</value>
  214. <description>
  215. The interval in milliseconds for dead node flagging.
  216. </description>
  217. </property>
  218. <property>
  219. <name>ozone.scm.max.hb.count.to.process</name>
  220. <value>5000</value>
  221. <description>
  222. The maximum number of heartbeat to process per loop of the process
  223. thread.
  224. </description>
  225. </property>
  226. <property>
  227. <name>ozone.scm.heartbeat.thread.interval.ms</name>
  228. <value>3000</value>
  229. <description>
  230. The interval in milliseconds that the heartbeat processor thread runs.
  231. </description>
  232. </property>
  233. <property>
  234. <name>ozone.scm.heartbeat.rpc-timeout</name>
  235. <value>1000</value>
  236. <description>
  237. Timeout value for the RPC from Datanode to SCM in milliseconds.
  238. </description>
  239. </property>
  240. <property>
  241. <name>ozone.scm.heartbeat.log.warn.interval.count</name>
  242. <value>10</value>
  243. <description>
  244. Defines how frequently we will log the missing of heartbeat to SCM.
  245. For example in the default case, we will write a warning message for each 10
  246. sequential heartbeats that we miss to SCM.
  247. </description>
  248. </property>
  249. <property>
  250. <name>ozone.scm.names</name>
  251. <value></value>
  252. <description>
  253. The value of this property is a set of DNS | DNS:PORT | IP Address | IP:PORT.
  254. Written as a comma separated string. e.g. scm1, scm2:8020, 7.7.7.7:7777.
  255. This property allows datanodes to discover where SCM is, so that
  256. datanodes can send heartbeat to SCM.
  257. </description>
  258. </property>
  259. <property>
  260. <name>ozone.scm.datanode.id</name>
  261. <value></value>
  262. <description>
  263. The path that datanodes will created to store the datanode ID.
  264. If this value is not set, datanodes will fail to come up.
  265. </description>
  266. </property>
  267. <property>
  268. <name>ozone.scm.db.cache.size.mb</name>
  269. <value>128</value>
  270. <description>
  271. The cache size for SCM level db store in MB.
  272. </description>
  273. </property>
  274. <property>
  275. <name>ozone.scm.container.size.gb</name>
  276. <value>5</value>
  277. <description>
  278. Storage container size in GB for block allocations.
  279. </description>
  280. </property>
  281. <property>
  282. <name>ozone.scm.container.placement.impl</name>
  283. <value>org.apache.hadoop.ozone.scm.container.placement.algorithms.SCMContainerPlacementRandom</value>
  284. <description>
  285. Placement policy class for containers.
  286. Defaults to SCMContainerPlacementRandom.class
  287. </description>
  288. </property>
  289. <property>
  290. <name>ozone.scm.container.provision_batch_size</name>
  291. <value>1</value>
  292. <description>
  293. Pre-provision specified number of containers to creare for
  294. block creation.
  295. </description>
  296. </property>
  297. <property>
  298. <name>dfs.container.ipc</name>
  299. <value>50011</value>
  300. <description>
  301. The ipc port number of container.
  302. </description>
  303. </property>
  304. <property>
  305. <name>dfs.container.ipc.random.port</name>
  306. <value>false</value>
  307. <description>
  308. Whether allocates a random free port for ozone container.
  309. </description>
  310. </property>
  311. <property>
  312. <name>scm.container.client.idle.threshold</name>
  313. <value>10000</value>
  314. <description>
  315. </description>
  316. </property>
  317. <property>
  318. <name>scm.container.client.max.size</name>
  319. <value>256</value>
  320. <description>
  321. </description>
  322. </property>
  323. <property>
  324. <name>dfs.container.ratis.enabled</name>
  325. <value>false</value>
  326. <description>
  327. </description>
  328. </property>
  329. <property>
  330. <name>dfs.container.ratis.rpc.type</name>
  331. <value>GRPC</value>
  332. <description>
  333. </description>
  334. </property>
  335. <property>
  336. <name>dfs.container.ratis.server.id</name>
  337. <value></value>
  338. <description>
  339. The unique ID to identify a Ratis server.
  340. </description>
  341. </property>
  342. <property>
  343. <name>dfs.container.ratis.datanode.storage.dir</name>
  344. <value></value>
  345. <description>
  346. </description>
  347. </property>
  348. <!--KSM properties-->
  349. <property>
  350. <name>ozone.ksm.handler.count.key</name>
  351. <value>200</value>
  352. <description>
  353. The number of RPC handler threads for each KSM service endpoint.
  354. </description>
  355. </property>
  356. <property>
  357. <name>ozone.ksm.address</name>
  358. <value>0.0.0.0</value>
  359. <description>
  360. The address of the Ozone KSM service.
  361. </description>
  362. </property>
  363. <property>
  364. <name>ozone.ksm.leveldb.cache.size.mb</name>
  365. <value>128</value>
  366. <description>
  367. The size of KSM LevelDB cache in MB that used for caching files.
  368. </description>
  369. </property>
  370. <property>
  371. <name>ozone.ksm.user.max.volume</name>
  372. <value>1024</value>
  373. <description>
  374. The maximum number of volumes that each user can create.
  375. </description>
  376. </property>
  377. <property>
  378. <name>ozone.ksm.user.rights</name>
  379. <value>READ_WRITE</value>
  380. <description>
  381. Default user permissions in Ozone KSM.
  382. </description>
  383. </property>
  384. <property>
  385. <name>ozone.ksm.group.rights</name>
  386. <value>READ_WRITE</value>
  387. <description>
  388. Default group permissions in Ozone KSM.
  389. </description>
  390. </property>
  391. </configuration>