service_configs.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. var App = require('app');
  19. require('models/service_config')
  20. var configProperties = App.ConfigProperties.create();
  21. module.exports = [
  22. {
  23. serviceName: 'HDFS',
  24. displayName: 'HDFS',
  25. filename: 'hdfs-site',
  26. configCategories: [
  27. App.ServiceConfigCategory.create({ name: 'NameNode'}),
  28. App.ServiceConfigCategory.create({ name: 'SNameNode'}),
  29. App.ServiceConfigCategory.create({ name: 'DataNode'}),
  30. App.ServiceConfigCategory.create({ name: 'General'}),
  31. App.ServiceConfigCategory.create({ name: 'Advanced'})
  32. ],
  33. configs: configProperties.filterProperty('serviceName', 'HDFS')
  34. },
  35. {
  36. serviceName: 'MAPREDUCE',
  37. displayName: 'MapReduce',
  38. filename: 'mapred-site',
  39. configCategories: [
  40. App.ServiceConfigCategory.create({ name: 'JobTracker'}),
  41. App.ServiceConfigCategory.create({ name: 'TaskTracker'}),
  42. App.ServiceConfigCategory.create({ name: 'General'}),
  43. App.ServiceConfigCategory.create({ name: 'Advanced'})
  44. ],
  45. configs: configProperties.filterProperty('serviceName', 'MAPREDUCE')
  46. },
  47. {
  48. serviceName: 'HIVE',
  49. displayName: 'Hive/HCat',
  50. filename: 'hive-site',
  51. configCategories: [
  52. App.ServiceConfigCategory.create({ name: 'Hive Metastore'}),
  53. App.ServiceConfigCategory.create({ name: 'Advanced'})
  54. ],
  55. configs: configProperties.filterProperty('serviceName', 'HIVE')
  56. },
  57. {
  58. serviceName: 'WEBHCAT',
  59. displayName: 'WebHCat',
  60. filename: 'webhcat-site',
  61. configCategories: [
  62. App.ServiceConfigCategory.create({ name: 'Advanced'})
  63. ],
  64. configs: configProperties.filterProperty('serviceName', 'WEBCHAT')
  65. },
  66. {
  67. serviceName: 'HBASE',
  68. displayName: 'HBase',
  69. filename: 'hbase-site',
  70. configCategories: [
  71. App.ServiceConfigCategory.create({ name: 'HBase Master'}),
  72. App.ServiceConfigCategory.create({ name: 'RegionServer'}),
  73. App.ServiceConfigCategory.create({ name: 'General'}),
  74. App.ServiceConfigCategory.create({ name: 'Advanced'})
  75. ],
  76. configs: configProperties.filterProperty('serviceName', 'HBASE')
  77. },
  78. {
  79. serviceName: 'ZOOKEEPER',
  80. displayName: 'ZooKeeper',
  81. configCategories: [
  82. App.ServiceConfigCategory.create({ name: 'ZooKeeper Server'}),
  83. App.ServiceConfigCategory.create({ name: 'Advanced'})
  84. ],
  85. configs: configProperties.filterProperty('serviceName', 'ZOOKEEPER')
  86. },
  87. {
  88. serviceName: 'OOZIE',
  89. displayName: 'Oozie',
  90. filename: 'oozie-site',
  91. configCategories: [
  92. App.ServiceConfigCategory.create({ name: 'Oozie Server'}),
  93. App.ServiceConfigCategory.create({ name: 'Advanced'})
  94. ],
  95. configs: configProperties.filterProperty('serviceName', 'OOZIE')
  96. },
  97. {
  98. serviceName: 'NAGIOS',
  99. displayName: 'Nagios',
  100. configCategories: [
  101. App.ServiceConfigCategory.create({ name: 'General'})
  102. ],
  103. configs: configProperties.filterProperty('serviceName', 'NAGIOS')
  104. },
  105. {
  106. serviceName: 'MISC',
  107. displayName: 'Misc',
  108. configCategories: [
  109. App.ServiceConfigCategory.create({ name: 'General'}),
  110. App.ServiceConfigCategory.create({ name: 'Users and Groups'})
  111. ],
  112. configs: configProperties.filterProperty('serviceName', 'MISC')
  113. }
  114. ]