secure_configs.js 3.8 KB

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