Skip to content

Running Frontend out of the box fails because default mode is TEST_MODE=True and requires stream creation per README #4

@EyalEnav

Description

@EyalEnav

Running /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-retail-analytics/ds-retail-iva-frontend$ python3 manage.py runserver 0.0.0.0:8000 out of the box as described in main README fails on "No TEST_STREAM" ,

This happens because default in config.py is TEST_MODE=True but per README.md
Need to create stream first (solves the test mode fail): Quote from README
"

Generating random data for testing

  • random_message_generator.py can be used to generate fake kafka message data and deliver it to the kafka server.

  • Although, kafka server creates the topic as messages are delivered, we have to explicitly create a kSQL stream. It is important to create the stream since the dashboard is entirely dependant on the kSQL stream. Follow the instructions given in the parent application's README to create a stream.

CREATE STREAM TEST_STREAM (
messageid varchar,
mdsversion varchar,
timestamp varchar,
object struct<
    id varchar,
    speed int,
    direction int,
    orientation int,
    detection varchar,
    obj_prop struct<
        hasBasket varchar,
        confidence double>,
    bbox struct<
        topleftx int,
        toplefty int,
        bottomrightx int,
        bottomrighty int>>,
event_des struct<
    id varchar,
    type varchar>,
videopath varchar) WITH (
    KAFKA_TOPIC='detections',
    VALUE_FORMAT='JSON',
    TIMESTAMP='timestamp',
    TIMESTAMP_FORMAT='yyyy-MM-dd''T''HH:mm:ss.SSS''Z''');

"

Solution should be update main README to guide the necessary TEST_STREAM creation before running frontend ,Or set TEST_MODE default to False.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions