ha_properties.js 10 KB

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