Enabling Ranger Solr Audits

To enable Solr auditing for the supported components in the ODP stack, the following properties must be validated in Ranger.

  1. Ensure Ranger is enabled for all components. The Ranger service must be created in the Ranger UI, the service test connection and policies are working.
  2. In the Ambari UI, navigate to Ranger > Configs> RANGER AUDIT,:
    1. Enable Audit to Solr.
    2. Verify the following properties.
Bash
Copy
  1. Save and restart all required services.

Refer to the following documentation pages to enable Solr auditing for the individual components.

HDFS

  1. In the Ambari UI, navigate to HDFS > Configs > Advanced ranger-hdfs-audit, and enable Audit to Solr.
  2. In Advanced ranger-hdfs-audit, verify the following properties.
Bash
Copy

YARN

  1. In the Ambari UI, navigate to YARN > Configs > Advanced ranger-yarn-audit, and enable Audit to Solr.
  2. In Advanced ranger-yarn-audit, verify the following properties.
Bash
Copy

Hive

  1. In the Ambari UI, navigate to Hive > Configs > Advanced ranger-hive-audit, and enable Audit to Solr.
  2. In Advanced ranger-hive-audit, verify the following properties.
Bash
Copy

Impala

Impala — Audit to HDFS is enabled with Hive by default; no additional settings are required.

HBase

  1. In the Ambari UI, navigate to HBase > Configs > Advanced ranger-hbase-audit, and enable Audit to Solr.
  2. In Advanced ranger-hbase-audit, verify the following properties.
Bash
Copy

Kafka

  1. In the Ambari UI, navigate to Kafka in the left pane > Configs> Advanced ranger-kafka-audit, and enable Audit to Solr.
  2. In Advanced ranger-kafka-audit, verify the following properties.
Bash
Copy

Kafka3

  1. In the Ambari UI, navigate to Kafka 3 in the left pane > Configs> Advanced ranger-kafka3-audit, and enable Audit to Solr.
  2. In Advanced ranger-kafka3-audit, verify the following properties.
Bash
Copy

Ozone

  1. In the Ambari UI, navigate toOzone in the left pane > Configs > Advanced ranger-ozone-audit, and enable Audit to Solr.
  2. In Advanced ranger-ozone-audit, verify the following properties.
Bash
Copy

RangerKMS

  1. In the Ambari UI, navigate to RangerKMS in the left pane > Configs > Advanced ranger-kms-audit, and enable Audit to Solr.
  2. In Advanced ranger-kms-audit, verify the following properties.
Bash
Copy

Kudu

Before enabling Ranger HDFS audit for Kudu, ensure the required Ranger policies are in place as outlined in the documentation: Security. On this page, see Ranger.

  1. In the Ambari UI, navigate to Kudu in the left pane > Configs > Advanced ranger-kudu-audit, and enable Audit to Solr.
  2. In Advanced ranger-kudu-audit, verify the following properties.
Bash
Copy

Schema Registry

Before enabling Ranger HDFS audit for Schema Registry, ensure the required Ranger policies are in place as outlined in the documentation: Installation. On this page, see Ranger Configuration.

  1. In the Ambari UI, navigate to Schema Registry > Configs > Advanced ranger-schema-registry-audit, and enable Audit to Solr.
  2. In Advanced ranger-schema-registry-audit, verify the following properties.
Bash
Copy

Additional Steps for Kerberos enabled Environment

  1. Create the JAAS configuration file. Path: /etc/registry/conf/schema-registry_jaas.conf
Bash
Copy
  1. Update the registry-env template. Append the following line to export the JAAS config.
Bash
Copy
  1. In Schema Registry, under Custom ranger-schema-registry-audit, verify the following properties.
Bash
Copy

Knox

  1. In the Ambari UI, navigate to Knox in the left pane > Configs > Advanced ranger-knox-audit, and enable Audit to Solr.
  2. In Advanced ranger-knox-audit, verify the following properties.
Bash
Copy
  1. Also, verify that the file /usr/odp/current/knox-server/conf/knox-gateway-jaas.conf exists, as it is required for authenticating with Infra Solr for audit logging. It must contain the following configuration.
Bash
Copy

NiFi

Before enabling Solr audit for NiFi, ensure the required Ranger policies are in place as outlined in the documentation: NiFi Installation and SSL Enablement. On this page, see Ranger Configuration.

  1. In the Ambari UI, navigate to NiFi > Configs > Advanced ranger-nifi-audit, and enable Audit to Solr.
  2. Verify the following properties under Advanced ranger-nifi-audit.
Bash
Copy

NiFi Registry

Before enabling Solr audit for NiF-Registry, ensure the required Ranger policies are in place as outlined in the documentation: Installing NiFi Registry. On this page, see see Ranger Configuration.

  1. Add nifiregistry to the Ranger audit service users in Advanced infra-solr-security-json:
Bash
Copy
  1. Save and restart both Ambari Infra and NiFi Registry.
  2. In the Ambari UI, navigate to NiFi Registry > Configs > Advanced ranger-nifi-registry-audit, and enable Audit to Solr.
  3. Verify the following properties under Advanced ranger-nifi-registry-audit.
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated