site_properties.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. var hdp22SepcificProperties = [
  20. require('data/HDP2.2/yarn_properties'),
  21. require('data/HDP2.2/tez_properties'),
  22. require('data/HDP2.2/hive_properties')
  23. ].reduce(function(p, c) { return c.concat(p); });
  24. var hdp2properties = require('data/HDP2/site_properties').configProperties;
  25. var excludedConfigs = [
  26. 'storm.thrift.transport', //In HDP2.2 storm.thrift.transport property is computed on server
  27. 'storm_rest_api_host',
  28. 'tez.am.container.session.delay-allocation-millis',
  29. 'tez.am.grouping.max-size',
  30. 'tez.am.grouping.min-size',
  31. 'tez.am.grouping.split-waves',
  32. 'tez.am.java.opts',
  33. 'tez.runtime.intermediate-input.compress.codec',
  34. 'tez.runtime.intermediate-input.is-compressed',
  35. 'tez.runtime.intermediate-output.compress.codec',
  36. 'tez.runtime.intermediate-output.should-compress',
  37. 'dfs.datanode.data.dir'
  38. ];
  39. var hdp22properties = hdp2properties.filter(function (item) {
  40. return !excludedConfigs.contains(item.name);
  41. });
  42. hdp22properties.push(
  43. {
  44. "id": "site property",
  45. "name": "hive.zookeeper.quorum",
  46. "displayName": "hive.zookeeper.quorum",
  47. "defaultValue": "localhost:2181",
  48. "displayType": "multiLine",
  49. "isRequired": false,
  50. "isVisible": true,
  51. "serviceName": "HIVE",
  52. "filename": "hive-site.xml",
  53. "category": "Advanced hive-site"
  54. },
  55. {
  56. "id": "site property",
  57. "name": "hadoop.registry.rm.enabled",
  58. "displayName": "hadoop.registry.rm.enabled",
  59. "defaultValue": "false",
  60. "displayType": "checkbox",
  61. "isVisible": true,
  62. "serviceName": "YARN",
  63. "filename": "yarn-site.xml",
  64. "category": "Advanced yarn-site"
  65. },
  66. {
  67. "id": "site property",
  68. "name": "hadoop.registry.zk.quorum",
  69. "displayName": "hadoop.registry.zk.quorum",
  70. "defaultValue": "localhost:2181",
  71. "isVisible": true,
  72. "serviceName": "YARN",
  73. "filename": "yarn-site.xml",
  74. "category": "Advanced yarn-site"
  75. },
  76. {
  77. "id": "site property",
  78. "name": "dfs.datanode.data.dir",
  79. "displayName": "DataNode directories",
  80. "defaultDirectory": "/hadoop/hdfs/data",
  81. "displayType": "datanodedirs",
  82. "category": "DATANODE",
  83. "serviceName": "HDFS",
  84. "filename": "hdfs-site.xml",
  85. "index": 1
  86. },
  87. {
  88. "id": "site property",
  89. "name": "*.falcon.graph.blueprints.graph",
  90. "displayName": "*.falcon.graph.blueprints.graph",
  91. "category": "FalconStartupSite",
  92. "serviceName": "FALCON",
  93. "filename": "falcon-startup.properties.xml"
  94. },
  95. {
  96. "id": "site property",
  97. "name": "*.falcon.graph.storage.backend",
  98. "displayName": "*.falcon.graph.storage.backend",
  99. "category": "FalconStartupSite",
  100. "serviceName": "FALCON",
  101. "filename": "falcon-startup.properties.xml"
  102. });
  103. var additionalProperties = [];
  104. hdp22SepcificProperties.forEach(function(config) {
  105. if (!hdp22properties.findProperty('name', config.name)) additionalProperties.push(config);
  106. else {
  107. hdp22properties.findProperty('name', config.name).category = config.category;
  108. }
  109. });
  110. module.exports =
  111. {
  112. "configProperties": hdp22properties.concat(additionalProperties)
  113. };