Skip to content

Conversation

@dntjr8096
Copy link

@dntjr8096 dntjr8096 commented Jun 23, 2024

What changes were proposed in this pull request?

How was this patch tested?

I built and tested it on my internal Hadoop cluster. In the internal cluster, we are producing Impala ranger audit logs to a Kafka cluster & HDFS.

The Hadoop environment is as follows

  • Hadoop: 3.3.4
  • Ranger : 2.3.0
  • Impala : 4.5.0

…fka producer config

When using MultiDestAuditProvider, AuditProviderFactory calls
init(props, basePropertyName), but KafkaAuditProvider only had
init(props) overridden, causing KafkaAuditProvider initialization
to be skipped.

Additionally, the existing code used deprecated Kafka 0.8.x producer
configuration (metadata.broker.list, serializer.class) which is
incompatible with modern Kafka clients.

Changes:
- Add init(props, basePropertyName) override to ensure proper initialization
- Migrate from deprecated Kafka 0.8.x config to ProducerConfig constants
- Support dynamic Kafka configuration via 'xasecure.audit.kafka.*' properties
@dntjr8096 dntjr8096 changed the title RANGER-4808 : Enhance KafkaAuditProvider for Audit V3 RANGER-4808: Fix KafkaAuditProvider initialization and modernize Kafka prodcuer config Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant