NVIDIA-AI-IOT / deepstream-occupancy-analytics

This is a sample application for counting people entering/leaving in a building using NVIDIA Deepstream SDK, Transfer Learning Toolkit (TLT), and pre-trained models. This application can be used to build real-time occupancy analytics applications for smart buildings, hospitals, retail, etc. The application is based on deepstream-test5 sample application.
MIT License
221 stars 73 forks source link

Kafka installation problems in ARM64 #2

Closed fiv21 closed 3 years ago

fiv21 commented 4 years ago

Hi! I'm having some problems to install Kafka in ARM64, I recommend to use the Kafka server in a docker image in x86/x64 machine. It will simplify the use case for Jetson devices. Hope you find this useful. Best regards,

Franco.

fiv21 commented 4 years ago

Just in case someone else need the kafka server in a x86/x64 machine and don't want to install by hand, I use this docker compose file

version: "2"

services:
  kafkaserver:
    image: "spotify/kafka:latest"
    container_name: kafka
    hostname: kafkaserver
    networks:
      - kafkanet
    ports:
      - 2181:2181
      - 9092:9092
    environment:
      ADVERTISED_HOST: localhost
      ADVERTISED_PORT: 9092
  kafka_manager:
    image: "mzagar/kafka-manager-docker:1.3.3.4"
    container_name: kafkamanager
    networks:
      - kafkanet
    ports:
      - 9000:9000
    links:
      - kafkaserver
    environment:
      ZK_HOSTS: "localhost:2181"

networks:
  kafkanet:
    driver: bridge

From here, supose you named this file docker-compose.yml you need to build it and this can be done executing in your shell (terminal/powershell/etc...) docker-compose up -d (here the troubleshooting should be docker compose, or something related to that) After your server is up and running you can follow the guide provided in this repo from the point of creating the topic with the command: bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092 you'll need to execute the command from inside the docker using docker exec -it kafka /bin/bash after, you can go to the path /opt/kafka_2.11-0.10.1.0/ Keep in mind this idea try to solve the scenarios where you want to test the solution in a Jetson Device, you don't have a Kafka server already installed and you want to check how it works. And REMEMBER this compose need to be executed in a x86/x64 arch. I hope you find this helpful. All the best,

Franco

mjhuria commented 3 years ago

Thank you fiv21!