High-performance data access middleware. For example, Kafka data can be consumed, converted and written into openGemini.
This section mainly contains the following:
- How to compile forwarder source code
- How to run forwarder
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
- Clone source codes from Github
> cd $GOPATH
> mkdir -p {pkg,bin,src}
> cd src
> git clone https://github.com/openGemini/openGemini-forwarder.git
- Enter the home directory
> cd openGemini-forwarder
- Compiling
> python build.py --clean
The compiled binary file is in the build directory
> ls build
ts-forwarder
The configuration file is in the config directory.
Standalone operation
> mkdir -p /tmp/openGemini/logs/
Refer to cluster deployments in User Guide
Refer to openGemini User Guide
Refer to kafka doc
Refer to kafka doc
bin/kafka-topics.sh --create --bootstrap-server 127.0.0.1:9093 --replication-factor 1 --partitions 1 --topic test-xx
build/ts-forwarder --config config/forwarder.conf