Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
Matt Clarke edited this page Feb 27, 2017 · 1 revision

Welcome to the ad-kafka-interface wiki!

Getting it up and running on an EEE machine

Setting up the EEE machine to have the right versions of EPICS etc,

Edit /etc/profile.d/ess_epics_env.sh: Set EPICS_ENVIRONMENT_VERSION to 1.8.2 Set EPICS base to 3.15.4, in numerous places :(

Building the ad-kafka-interface

git clone https://github.com/ess-dmsc/ad-kafka-interface.git

Start with the unit tests:

  • Install flatbuffers
  • Install RDKafka later than 9.3
  • Update CMAKE file

Run tests to check they pass.

Build the EPICS stuff:

  • cd to m-epics-ADKafka

  • edit EEEmakefile to modify/add:

LIBRDKAFKA_PATH = /opt/librdkafka/lib
USR_INCLUDES += -I/opt/librdkafka/include -I/opt/flatbuffers/include

Build it:

make -f EEEmakefile install

Repeat for m-epics-ADPluginKafka

Run the demo

m-epics-ADPluginKafka/startup has a demo script, edit it to connect to your kafka broker.

Do the same thing for the demo script in m-epics-ADPluginKafka/startup

From m-epics-ADKafka/startup:

iocsh -r ADPluginKafka,1.0-BETA -c "requireSnippet(ADKafka_demo.cmd)"

From m-epics-ADPluginKafka/startup:

iocsh -r ADPluginKafka,1.0-BETA -c "requireSnippet(ADPluginKafka_demo.cmd)"

To visualise, clone https://github.com/SkyToGround/SimplePythonKafkaConsumer and follow the instructions for that.