user_ec_policies.xml.template 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with 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. <!--
  18. This is the template for user-defined EC policies configuration.
  19. All policies and schemas are defined within the 'configuration' tag
  20. which is the top level element for this XML document. The 'layoutversion'
  21. tag contains the version of EC policy XML file format, and user-defined EC
  22. schemas are included within the 'schemas' tag. The 'policies' tag
  23. contains all the user defined EC policies, and each policy consists of
  24. schema id and cellsize.
  25. -->
  26. <configuration>
  27. <!-- The version of EC policy XML file format, it must be an integer -->
  28. <layoutversion>1</layoutversion>
  29. <schemas>
  30. <!-- schema id is only used to reference internally in this document -->
  31. <schema id="XORk2m1">
  32. <!-- The combination of codec, k, m and options as the schema ID, defines
  33. a unique schema, for example 'xor-2-1'. schema ID is case insensitive -->
  34. <!-- codec with this specific name should exist already in this system -->
  35. <codec>xor</codec>
  36. <k>2</k>
  37. <m>1</m>
  38. <options> </options>
  39. </schema>
  40. <schema id="RSk12m4">
  41. <codec>RS</codec>
  42. <k>12</k>
  43. <m>4</m>
  44. <options> </options>
  45. </schema>
  46. <schema id="RS-legacyk12m4">
  47. <codec>RS-legacy</codec>
  48. <k>12</k>
  49. <m>4</m>
  50. <options> </options>
  51. </schema>
  52. </schemas>
  53. <policies>
  54. <policy>
  55. <!-- the combination of schema ID and cellsize(in unit k) defines a unique
  56. policy, for example 'xor-2-1-256k', case insensitive -->
  57. <!-- schema is referred by its id -->
  58. <schema>XORk2m1</schema>
  59. <!-- cellsize must be an positive integer multiple of 1024(1k) -->
  60. <!-- maximum cellsize is defined by 'dfs.namenode.ec.policies.max.cellsize' property -->
  61. <cellsize>131072</cellsize>
  62. </policy>
  63. <policy>
  64. <schema>RS-legacyk12m4</schema>
  65. <cellsize>262144</cellsize>
  66. </policy>
  67. </policies>
  68. </configuration>