ha_properties.js 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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: 'HDFS', displayName: 'HDFS'}),
  25. App.ServiceConfigCategory.create({ name: 'HBASE', displayName: 'HBase'})
  26. ],
  27. sites: ['core-site', 'hdfs-site','hbase-site'],
  28. configs: [
  29. /**********************************************HDFS***************************************/
  30. {
  31. "id": "site property",
  32. "name": "dfs.journalnode.edits.dir",
  33. "displayName": "dfs.journalnode.edits.dir",
  34. "description": "The Directory where the JournalNode will store its local state.",
  35. "isReconfigurable": true,
  36. "defaultValue": "/hadoop/hdfs/journal",
  37. "value": "/hadoop/hdfs/journal",
  38. "defaultDirectory": "/hadoop/hdfs/journal",
  39. "displayType": "directory",
  40. "category": "HDFS",
  41. "filename": "hdfs-site",
  42. "serviceName": 'MISC'
  43. },
  44. {
  45. "id": "site property",
  46. "name": "fs.defaultFS",
  47. "displayName": "fs.defaultFS",
  48. "description": "The default path prefix used by the Hadoop FS client when none is given.",
  49. "defaultValue": "hdfs://haCluster",
  50. "isReconfigurable": false,
  51. "value": "hdfs://haCluster",
  52. "category": "HDFS",
  53. "filename": "core-site",
  54. serviceName: 'MISC'
  55. },
  56. {
  57. "id": "site property",
  58. "name": "ha.zookeeper.quorum",
  59. "displayName": "ha.zookeeper.quorum",
  60. "isReconfigurable": false,
  61. "description": "This lists the host-port pairs running the ZooKeeper service.",
  62. "defaultValue": "zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181",
  63. "value": "zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181",
  64. "category": "HDFS",
  65. "filename": "core-site",
  66. "serviceName": 'MISC'
  67. },
  68. {
  69. "id": "site property",
  70. "name": "dfs.nameservices",
  71. "displayName": "dfs.nameservices",
  72. "description": "Comma-separated list of nameservices.",
  73. "isReconfigurable": false,
  74. "defaultValue": "haCluster",
  75. "value": "haCluster",
  76. "category": "HDFS",
  77. "filename": "hdfs-site",
  78. "serviceName": 'MISC'
  79. },
  80. {
  81. "id": "site property",
  82. "name": "dfs.ha.namenodes.${dfs.nameservices}",
  83. "displayName": "dfs.ha.namenodes.${dfs.nameservices}",
  84. "description": "The prefix for a given nameservice, contains a comma-separated list of namenodes for a given nameservice.",
  85. "isReconfigurable": false,
  86. "defaultValue": "nn1,nn2",
  87. "value": "nn1,nn2",
  88. "category": "HDFS",
  89. "filename": "hdfs-site",
  90. "serviceName": 'MISC'
  91. },
  92. {
  93. "id": "site property",
  94. "name": "dfs.namenode.rpc-address.${dfs.nameservices}.nn1",
  95. "displayName": "dfs.namenode.rpc-address.${dfs.nameservices}.nn1",
  96. "description": "RPC address that handles all clients requests for nn1.",
  97. "isReconfigurable": false,
  98. "defaultValue": "0.0.0.0:8020",
  99. "value": "0.0.0.0:8020",
  100. "category": "HDFS",
  101. "filename": "hdfs-site",
  102. "serviceName": 'MISC'
  103. },
  104. {
  105. "id": "site property",
  106. "name": "dfs.namenode.rpc-address.${dfs.nameservices}.nn2",
  107. "displayName": "dfs.namenode.rpc-address.${dfs.nameservices}.nn2",
  108. "description": "RPC address that handles all clients requests for nn2.",
  109. "isReconfigurable": false,
  110. "defaultValue": "0.0.0.0:8020",
  111. "value": "0.0.0.0:8020",
  112. "category": "HDFS",
  113. "filename": "hdfs-site",
  114. "serviceName": 'MISC'
  115. },
  116. {
  117. "id": "site property",
  118. "name": "dfs.namenode.http-address.${dfs.nameservices}.nn1",
  119. "displayName": "dfs.namenode.http-address.${dfs.nameservices}.nn1",
  120. "description": "The fully-qualified HTTP address for nn1 NameNode.",
  121. "isReconfigurable": false,
  122. "defaultValue": "0.0.0.0:50070",
  123. "value": "0.0.0.0:50070",
  124. "category": "HDFS",
  125. "filename": "hdfs-site",
  126. "serviceName": 'MISC'
  127. },
  128. {
  129. "id": "site property",
  130. "name": "dfs.namenode.http-address.${dfs.nameservices}.nn2",
  131. "displayName": "dfs.namenode.http-address.${dfs.nameservices}.nn2",
  132. "description": "The fully-qualified HTTP address for nn2 NameNode.",
  133. "isReconfigurable": false,
  134. "defaultValue": "0.0.0.0:50070",
  135. "value": "0.0.0.0:50070",
  136. "category": "HDFS",
  137. "filename": "hdfs-site",
  138. serviceName: 'MISC'
  139. },
  140. {
  141. "id": "site property",
  142. "name": "dfs.namenode.https-address.${dfs.nameservices}.nn1",
  143. "displayName": "dfs.namenode.https-address.${dfs.nameservices}.nn1",
  144. "description": "The fully-qualified HTTP address for nn1 NameNode.",
  145. "isReconfigurable": false,
  146. "defaultValue": "0.0.0.0:50470",
  147. "value": "0.0.0.0:50470",
  148. "category": "HDFS",
  149. "filename": "hdfs-site",
  150. "serviceName": 'MISC'
  151. },
  152. {
  153. "id": "site property",
  154. "name": "dfs.namenode.https-address.${dfs.nameservices}.nn2",
  155. "displayName": "dfs.namenode.https-address.${dfs.nameservices}.nn2",
  156. "description": "The fully-qualified HTTP address for nn2 NameNode.",
  157. "isReconfigurable": false,
  158. "defaultValue": "0.0.0.0:50470",
  159. "value": "0.0.0.0:50470",
  160. "category": "HDFS",
  161. "filename": "hdfs-site",
  162. "serviceName": 'MISC'
  163. },
  164. {
  165. "id": "site property",
  166. "name": "dfs.client.failover.proxy.provider.${dfs.nameservices}",
  167. "displayName": "dfs.client.failover.proxy.provider.${dfs.nameservices}",
  168. "description": "The Java class that HDFS clients use to contact the Active NameNode.",
  169. "defaultValue": "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider",
  170. "isReconfigurable": false,
  171. "value": "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider",
  172. "category": "HDFS",
  173. "filename": "hdfs-site",
  174. "serviceName": 'MISC'
  175. },
  176. {
  177. "id": "site property",
  178. "name": "dfs.namenode.shared.edits.dir",
  179. "displayName": "dfs.namenode.shared.edits.dir",
  180. "description": " The URI which identifies the group of JNs where the NameNodes will write/read edits.",
  181. "isReconfigurable": false,
  182. "defaultValue": "qjournal://node1.example.com:8485;node2.example.com:8485;node3.example.com:8485/mycluster",
  183. "value": "qjournal://node1.example.com:8485;node2.example.com:8485;node3.example.com:8485/mycluster",
  184. "category": "HDFS",
  185. "filename": "hdfs-site",
  186. "serviceName": 'MISC'
  187. },
  188. {
  189. "id": "site property",
  190. "name": "dfs.ha.fencing.methods",
  191. "displayName": "dfs.ha.fencing.methods",
  192. "description": "A list of scripts or Java classes which will be used to fence the Active NameNode during a failover.",
  193. "isReconfigurable": false,
  194. "defaultValue": "shell(/bin/true)",
  195. "value": "shell(/bin/true)",
  196. "category": "HDFS",
  197. "filename": "hdfs-site",
  198. "serviceName": 'MISC'
  199. },
  200. {
  201. "id": "site property",
  202. "name": "dfs.ha.automatic-failover.enabled",
  203. "displayName": "dfs.ha.automatic-failover.enabled",
  204. "description": "Enable Automatic failover.",
  205. "isReconfigurable": false,
  206. "defaultValue": true,
  207. "value": true,
  208. "displayType": "checkbox",
  209. "category": "HDFS",
  210. "filename": "hdfs-site",
  211. "serviceName": 'MISC'
  212. },
  213. {
  214. "id": "site property",
  215. "name": "dfs.namenode.safemode.threshold-pct",
  216. "displayName": "dfs.namenode.safemode.threshold-pct",
  217. "description": "Specifies the percentage of blocks that should satisfy\n the minimal replication requirement defined by dfs.namenode.replication.min.\n Values less than or equal to 0 mean not to start in safe mode.\n Values greater than 1 will make safe mode permanent.\n ",
  218. "isReconfigurable": false,
  219. "defaultValue": "0.99f",
  220. "value": "0.99f",
  221. "category": "HDFS",
  222. "filename": "hdfs-site",
  223. "serviceName": 'MISC'
  224. },
  225. {
  226. "id": "site property",
  227. "name": "hbase.rootdir",
  228. "displayName": "hbase.rootdir",
  229. "description": "The directory shared by region servers and into which HBase persists.",
  230. "isReconfigurable": false,
  231. "defaultValue": "/hadoop/hdfs/journal",
  232. "value": "/hadoop/hdfs/journal",
  233. "category": "HBASE",
  234. "filename": "hbase-site",
  235. "serviceName": 'MISC'
  236. }
  237. ]
  238. }
  239. };