Run Elastic Stream using docker compose.
wget https://raw.githubusercontent.com/lizhanhui/elastic-stream/develop/dist/docker-compose/docker-compose.yaml
docker-compose up -d elastic-stream
git clone https://github.com/lizhanhui/elastic-stream.git
cd elastic-stream
# Run Rust example
cargo run --example main
# Run Java example
java -jar sdks/frontend-java/examples/target/examples-1.0-SNAPSHOT-jar-with-dependencies.jar
Download deb file from latest release.
# Please change the file name to match your OS architecture.
dpkg -i pd_0.2.8_amd64.deb
dpkg -i range-server_0.2.8_amd64.deb
pd
range-server start --config etc/range-server.yaml --log etc/range-server-log.yaml
git clone https://github.com/lizhanhui/elastic-stream.git
cd elastic-stream
# Run Rust example
cargo run --example main
# Run Java example
java -jar sdks/frontend-java/examples/target/examples-1.0-SNAPSHOT-jar-with-dependencies.jar
If there is no pre-built package for your OS or you just want to try, follow the steps below to build from source.
git clone https://github.com/lizhanhui/elastic-stream.git
cd elastic-stream
sudo ./scripts/install_deps.sh
Notice: Placement Driver use docker to build
# Install build tools
sudo apt-get update
sudo apt-get install -y make docker.io
cd pd
make
./bin/${OS}_${ARCH}/pd --version
# Install nightly rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default nightly
cargo build --bin range-server --release
target/release/range-server --version
# Install Java
sudo apt-get update
sudo apt-get install -y openjdk-17-jdk maven
./sdks/build.sh