Skip to main content

Run Kafka locally

Prerequisites​

How to run Kafka locally​

  1. Open a terminal.
  2. Go to <Solution's root>/various/files/orchestration/kafka/. (Probably with cd)
  3. Run make run.

Ensure that ports 8080, 8082, 9093 and 9094 are free before running it.

How to run the Listener​

Local setup​

  1. Go to file People.Application.Services.EventHubsService.EventHubsService.cs line 357 and remove the following code:

    #if DEBUG
    return true;
    #endif
  2. Run the listener.

Talos Test setup​

  1. Change the local.settings.json.

    The required values are comments in the file itself.

  2. Run az login --tenant "74566a7f-3d73-4abd-bebb-ece0c2e1ad4f" --scope "https://management.core.windows.net//.default" to login to AADE tenant.

  3. Go to file People.Application.Services.EventHubsService.EventHubsService.cs line 357 and remove the following code:

    #if DEBUG
    return true;
    #endif
  4. Go to each KafkaTrigger inside of namespace People.Talos.Esb.Listener.Functions and change #if DEBUG to #if !DEBUG

  5. Run the listener.

Need to setup Azure VPN.