Prerequisite Setup
Users can choose to install Neuorn and eKuiper separately, and use docker-compose to install and configure them directly. The docker-compose.yml example is as follows, and the installed version can be selected according to requirements.
services:
ekuiper-manager:
image: emqx/ekuiper-manager:1.5.0
container_name: ekuiper-manager
ports:
- "9082:9082"
ekuiper:
image: lfedge/ekuiper:1.5.1-slim
hostname: ekuiper
container_name: ekuiper
ports:
- "127.0.0.1:20498:20498"
environment:
KUIPER__BASIC__CONSOLELOG: "true"
KUIPER__BASIC__IGNORECASE: "false"
volumes:
- nng-ipc:/tmp
neuron:
image: emqx/neuron:2.3.0
hostname: neuron
container_name: neuron
ports:
- "7000:7000"
volumes:
- nng-ipc:/tmp
source:
image: alpine/httpie
container_name: httpie
- --check-status
- ekuiper:9081/streams
- sql=CREATE STREAM neuronStream() WITH (TYPE="neuron",FORMAT="json",SHARED="true");
depends_on:
- ekuiper
- neuron
volumes:
nng-ipc:%
After successful execution, Neuron and eKuiper have been started respectively.
Login to kuiper-manager.
- Address:
http://$yourhost:9082
- User name: admin
- Password: public
Add the service as shown.
TIP
The address in Endpoint should fill in the local address where eKuiper is launched.
After adding the service, because docker-compose has created a data stream, there should be a neuronStream stream in the newly created service.
For the specific operation of eKuiper, please refer to
Dashboard
When you install a .deb or .rpm Neuron package, there is a default data-stream-processing
application node in the northbound application management screen, as shown below.
The data stream processing node contains the following information
- Application Name - data-stream-processing
- Status - Running
- State Change Button - ON
- Connection Status - Disconnected
- Plugin Module Name - ekuiper
Click on any blank space of the data-stream-processing
application node to enter the Group list screen for subscribing to the group, as shown below.
To subscribe the data Groups of southbound device,
- Click on the
Add subscription
button in the top right corner. - Click on the drop down box to select the southbound device, in this case, we select the modbus-tcp-1 device built above.
- Select the Group you want to subscribe to in the drop-down box, in this case, we select the group-1 created above.
- Click on
Submit
button to complete the subscription.