rm_ha_properties.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. module.exports =
  19. {
  20. "haConfig": {
  21. serviceName: 'MISC',
  22. displayName: 'MISC',
  23. configCategories: [
  24. App.ServiceConfigCategory.create({ name: 'YARN', displayName: 'YARN'})
  25. ],
  26. sites: ['yarn-site'],
  27. configs: [
  28. /**********************************************HDFS***************************************/
  29. {
  30. "id": "site property",
  31. "name": "yarn.resourcemanager.ha.enabled",
  32. "displayName": "yarn.resourcemanager.ha.enabled",
  33. "isReconfigurable": false,
  34. "defaultValue": true,
  35. "value": true,
  36. "displayType": "checkbox",
  37. "category": "YARN",
  38. "filename": "yarn-site",
  39. serviceName: 'MISC'
  40. },
  41. {
  42. "id": "site property",
  43. "name": "yarn.resourcemanager.ha.rm-ids",
  44. "displayName": "yarn.resourcemanager.ha.rm-ids",
  45. "isReconfigurable": false,
  46. "defaultValue": "rm1,rm2",
  47. "value": "rm1,rm2",
  48. "category": "YARN",
  49. "filename": "yarn-site",
  50. serviceName: 'MISC'
  51. },
  52. {
  53. "id": "site property",
  54. "name": "yarn.resourcemanager.hostname.rm1",
  55. "displayName": "yarn.resourcemanager.hostname.rm1",
  56. "isReconfigurable": false,
  57. "defaultValue": "",
  58. "value": "",
  59. "category": "YARN",
  60. "filename": "yarn-site",
  61. serviceName: 'MISC'
  62. },
  63. {
  64. "id": "site property",
  65. "name": "yarn.resourcemanager.hostname.rm2",
  66. "displayName": "yarn.resourcemanager.hostname.rm2",
  67. "isReconfigurable": false,
  68. "defaultValue": "",
  69. "value": "",
  70. "category": "YARN",
  71. "filename": "yarn-site",
  72. serviceName: 'MISC'
  73. },
  74. {
  75. "id": "site property",
  76. "name": "yarn.resourcemanager.recovery.enabled",
  77. "displayName": "yarn.resourcemanager.recovery.enabled",
  78. "isReconfigurable": false,
  79. "defaultValue": true,
  80. "value": true,
  81. "displayType": "checkbox",
  82. "category": "YARN",
  83. "filename": "yarn-site",
  84. serviceName: 'MISC'
  85. },
  86. {
  87. "id": "site property",
  88. "name": "yarn.resourcemanager.store.class",
  89. "displayName": "yarn.resourcemanager.store.class",
  90. "isReconfigurable": false,
  91. "defaultValue": "org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore",
  92. "value": "org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore",
  93. "category": "YARN",
  94. "filename": "yarn-site",
  95. serviceName: 'MISC'
  96. },
  97. {
  98. "id": "site property",
  99. "name": "yarn.resourcemanager.zk-address",
  100. "displayName": "yarn.resourcemanager.zk-address",
  101. "isReconfigurable": false,
  102. "defaultValue": "",
  103. "value": "",
  104. "category": "YARN",
  105. "filename": "yarn-site",
  106. serviceName: 'MISC'
  107. },
  108. {
  109. "id": "site property",
  110. "name": "yarn.resourcemanager.cluster-id",
  111. "displayName": "yarn.resourcemanager.cluster-id",
  112. "isReconfigurable": false,
  113. "defaultValue": "yarn-cluster",
  114. "value": "yarn-cluster",
  115. "category": "YARN",
  116. "filename": "yarn-site",
  117. serviceName: 'MISC'
  118. },
  119. {
  120. "id": "site property",
  121. "name": "yarn.resourcemanager.ha.automatic-failover.zk-base-path",
  122. "displayName": "yarn.resourcemanager.ha.automatic-failover.zk-base-path",
  123. "isReconfigurable": false,
  124. "defaultValue": "/yarn-leader-election",
  125. "value": "/yarn-leader-election",
  126. "category": "YARN",
  127. "filename": "yarn-site",
  128. serviceName: 'MISC'
  129. }
  130. ]
  131. }
  132. };