hdfs_properties.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 properties = {
  20. 'SSLRangerSettings': [
  21. 'SSL_KEYSTORE_FILE_PATH',
  22. 'SSL_KEYSTORE_PASSWORD',
  23. 'SSL_TRUSTSTORE_FILE_PATH',
  24. 'SSL_TRUSTSTORE_PASSWORD'
  25. ],
  26. 'RepositoryConfigs': [
  27. 'POLICY_USER',
  28. 'REPOSITORY_CONFIG_PASSWORD',
  29. 'REPOSITORY_CONFIG_USERNAME'
  30. ],
  31. 'HDFSAuditSettings': [
  32. 'XAAUDIT.HDFS.DESTINATION_DIRECTORY',
  33. 'XAAUDIT.HDFS.LOCAL_BUFFER_DIRECTORY',
  34. 'XAAUDIT.HDFS.LOCAL_ARCHIVE_DIRECTORY',
  35. 'XAAUDIT.HDFS.DESTINTATION_FILE',
  36. 'XAAUDIT.HDFS.DESTINTATION_FLUSH_INTERVAL_SECONDS',
  37. 'XAAUDIT.HDFS.DESTINTATION_ROLLOVER_INTERVAL_SECONDS',
  38. 'XAAUDIT.HDFS.DESTINTATION_OPEN_RETRY_INTERVAL_SECONDS',
  39. 'XAAUDIT.HDFS.LOCAL_BUFFER_FILE',
  40. 'XAAUDIT.HDFS.LOCAL_BUFFER_FLUSH_INTERVAL_SECONDS',
  41. 'XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS',
  42. 'XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT'
  43. ]
  44. };
  45. var props = [];
  46. for (var category in properties) {
  47. props = props.concat(App.config.generateConfigPropertiesByName(properties[category],
  48. { category: category, serviceName: 'HDFS', filename: 'ranger-hdfs-plugin-properties.xml'}));
  49. }
  50. module.exports = props;