Repository: ambari Updated Branches: refs/heads/trunk b9662cef6 -> 6035a891c
AMBARI-10503: Ambari-Ranger Stack changes to add Solr audit db support (Gautam Borad via jluniya) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6035a891 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6035a891 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6035a891 Branch: refs/heads/trunk Commit: 6035a891c2ea718c147e9304e6090d50a6e362d9 Parents: b9662ce Author: Jayush Luniya <jlun...@hortonworks.com> Authored: Tue Apr 21 10:15:16 2015 -0700 Committer: Jayush Luniya <jlun...@hortonworks.com> Committed: Tue Apr 21 10:15:16 2015 -0700 ---------------------------------------------------------------------- .../0.96.0.2.0/package/scripts/params_linux.py | 7 +++ .../package/scripts/setup_ranger_hbase.py | 6 +++ .../2.1.0.2.0/package/scripts/params_linux.py | 6 +++ .../package/scripts/setup_ranger_hdfs.py | 8 +++- .../0.12.0.2.0/package/scripts/params_linux.py | 6 +++ .../package/scripts/setup_ranger_hive.py | 7 +++ .../KNOX/0.5.0.2.2/package/scripts/params.py | 6 +++ .../package/scripts/setup_ranger_knox.py | 7 +++ .../0.9.1.2.1/package/scripts/params_linux.py | 6 +++ .../package/scripts/setup_ranger_storm.py | 7 +++ .../ranger-hbase-plugin-properties.xml | 47 ++++++++++++++++++++ .../ranger-hdfs-plugin-properties.xml | 47 ++++++++++++++++++++ .../ranger-hive-plugin-properties.xml | 47 ++++++++++++++++++++ .../ranger-knox-plugin-properties.xml | 47 ++++++++++++++++++++ .../RANGER/configuration/admin-properties.xml | 36 +++++++++++++++ .../ranger-storm-plugin-properties.xml | 47 ++++++++++++++++++++ 16 files changed, 336 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py index ab21537..eafcd89 100644 --- a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py @@ -253,3 +253,10 @@ downloaded_custom_connector = format("{exec_tmp_dir}/{jdbc_jar_name}") driver_curl_source = format("{jdk_location}/{jdbc_symlink_name}") driver_curl_target = format("{java_share_dir}/{jdbc_jar_name}") + +#Solr properties added for HDP2.3 - Ranger +solr_enabled = default("/configurations/ranger-hbase-plugin-properties/XAAUDIT.SOLR.IS_ENABLED", "false") +solr_max_queue_size = default("/configurations/ranger-hbase-plugin-properties/XAAUDIT.SOLR.MAX_QUEUE_SIZE", "1") +solr_max_flush_interval = default("/configurations/ranger-hbase-plugin-properties/XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS", "1000") +solr_url = default("/configurations/ranger-hbase-plugin-properties/XAAUDIT.SOLR.SOLR_URL", "http://localhost:6083/solr/ranger_audits") + http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py index 7626de8..5f7a830 100644 --- a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py +++ b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py @@ -26,6 +26,7 @@ import os from resource_management import * from resource_management.libraries.functions.ranger_functions import Rangeradmin from resource_management.core.logger import Logger +from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions def setup_ranger_hbase(): import params @@ -166,6 +167,11 @@ def ranger_hbase_properties(): ranger_hbase_properties['SSL_KEYSTORE_PASSWORD'] = params.ssl_keystore_password ranger_hbase_properties['SSL_TRUSTSTORE_FILE_PATH'] = params.ssl_truststore_file ranger_hbase_properties['SSL_TRUSTSTORE_PASSWORD'] = params.ssl_truststore_password + if params.hdp_stack_version != "" and compare_versions(params.hdp_stack_version, '2.3') >= 0: + ranger_hbase_properties['XAAUDIT.SOLR.IS_ENABLED'] = str(params.solr_enabled).lower() + ranger_hbase_properties['XAAUDIT.SOLR.MAX_QUEUE_SIZE'] = params.solr_max_queue_size + ranger_hbase_properties['XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS'] = params.solr_max_flush_interval + ranger_hbase_properties['XAAUDIT.SOLR.SOLR_URL'] = params.solr_url ranger_hbase_properties['UPDATE_XAPOLICIES_ON_GRANT_REVOKE'] = params.grant_revoke http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py index 034d544..4e0bfed 100644 --- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py @@ -403,3 +403,9 @@ downloaded_custom_connector = format("{tmp_dir}/{jdbc_jar_name}") driver_curl_source = format("{jdk_location}/{jdbc_symlink_name}") driver_curl_target = format("{java_share_dir}/{jdbc_jar_name}") + +if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.3') >= 0: + solr_enabled = default("/configurations/ranger-hdfs-plugin-properties/XAAUDIT.SOLR.IS_ENABLED", "false") + solr_max_queue_size = default("/configurations/ranger-hdfs-plugin-properties/XAAUDIT.SOLR.MAX_QUEUE_SIZE", "1") + solr_max_flush_interval = default("/configurations/ranger-hdfs-plugin-properties/XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS", "1000") + solr_url = default("/configurations/ranger-hdfs-plugin-properties/XAAUDIT.SOLR.SOLR_URL", "http://localhost:6083/solr/ranger_audits") http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py index 876e70d..8add904 100644 --- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py +++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py @@ -26,7 +26,7 @@ import os from resource_management import * from resource_management.libraries.functions.ranger_functions import Rangeradmin from resource_management.core.logger import Logger - +from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions def setup_ranger_hdfs(): import params @@ -174,6 +174,12 @@ def ranger_hdfs_properties(): ranger_hdfs_properties['SSL_TRUSTSTORE_FILE_PATH'] = params.ssl_truststore_file ranger_hdfs_properties['SSL_TRUSTSTORE_PASSWORD'] = params.ssl_truststore_password + if params.hdp_stack_version != "" and compare_versions(params.hdp_stack_version, '2.3') >= 0: + ranger_hdfs_properties['XAAUDIT.SOLR.IS_ENABLED'] = str(params.solr_enabled).lower() + ranger_hdfs_properties['XAAUDIT.SOLR.MAX_QUEUE_SIZE'] = params.solr_max_queue_size + ranger_hdfs_properties['XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS'] = params.solr_max_flush_interval + ranger_hdfs_properties['XAAUDIT.SOLR.SOLR_URL'] = params.solr_url + return ranger_hdfs_properties http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py index 05d72c8..b93d056 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py @@ -418,3 +418,9 @@ ranger_driver_curl_target = format("{java_share_dir}/{ranger_jdbc_jar_name}") if security_enabled: hive_principal = hive_server_principal.replace('_HOST',hostname.lower()) + +if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.3') >= 0: + solr_enabled = default("/configurations/ranger-hive-plugin-properties/XAAUDIT.SOLR.IS_ENABLED", "false") + solr_max_queue_size = default("/configurations/ranger-hive-plugin-properties/XAAUDIT.SOLR.MAX_QUEUE_SIZE", "1") + solr_max_flush_interval = default("/configurations/ranger-hive-plugin-properties/XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS", "1000") + solr_url = default("/configurations/ranger-hive-plugin-properties/XAAUDIT.SOLR.SOLR_URL", "http://localhost:6083/solr/ranger_audits") http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py index 54de4a6..c202241 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py @@ -26,6 +26,7 @@ import os from resource_management import * from resource_management.libraries.functions.ranger_functions import Rangeradmin from resource_management.core.logger import Logger +from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions def setup_ranger_hive(): import params @@ -172,6 +173,12 @@ def ranger_hive_properties(): ranger_hive_properties['UPDATE_XAPOLICIES_ON_GRANT_REVOKE'] = params.grant_revoke + if params.hdp_stack_version != "" and compare_versions(params.hdp_stack_version, '2.3') >= 0: + ranger_hive_properties['XAAUDIT.SOLR.IS_ENABLED'] = str(params.solr_enabled).lower() + ranger_hive_properties['XAAUDIT.SOLR.MAX_QUEUE_SIZE'] = params.solr_max_queue_size + ranger_hive_properties['XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS'] = params.solr_max_flush_interval + ranger_hive_properties['XAAUDIT.SOLR.SOLR_URL'] = params.solr_url + return ranger_hive_properties def hive_repo_properties(): http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py index 13b0868..ad96b53 100644 --- a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py +++ b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params.py @@ -208,3 +208,9 @@ downloaded_custom_connector = format("{tmp_dir}/{jdbc_jar_name}") driver_curl_source = format("{jdk_location}/{jdbc_symlink_name}") driver_curl_target = format("{java_share_dir}/{jdbc_jar_name}") + +if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.3') >= 0: + solr_enabled = default("/configurations/ranger-knox-plugin-properties/XAAUDIT.SOLR.IS_ENABLED", "false") + solr_max_queue_size = default("/configurations/ranger-knox-plugin-properties/XAAUDIT.SOLR.MAX_QUEUE_SIZE", "1") + solr_max_flush_interval = default("/configurations/ranger-knox-plugin-properties/XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS", "1000") + solr_url = default("/configurations/ranger-knox-plugin-properties/XAAUDIT.SOLR.SOLR_URL", "http://localhost:6083/solr/ranger_audits") http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/setup_ranger_knox.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/setup_ranger_knox.py b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/setup_ranger_knox.py index c069fc5..f96140b 100644 --- a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/setup_ranger_knox.py +++ b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/setup_ranger_knox.py @@ -26,6 +26,7 @@ import os from resource_management import * from resource_management.libraries.functions.ranger_functions import Rangeradmin from resource_management.core.logger import Logger +from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions def setup_ranger_knox(): import params @@ -169,6 +170,12 @@ def ranger_knox_properties(): ranger_knox_properties['SSL_KEYSTORE_PASSWORD'] = params.ssl_keystore_password ranger_knox_properties['SSL_TRUSTSTORE_FILE_PATH'] = params.ssl_truststore_file ranger_knox_properties['SSL_TRUSTSTORE_PASSWORD'] = params.ssl_truststore_password + + if params.hdp_stack_version != "" and compare_versions(params.hdp_stack_version, '2.3') >= 0: + ranger_knox_properties['XAAUDIT.SOLR.IS_ENABLED'] = str(params.solr_enabled).lower() + ranger_knox_properties['XAAUDIT.SOLR.MAX_QUEUE_SIZE'] = params.solr_max_queue_size + ranger_knox_properties['XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS'] = params.solr_max_flush_interval + ranger_knox_properties['XAAUDIT.SOLR.SOLR_URL'] = params.solr_url return ranger_knox_properties http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py index c989730..845cab2 100644 --- a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py @@ -202,3 +202,9 @@ downloaded_custom_connector = format("{tmp_dir}/{jdbc_jar_name}") driver_curl_source = format("{jdk_location}/{jdbc_symlink_name}") driver_curl_target = format("{java_share_dir}/{jdbc_jar_name}") + +if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.3') >= 0: + solr_enabled = default("/configurations/ranger-storm-plugin-properties/XAAUDIT.SOLR.IS_ENABLED", "false") + solr_max_queue_size = default("/configurations/ranger-storm-plugin-properties/XAAUDIT.SOLR.MAX_QUEUE_SIZE", "1") + solr_max_flush_interval = default("/configurations/ranger-storm-plugin-properties/XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS", "1000") + solr_url = default("/configurations/ranger-storm-plugin-properties/XAAUDIT.SOLR.SOLR_URL", "http://localhost:6083/solr/ranger_audits") http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/setup_ranger_storm.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/setup_ranger_storm.py b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/setup_ranger_storm.py index a3cc587..2c837cd 100644 --- a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/setup_ranger_storm.py +++ b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/setup_ranger_storm.py @@ -27,6 +27,7 @@ import os from resource_management import * from resource_management.core.logger import Logger from resource_management.libraries.functions.ranger_functions import Rangeradmin +from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions def setup_ranger_storm(): import params @@ -170,6 +171,12 @@ def ranger_storm_properties(): ranger_storm_properties['SSL_TRUSTSTORE_FILE_PATH'] = params.ssl_truststore_file ranger_storm_properties['SSL_TRUSTSTORE_PASSWORD'] = params.ssl_truststore_password + if params.hdp_stack_version != "" and compare_versions(params.hdp_stack_version, '2.3') >= 0: + ranger_storm_properties['XAAUDIT.SOLR.IS_ENABLED'] = str(params.solr_enabled).lower() + ranger_storm_properties['XAAUDIT.SOLR.MAX_QUEUE_SIZE'] = params.solr_max_queue_size + ranger_storm_properties['XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS'] = params.solr_max_flush_interval + ranger_storm_properties['XAAUDIT.SOLR.SOLR_URL'] = params.solr_url + return ranger_storm_properties http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/stacks/HDP/2.3/services/HBASE/configuration/ranger-hbase-plugin-properties.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HBASE/configuration/ranger-hbase-plugin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HBASE/configuration/ranger-hbase-plugin-properties.xml new file mode 100644 index 0000000..4d5750d --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HBASE/configuration/ranger-hbase-plugin-properties.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<configuration supports_final="true"> + + <property> + <name>XAAUDIT.SOLR.IS_ENABLED</name> + <value>false</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_QUEUE_SIZE</name> + <value>1</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS</name> + <value>1000</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.SOLR_URL</name> + <value>http://localhost:6083/solr/ranger_audits</value> + <description></description> + </property> + +</configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/ranger-hdfs-plugin-properties.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/ranger-hdfs-plugin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/ranger-hdfs-plugin-properties.xml new file mode 100644 index 0000000..4d5750d --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/ranger-hdfs-plugin-properties.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<configuration supports_final="true"> + + <property> + <name>XAAUDIT.SOLR.IS_ENABLED</name> + <value>false</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_QUEUE_SIZE</name> + <value>1</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS</name> + <value>1000</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.SOLR_URL</name> + <value>http://localhost:6083/solr/ranger_audits</value> + <description></description> + </property> + +</configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/ranger-hive-plugin-properties.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/ranger-hive-plugin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/ranger-hive-plugin-properties.xml new file mode 100644 index 0000000..4d5750d --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/ranger-hive-plugin-properties.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<configuration supports_final="true"> + + <property> + <name>XAAUDIT.SOLR.IS_ENABLED</name> + <value>false</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_QUEUE_SIZE</name> + <value>1</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS</name> + <value>1000</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.SOLR_URL</name> + <value>http://localhost:6083/solr/ranger_audits</value> + <description></description> + </property> + +</configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/stacks/HDP/2.3/services/KNOX/configuration/ranger-knox-plugin-properties.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/KNOX/configuration/ranger-knox-plugin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/KNOX/configuration/ranger-knox-plugin-properties.xml new file mode 100644 index 0000000..4d5750d --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/KNOX/configuration/ranger-knox-plugin-properties.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<configuration supports_final="true"> + + <property> + <name>XAAUDIT.SOLR.IS_ENABLED</name> + <value>false</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_QUEUE_SIZE</name> + <value>1</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS</name> + <value>1000</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.SOLR_URL</name> + <value>http://localhost:6083/solr/ranger_audits</value> + <description></description> + </property> + +</configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/admin-properties.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/admin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/admin-properties.xml new file mode 100644 index 0000000..24c27c5 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/admin-properties.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> +<!-- +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<configuration supports_final="false"> + + <property> + <name>audit_store</name> + <value>db</value> + <description>audit_db is solr or db</description> + </property> + + <property> + <name>audit_solr_url</name> + <value>http://localhost:6083/solr/ranger_audits</value> + <description>URL to Solr. E.g. http://solr_host:6083/solr/ranger_audits</description> + </property> + +</configuration> http://git-wip-us.apache.org/repos/asf/ambari/blob/6035a891/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/ranger-storm-plugin-properties.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/ranger-storm-plugin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/ranger-storm-plugin-properties.xml new file mode 100644 index 0000000..4d5750d --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/ranger-storm-plugin-properties.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<configuration supports_final="true"> + + <property> + <name>XAAUDIT.SOLR.IS_ENABLED</name> + <value>false</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_QUEUE_SIZE</name> + <value>1</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS</name> + <value>1000</value> + <description></description> + </property> + + <property> + <name>XAAUDIT.SOLR.SOLR_URL</name> + <value>http://localhost:6083/solr/ranger_audits</value> + <description></description> + </property> + +</configuration> \ No newline at end of file