Zmq Sink

The sink will publish the result into a Zero Mq topic.

Compile & deploy plugin

  1. # cd $kuiper_src
  2. # go build -trimpath --buildmode=plugin -o plugins/sinks/Zmq.so plugins/sinks/zmq/zmq.go
  3. # cp plugins/sinks/Zmq.so $kuiper_install/plugins/sinks

Restart the Kuiper server to activate the plugin.

Properties

Property nameOptionalDescription
serverfalseThe url of the Zero Mq server
topictrueThe topic to publish to

Sample usage

Below is a sample for selecting temperature great than 50 degree, and publish the result into Zero Mq topic “temp”.

  1. {
  2. "sql": "SELECT * from demo where temperature>50",
  3. "actions": [
  4. {
  5. "zmq": {
  6. "server": "tcp://127.0.0.1:5563",
  7. "topic": "temp"
  8. }
  9. }
  10. ]
  11. }