-
Notifications
You must be signed in to change notification settings - Fork 31
Run Kafka VDMS Example
All the sample files of these instructions are in the distributed folder in VDMS.
The folder contains the following files:
-
docker-compose.yml
runs one kafka-broker (broker:19092
), one zookeeper server (2181
) and two VDMS servers (localhost:55560
,localhost:55561
). If you are under proxy, use this command to run the file:docker-compose build --build-arg "HTTP_PROXY=$HTTP_PROXY" --build-arg "HTTPS_PROXY=$HTTPS_PROXY" --build-arg "http_proxy=$HTTP_PROXY" --build-arg "https_proxy=$HTTPS_PROXY"
. If you are not behind a proxy, use:docker-compose up -d
where-d
launches it in detached mode. -
kafka_sender.h
andkafka_receiver.h
are header files that configure the connection between application code, vdms, and Kafka. These have been configured to accept the largest message size to accept the blob size like images and descriptors. -
helper.h
is a header which contains the sample queries (meta_data, images, descriptors) to VDMS. Also, it contains the code that converts the query from string to proto message and vice versa. -
Example applications:
To run the example that inserts metadata to a VDMS server via port 55561 (kafka_test.cpp
), in build folder of VDMS, run the following:./distributed/meta_data
.
To run the example that simulate the behavior of multi-modal (sending blob image, descriptors and metadata) to the same VDMS server via port 55561 (multi_modal.cpp
), run the following:./distributed/image_data
.
To run the example that inserts metadata for multiple topics to a VDMS server via port 55561 (adaptive_platform.cpp
), run the following:./distributed/multi-modal
.
Visual Data Management System - Intel Labs
FLINNG Library and Performance
Basic Building Blocks
Insert
- AddBlob
- AddBoundingBox
- AddConnection
- AddDescriptor
- AddDescriptorSet
- AddEntity
- AddImage
- AddVideo
- NeoAdd
Query
- ClassifyDescriptor
- FindBlob
- FindBoundingBox
- FindConnection
- FindDescriptor
- FindDescriptorSet
- FindEntity
- FindFrames
- FindImage
- FindVideo
- NeoFind
Update