ha_properties.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. App.ServiceConfigCategory.create({ name: 'AMBARI_METRICS', displayName: 'Ambari Metrics'}),
  28. App.ServiceConfigCategory.create({ name: 'HAWQ', displayName: 'HAWQ'})
  29. ],
  30. sites: ['core-site', 'hdfs-site', 'hbase-site', 'accumulo-site', 'ams-hbase-site', 'hawq-site', 'hdfs-client'],
  31. configs: [
  32. /**********************************************HDFS***************************************/
  33. {
  34. "name": "dfs.journalnode.edits.dir",
  35. "displayName": "dfs.journalnode.edits.dir",
  36. "description": "The Directory where the JournalNode will store its local state.",
  37. "isReconfigurable": true,
  38. "recommendedValue": "/hadoop/hdfs/journal",
  39. "value": "/hadoop/hdfs/journal",
  40. "displayType": "directory",
  41. "category": "HDFS",
  42. "filename": "hdfs-site",
  43. "serviceName": 'MISC'
  44. },
  45. {
  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. "recommendedValue": "hdfs://haCluster",
  50. "isReconfigurable": false,
  51. "value": "hdfs://haCluster",
  52. "category": "HDFS",
  53. "filename": "core-site",
  54. serviceName: 'MISC'
  55. },
  56. {
  57. "name": "ha.zookeeper.quorum",
  58. "displayName": "ha.zookeeper.quorum",
  59. "isReconfigurable": false,
  60. "description": "This lists the host-port pairs running the ZooKeeper service.",
  61. "recommendedValue": "zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181",
  62. "value": "zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181",
  63. "category": "HDFS",
  64. "filename": "core-site",
  65. "serviceName": 'MISC'
  66. },
  67. {
  68. "name": "dfs.nameservices",
  69. "displayName": "dfs.nameservices",
  70. "description": "Comma-separated list of nameservices.",
  71. "isReconfigurable": false,
  72. "recommendedValue": "haCluster",
  73. "value": "haCluster",
  74. "category": "HDFS",
  75. "filename": "hdfs-site",
  76. "serviceName": 'MISC'
  77. },
  78. {
  79. "name": "dfs.internal.nameservices",
  80. "displayName": "dfs.internal.nameservices",
  81. "description": "Comma-separated list of nameservices.",
  82. "isReconfigurable": false,
  83. "recommendedValue": "haCluster",
  84. "value": "haCluster",
  85. "category": "HDFS",
  86. "filename": "hdfs-site",
  87. "serviceName": 'MISC'
  88. },
  89. {
  90. "name": "dfs.ha.namenodes.${dfs.nameservices}",
  91. "displayName": "dfs.ha.namenodes.${dfs.nameservices}",
  92. "description": "The prefix for a given nameservice, contains a comma-separated list of namenodes for a given nameservice.",
  93. "isReconfigurable": false,
  94. "recommendedValue": "nn1,nn2",
  95. "value": "nn1,nn2",
  96. "category": "HDFS",
  97. "filename": "hdfs-site",
  98. "serviceName": 'MISC'
  99. },
  100. {
  101. "name": "dfs.namenode.rpc-address.${dfs.nameservices}.nn1",
  102. "displayName": "dfs.namenode.rpc-address.${dfs.nameservices}.nn1",
  103. "description": "RPC address that handles all clients requests for nn1.",
  104. "isReconfigurable": false,
  105. "recommendedValue": "0.0.0.0:8020",
  106. "value": "0.0.0.0:8020",
  107. "category": "HDFS",
  108. "filename": "hdfs-site",
  109. "serviceName": 'MISC'
  110. },
  111. {
  112. "name": "dfs.namenode.rpc-address.${dfs.nameservices}.nn2",
  113. "displayName": "dfs.namenode.rpc-address.${dfs.nameservices}.nn2",
  114. "description": "RPC address that handles all clients requests for nn2.",
  115. "isReconfigurable": false,
  116. "recommendedValue": "0.0.0.0:8020",
  117. "value": "0.0.0.0:8020",
  118. "category": "HDFS",
  119. "filename": "hdfs-site",
  120. "serviceName": 'MISC'
  121. },
  122. {
  123. "name": "dfs.namenode.http-address.${dfs.nameservices}.nn1",
  124. "displayName": "dfs.namenode.http-address.${dfs.nameservices}.nn1",
  125. "description": "The fully-qualified HTTP address for nn1 NameNode.",
  126. "isReconfigurable": false,
  127. "recommendedValue": "0.0.0.0:50070",
  128. "value": "0.0.0.0:50070",
  129. "category": "HDFS",
  130. "filename": "hdfs-site",
  131. "serviceName": 'MISC'
  132. },
  133. {
  134. "name": "dfs.namenode.http-address.${dfs.nameservices}.nn2",
  135. "displayName": "dfs.namenode.http-address.${dfs.nameservices}.nn2",
  136. "description": "The fully-qualified HTTP address for nn2 NameNode.",
  137. "isReconfigurable": false,
  138. "recommendedValue": "0.0.0.0:50070",
  139. "value": "0.0.0.0:50070",
  140. "category": "HDFS",
  141. "filename": "hdfs-site",
  142. serviceName: 'MISC'
  143. },
  144. {
  145. "name": "dfs.namenode.https-address.${dfs.nameservices}.nn1",
  146. "displayName": "dfs.namenode.https-address.${dfs.nameservices}.nn1",
  147. "description": "The fully-qualified HTTP address for nn1 NameNode.",
  148. "isReconfigurable": false,
  149. "recommendedValue": "0.0.0.0:50470",
  150. "value": "0.0.0.0:50470",
  151. "category": "HDFS",
  152. "filename": "hdfs-site",
  153. "serviceName": 'MISC'
  154. },
  155. {
  156. "name": "dfs.namenode.https-address.${dfs.nameservices}.nn2",
  157. "displayName": "dfs.namenode.https-address.${dfs.nameservices}.nn2",
  158. "description": "The fully-qualified HTTP address for nn2 NameNode.",
  159. "isReconfigurable": false,
  160. "recommendedValue": "0.0.0.0:50470",
  161. "value": "0.0.0.0:50470",
  162. "category": "HDFS",
  163. "filename": "hdfs-site",
  164. "serviceName": 'MISC'
  165. },
  166. {
  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. "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. "recommendedValue": "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. "name": "dfs.ha.fencing.methods",
  190. "displayName": "dfs.ha.fencing.methods",
  191. "description": "A list of scripts or Java classes which will be used to fence the Active NameNode during a failover.",
  192. "isReconfigurable": false,
  193. "recommendedValue": "shell(/bin/true)",
  194. "displayType": "multiLine",
  195. "value": "shell(/bin/true)",
  196. "category": "HDFS",
  197. "filename": "hdfs-site",
  198. "serviceName": 'MISC'
  199. },
  200. {
  201. "name": "dfs.ha.automatic-failover.enabled",
  202. "displayName": "dfs.ha.automatic-failover.enabled",
  203. "description": "Enable Automatic failover.",
  204. "isReconfigurable": false,
  205. "recommendedValue": true,
  206. "value": true,
  207. "displayType": "checkbox",
  208. "category": "HDFS",
  209. "filename": "hdfs-site",
  210. "serviceName": 'MISC'
  211. },
  212. {
  213. "name": "dfs.namenode.safemode.threshold-pct",
  214. "displayName": "dfs.namenode.safemode.threshold-pct",
  215. "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 ",
  216. "isReconfigurable": false,
  217. "recommendedValue": "0.99f",
  218. "value": "0.99f",
  219. "category": "HDFS",
  220. "filename": "hdfs-site",
  221. "serviceName": 'MISC'
  222. },
  223. {
  224. "name": "hbase.rootdir",
  225. "displayName": "hbase.rootdir",
  226. "description": "The directory shared by region servers and into which HBase persists.",
  227. "isReconfigurable": false,
  228. "recommendedValue": "/hadoop/hdfs/journal",
  229. "value": "/hadoop/hdfs/journal",
  230. "category": "HBASE",
  231. "filename": "hbase-site",
  232. "serviceName": 'MISC'
  233. },
  234. {
  235. "name": "instance.volumes",
  236. "displayName": "instance.volumes",
  237. "isReconfigurable": false,
  238. "recommendedValue": "/hadoop/hdfs/journal",
  239. "value": "/hadoop/hdfs/journal",
  240. "category": "ACCUMULO",
  241. "filename": "accumulo-site",
  242. "serviceName": 'MISC'
  243. },
  244. {
  245. "name": "instance.volumes.replacements",
  246. "displayName": "instance.volumes.replacements",
  247. "isReconfigurable": false,
  248. "recommendedValue": "/hadoop/hdfs/journal",
  249. "value": "/hadoop/hdfs/journal",
  250. "category": "ACCUMULO",
  251. "filename": "accumulo-site",
  252. "serviceName": 'MISC'
  253. },
  254. {
  255. "name": "hbase.rootdir",
  256. "displayName": "hbase.rootdir",
  257. "description": "Ambari Metrics service uses HBase as default storage backend. Set the rootdir for HBase to either local filesystem path if using Ambari Metrics in embedded mode or to a HDFS dir, example: hdfs://namenode.example.org:8020/amshbase.",
  258. "isReconfigurable": false,
  259. "recommendedValue": "file:///var/lib/ambari-metrics-collector/hbase",
  260. "value": "file:///var/lib/ambari-metrics-collector/hbase",
  261. "category": "AMBARI_METRICS",
  262. "isVisible": false,
  263. "filename": "ams-hbase-site",
  264. "serviceName": 'MISC'
  265. },
  266. /**********************************************HAWQ***************************************/
  267. {
  268. "name": "hawq_dfs_url",
  269. "displayName": "hawq_dfs_url",
  270. "description": "URL for Accessing HDFS",
  271. "isReconfigurable": false,
  272. "recommendedValue": "haCluster/hawq_data",
  273. "value": "haCluster/hawq_data",
  274. "category": "HAWQ",
  275. "filename": "hawq-site",
  276. "serviceName": 'MISC'
  277. },
  278. {
  279. "name": "dfs.nameservices",
  280. "displayName": "dfs.nameservices",
  281. "description": "Comma-separated list of nameservices.",
  282. "isReconfigurable": false,
  283. "recommendedValue": "haCluster",
  284. "value": "haCluster",
  285. "category": "HAWQ",
  286. "filename": "hdfs-client",
  287. "serviceName": 'MISC'
  288. },
  289. {
  290. "name": "dfs.ha.namenodes.${dfs.nameservices}",
  291. "displayName": "dfs.ha.namenodes.${dfs.nameservices}",
  292. "description": "The prefix for a given nameservice, contains a comma-separated list of namenodes for a given nameservice.",
  293. "isReconfigurable": false,
  294. "recommendedValue": "nn1,nn2",
  295. "value": "nn1,nn2",
  296. "category": "HAWQ",
  297. "filename": "hdfs-client",
  298. "serviceName": 'MISC'
  299. },
  300. {
  301. "name": "dfs.namenode.rpc-address.${dfs.nameservices}.nn1",
  302. "displayName": "dfs.namenode.rpc-address.${dfs.nameservices}.nn1",
  303. "description": "RPC address that handles all clients requests for nn1.",
  304. "isReconfigurable": false,
  305. "recommendedValue": "0.0.0.0:8020",
  306. "value": "0.0.0.0:8020",
  307. "category": "HAWQ",
  308. "filename": "hdfs-client",
  309. "serviceName": 'MISC'
  310. },
  311. {
  312. "name": "dfs.namenode.rpc-address.${dfs.nameservices}.nn2",
  313. "displayName": "dfs.namenode.rpc-address.${dfs.nameservices}.nn2",
  314. "description": "RPC address that handles all clients requests for nn2.",
  315. "isReconfigurable": false,
  316. "recommendedValue": "0.0.0.0:8020",
  317. "value": "0.0.0.0:8020",
  318. "category": "HAWQ",
  319. "filename": "hdfs-client",
  320. "serviceName": 'MISC'
  321. },
  322. {
  323. "name": "dfs.namenode.http-address.${dfs.nameservices}.nn1",
  324. "displayName": "dfs.namenode.http-address.${dfs.nameservices}.nn1",
  325. "description": "The fully-qualified HTTP address for nn1 NameNode.",
  326. "isReconfigurable": false,
  327. "recommendedValue": "0.0.0.0:50070",
  328. "value": "0.0.0.0:50070",
  329. "category": "HAWQ",
  330. "filename": "hdfs-client",
  331. "serviceName": 'MISC'
  332. },
  333. {
  334. "name": "dfs.namenode.http-address.${dfs.nameservices}.nn2",
  335. "displayName": "dfs.namenode.http-address.${dfs.nameservices}.nn2",
  336. "description": "The fully-qualified HTTP address for nn2 NameNode.",
  337. "isReconfigurable": false,
  338. "recommendedValue": "0.0.0.0:50070",
  339. "value": "0.0.0.0:50070",
  340. "category": "HAWQ",
  341. "filename": "hdfs-client",
  342. "serviceName": 'MISC'
  343. }
  344. ]
  345. }
  346. };