blob: 4b9ad00143bf221833d9f8daffc7142ab229c8ae [file] [log] [blame]
<?xml version="1.0"?>
<!--
/**
* 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>
<property>
<name>xasecure.audit.is.enabled</name>
<value>true</value>
<description>Is Audit enabled?</description>
<value-attributes>
<type>boolean</type>
</value-attributes>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.hdfs</name>
<value>true</value>
<display-name>Audit to HDFS</display-name>
<description>Is Audit to HDFS enabled?</description>
<value-attributes>
<type>boolean</type>
</value-attributes>
<depends-on>
<property>
<type>ranger-env</type>
<name>xasecure.audit.destination.hdfs</name>
</property>
</depends-on>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.hdfs.dir</name>
<value>hdfs://NAMENODE_HOSTNAME:8020/ranger/audit</value>
<description>HDFS folder to write audit to, make sure the service user has requried permissions</description>
<depends-on>
<property>
<type>ranger-env</type>
<name>xasecure.audit.destination.hdfs.dir</name>
</property>
</depends-on>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.hdfs.batch.filespool.dir</name>
<value>/var/log/hive/audit/hdfs/spool</value>
<description>/var/log/hive/audit/hdfs/spool</description>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.solr</name>
<value>false</value>
<display-name>Audit to SOLR</display-name>
<description>Is Solr audit enabled?</description>
<value-attributes>
<type>boolean</type>
</value-attributes>
<depends-on>
<property>
<type>ranger-env</type>
<name>xasecure.audit.destination.solr</name>
</property>
</depends-on>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.solr.urls</name>
<value/>
<description>Solr URL</description>
<value-attributes>
<empty-value-valid>true</empty-value-valid>
</value-attributes>
<depends-on>
<property>
<type>ranger-admin-site</type>
<name>ranger.audit.solr.urls</name>
</property>
</depends-on>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.solr.zookeepers</name>
<value>NONE</value>
<description>Solr Zookeeper string</description>
<depends-on>
<property>
<type>ranger-admin-site</type>
<name>ranger.audit.solr.zookeepers</name>
</property>
</depends-on>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.destination.solr.batch.filespool.dir</name>
<value>/var/log/hive/audit/solr/spool</value>
<description>/var/log/hive/audit/solr/spool</description>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>xasecure.audit.provider.summary.enabled</name>
<value>false</value>
<display-name>Audit provider summary enabled</display-name>
<description>Enable Summary audit?</description>
<value-attributes>
<type>boolean</type>
</value-attributes>
<on-ambari-upgrade add="false"/>
</property>
<property>
<name>ranger.plugin.hive.ambari.cluster.name</name>
<value>{{cluster_name}}</value>
<description>Capture cluster name from where Ranger hive plugin is enabled.</description>
<value-attributes>
<empty-value-valid>true</empty-value-valid>
</value-attributes>
<on-ambari-upgrade add="false"/>
</property>
</configuration>