secure_configs.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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: 'CLUSTER',
  28. filename: 'hdfs-site',
  29. configCategories: [
  30. App.ServiceConfigCategory.create({ name: 'KERBEROS', displayName: 'KERBEROS'})
  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. configs: configProperties.filterProperty('serviceName', 'HDFS')
  45. },
  46. {
  47. serviceName: 'MAPREDUCE',
  48. displayName: 'MapReduce',
  49. filename: 'mapred-site',
  50. configCategories: [
  51. App.ServiceConfigCategory.create({ name: 'JobTracker', displayName: 'JobTracker'}),
  52. App.ServiceConfigCategory.create({ name: 'TaskTracker', displayName: 'TaskTracker'})
  53. ],
  54. configs: configProperties.filterProperty('serviceName', 'MAPREDUCE')
  55. },
  56. {
  57. serviceName: 'HIVE',
  58. displayName: 'Hive/HCat',
  59. filename: 'hive-site',
  60. configCategories: [
  61. App.ServiceConfigCategory.create({ name: 'Hive Metastore', displayName: 'Hive Metastore'})
  62. ],
  63. configs: configProperties.filterProperty('serviceName', 'HIVE')
  64. },
  65. {
  66. serviceName: 'WEBHCAT',
  67. displayName: 'WebHCat',
  68. filename: 'webhcat-site',
  69. configCategories: [
  70. App.ServiceConfigCategory.create({ name: 'WebHCat', displayName: 'WebHCat'})
  71. ],
  72. configs: configProperties.filterProperty('serviceName', 'WEBHCAT')
  73. },
  74. {
  75. serviceName: 'HBASE',
  76. displayName: 'HBase',
  77. filename: 'hbase-site',
  78. configCategories: [
  79. App.ServiceConfigCategory.create({ name: 'HBase Master', displayName: 'HBase Master'}),
  80. App.ServiceConfigCategory.create({ name: 'RegionServer', displayName: 'RegionServer'})
  81. ],
  82. configs: configProperties.filterProperty('serviceName', 'HBASE')
  83. },
  84. /*
  85. {
  86. serviceName: 'ZOOKEEPER',
  87. displayName: 'ZooKeeper',
  88. configCategories: [
  89. App.ServiceConfigCategory.create({ name: 'ZooKeeper'})
  90. ],
  91. configs: configProperties.filterProperty('serviceName', 'ZOOKEEPER')
  92. },
  93. */
  94. {
  95. serviceName: 'OOZIE',
  96. displayName: 'Oozie',
  97. filename: 'oozie-site',
  98. configCategories: [
  99. App.ServiceConfigCategory.create({ name: 'Oozie Server'})
  100. ],
  101. configs: configProperties.filterProperty('serviceName', 'OOZIE')
  102. }
  103. ];