Using the HPE Ezmeral Data Fabric Event Store for S3 Bucket Event Notifications

You can use the HPE Ezmeral Data Fabric Event Store to receive event notifications for buckets, for example, when an object is created in a bucket. Install the event store, create a stream and topic, and then enable notifications through the MinIO client (MC) located in /opt/mapr/objectstore-client/objectstore-client-<version>/util/mc.

Enabling Bucket Notification

Note: Object Store 2.1.0 does not support integration with HPE Ezmeral Data Fabric Event Store. The configuration is specifically for Object Store 2.0.x only.
To enable bucket-notification functionality, complete the following steps:
  1. Install the mapr-kafka* package:
    zypper|yum|apt-get install mapr-kafka
  2. Create a stream and topic:
    maprcli stream create -path /path/to/stream
    
    maprcli stream topic create -path /path/to/stream -topic nameOfTopic
  3. Add a new channel by using MC:
    mc admin config set myminio notify_kafka:1 queue_dir=""
    queue_limit="0" topic="/path/to/stream:nameOfTopic"
  4. Restart the object store.
Now you can add events for notifications. For more information, see step 3 in this MinIO article.

Reading a Topic

To read a topic:
/opt/mapr//kafka/kafka-<version>/bin/kafka-console-consumer.sh --topic
/path/to/stream:nameOfTopic --bootstrap-server some:9092 --from-beginning