run
Installation
SKILL.md
Build and Basic Instructions
After executing mvn clean package -DskipUTs, the target directory under the project root will contain the dongting-dist directory, which includes:
- bin: Various startup and shutdown scripts, each providing bat/ps1/sh formats; examples below use sh format
- lib: Dependency JAR directory
- conf: Configuration file directory
- logs: Log file directory
- data: Data directory, generated at runtime
bin
- start-dongting.sh: Starts the dongting (DtKV) server; after execution, the Java process runs in the background. Entry point is the Bootstrap class.
- stop-dongting.sh: Stops the dongting (DtKV) server; after execution, the process exits
- benchmark.sh: Runs the benchmark; after execution, the process exits. Running without parameters prints usage. Entry point is the DtBenchmark class.
- dongting-admin.sh: Runs the O&M tool; after execution, the process exits. Running without parameters prints usage. Entry point is the DtAdmin class.
After build completes, if start-dongting.sh is run without any modifications, it will start a single-node cluster by default, listening on port 9331 (replicatePort) and 9332 (servicePort), with nodeId 1, containing a DtKV server with groupId 0.
All scripts except stop-dongting start a Java process. The JDK can be specified by setting JAVA_HOME environment variable.
Related skills