Skip to content

A simple HTTP server that can be used to write JSON events to a Pravega stream

Notifications You must be signed in to change notification settings

chennv4/pravega-ingest-gateway

 
 

Repository files navigation

Pravega Ingest Gateway

The Pravega Ingest Gateway is a simple HTTP server that can be used to write JSON events to a Pravega stream.

Deploy to SDP using Helm

  1. Copy the file scripts/env-sample.sh to scripts/env-local.sh. This script will contain parameters for your environment.

  2. You can enable TLS (HTTPS) with a private Certificate Authority with these steps. This method is intended only for development and testing environments.

    cd ssl
    ./create-dev-all.sh
    ./load-secrets.sh
  3. Copy the sample values file from values/samples/pravega-ingest-gateway.yaml to values/local/pravega-ingest-gateway.yaml or any other destination. You may name this file anything, but you must use alphanumeric characters and dashes only.

  4. Edit this file to use your Pravega stream name and HTTP server FQDN.

  5. Deploy the Pravega Ingest Gateway using Helm.

    scripts/deploy.sh values/local/pravega-ingest-gateway.yaml
  6. Send a test event.

    scripts/send-test-event.sh

Run Gateway in Docker

scripts/build.sh
scripts/deploy-docker.sh

Run Gateway Locally

export PRAVEGA_CONTROLLER=tcp://localhost:9090
../gradlew run

Send Test Event

scripts/send-test-event.sh

About

A simple HTTP server that can be used to write JSON events to a Pravega stream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 60.1%
  • Shell 34.2%
  • Dockerfile 5.7%