| # 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. | |
| # | |
| # Location of Policy Manager URL | |
| # | |
| # Example: | |
| # POLICY_MGR_URL=http://policymanager.xasecure.net:6080 | |
| # | |
| POLICY_MGR_URL= | |
| # | |
| # Location of db client library (please check the location of the jar file) | |
| # | |
| # Example: | |
| # SQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jar | |
| # SQL_CONNECTOR_JAR=/usr/share/java/ojdbc6.jar | |
| # | |
| SQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jar | |
| # | |
| # This is the repository name created within policy manager | |
| # | |
| # Example: | |
| # REPOSITORY_NAME=hivedev | |
| # | |
| REPOSITORY_NAME= | |
| # | |
| # AUDIT DB Configuration | |
| # | |
| # This information should match with the one you specified during the PolicyManager Installation | |
| # | |
| # Example: | |
| # XAAUDIT.DB.IS_ENABLED=true | |
| # XAAUDIT.DB.FLAVOUR=MYSQL | |
| # XAAUDIT.DB.FLAVOUR=ORACLE | |
| # XAAUDIT.DB.HOSTNAME=localhost | |
| # XAAUDIT.DB.DATABASE_NAME=ranger_audit | |
| # XAAUDIT.DB.USER_NAME=rangerlogger | |
| # XAAUDIT.DB.PASSWORD=rangerlogger | |
| # | |
| XAAUDIT.DB.IS_ENABLED=false | |
| XAAUDIT.DB.FLAVOUR=MYSQL | |
| XAAUDIT.DB.HOSTNAME= | |
| XAAUDIT.DB.DATABASE_NAME= | |
| XAAUDIT.DB.USER_NAME= | |
| XAAUDIT.DB.PASSWORD= | |
| # | |
| # Audit to HDFS Configuration | |
| # | |
| # If XAAUDIT.HDFS.IS_ENABLED is set to true, please replace tokens | |
| # that start with __REPLACE__ with appropriate values | |
| # XAAUDIT.HDFS.IS_ENABLED=true | |
| # XAAUDIT.HDFS.DESTINATION_DIRECTORY=hdfs://__REPLACE__NAME_NODE_HOST:8020/ranger/audit/%app-type%/%time:yyyyMMdd% | |
| # XAAUDIT.HDFS.LOCAL_BUFFER_DIRECTORY=__REPLACE__LOG_DIR/hive/audit/%app-type% | |
| # XAAUDIT.HDFS.LOCAL_ARCHIVE_DIRECTORY=__REPLACE__LOG_DIR/hive/audit/archive/%app-type% | |
| # | |
| # Example: | |
| # XAAUDIT.HDFS.IS_ENABLED=true | |
| # XAAUDIT.HDFS.DESTINATION_DIRECTORY=hdfs://namenode.example.com:8020/ranger/audit/%app-type%/%time:yyyyMMdd% | |
| # XAAUDIT.HDFS.LOCAL_BUFFER_DIRECTORY=/var/log/hive/audit/%app-type% | |
| # XAAUDIT.HDFS.LOCAL_ARCHIVE_DIRECTORY=/var/log/hive/audit/archive/%app-type% | |
| # | |
| XAAUDIT.HDFS.IS_ENABLED=false | |
| XAAUDIT.HDFS.DESTINATION_DIRECTORY=hdfs://__REPLACE__NAME_NODE_HOST:8020/ranger/audit/%app-type%/%time:yyyyMMdd% | |
| XAAUDIT.HDFS.LOCAL_BUFFER_DIRECTORY=__REPLACE__LOG_DIR/hive/audit/%app-type% | |
| XAAUDIT.HDFS.LOCAL_ARCHIVE_DIRECTORY=__REPLACE__LOG_DIR/hive/audit/archive/%app-type% | |
| XAAUDIT.HDFS.DESTINTATION_FILE=%hostname%-audit.log | |
| XAAUDIT.HDFS.DESTINTATION_FLUSH_INTERVAL_SECONDS=900 | |
| XAAUDIT.HDFS.DESTINTATION_ROLLOVER_INTERVAL_SECONDS=86400 | |
| XAAUDIT.HDFS.DESTINTATION_OPEN_RETRY_INTERVAL_SECONDS=60 | |
| XAAUDIT.HDFS.LOCAL_BUFFER_FILE=%time:yyyyMMdd-HHmm.ss%.log | |
| XAAUDIT.HDFS.LOCAL_BUFFER_FLUSH_INTERVAL_SECONDS=60 | |
| XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS=600 | |
| XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT=10 | |
| # | |
| # SSL Client Certificate Information | |
| # | |
| # Example: | |
| # SSL_KEYSTORE_FILE_PATH=/etc/hive/conf/ranger-plugin-keystore.jks | |
| # SSL_KEYSTORE_PASSWORD=none | |
| # SSL_TRUSTSTORE_FILE_PATH=/etc/hive/conf/ranger-plugin-truststore.jks | |
| # SSL_TRUSTSTORE_PASSWORD=none | |
| # | |
| # You do not need use SSL between agent and security admin tool, please leave these sample value as it is. | |
| # | |
| SSL_KEYSTORE_FILE_PATH=/etc/hive/conf/ranger-plugin-keystore.jks | |
| SSL_KEYSTORE_PASSWORD=myKeyFilePassword | |
| SSL_TRUSTSTORE_FILE_PATH=/etc/hive/conf/ranger-plugin-truststore.jks | |
| SSL_TRUSTSTORE_PASSWORD=changeit | |
| # | |
| # Should Hive GRANT/REVOKE update XA policies? | |
| # | |
| # Example: | |
| # UPDATE_XAPOLICIES_ON_GRANT_REVOKE=true | |
| # UPDATE_XAPOLICIES_ON_GRANT_REVOKE=false | |
| # | |
| UPDATE_XAPOLICIES_ON_GRANT_REVOKE=true |