openGemini-forwarder

module
v0.0.0-...-fbb851a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: Apache-2.0

README

openGemini-forwarder

High-performance data access middleware. For example, Kafka data can be consumed, converted and written into openGemini.

Currently, it is only a framework, and the specific functions will take some time to complete.

Quick Start

This section mainly contains the following:

  • How to compile forwarder source code
  • How to run forwarder
Compiling environment information

GO version v1.18+

Python version v3.7+

How to set GO environment variables

Open ~/.profile configuration file and add the following configurations to the end of the file:

export GOPATH=/path/to/dir
export GOBIN=$GOPATH/bin
export GO111MODULE=on
export GONOSUMDB=*
export GOSUMDB=off
Compiling
  1. Clone source codes from Github
> cd $GOPATH
> mkdir -p {pkg,bin,src}
> cd src
> git clone https://github.com/openGemini/openGemini-forwarder.git
  1. Enter the home directory
> cd openGemini-forwarder
  1. Compiling
> python build.py --clean

The compiled binary file is in the build directory

> ls build
ts-forwarder
Configuration

The configuration file is in the config directory.

Run forwarder

Standalone operation

> mkdir -p /tmp/openGemini/logs/

Refer to cluster deployments in User Guide

Deploy openGemini

Refer to openGemini User Guide

Deploy kafka

Refer to kafka doc

Create kafka topic

Refer to kafka doc

bin/kafka-topics.sh --create --bootstrap-server 127.0.0.1:9093 --replication-factor 1 --partitions 1 --topic test-xx
Start forwarder
build/ts-forwarder --config config/forwarder.conf

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL