How to Run or Build HertzBeat?
Getting HertzBeat code up and running
To get HertzBeat code running on your development tools, and able to debug with breakpoints. This is a front-end and back-end separation project. To start the local code, the back-end manager and the front-end web-app must be started separately.
Backend start
- Requires
maven3+,java17andlombokenvironments - (Optional) Modify the configuration file:
manager/src/main/resources/application.yml - Execute under the project root directory:
mvn clean install -DskipTests - Add VM Options:
--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED - Start
springboot managerservice:manager/src/main/java/org/apache/hertzbeat/hertzbeat-manager/Manager.java
Frontend start
Need
Node YarnEnvironment, Make sureNode.js >= 18Cd to the
web-appdirectory:cd web-appInstall yarn if not existed
npm install -g yarnInstall Dependencies:
yarn installoryarn install --registry=https://registry.npmmirror.cominweb-appAfter the local backend is started, start the local frontend in the web-app directory:
yarn startBrowser access to localhost:4200 to start, default account/password is admin/hertzbeat
Build HertzBeat binary package
Requires
maven3+,java17,nodeandyarnenvironments.
Frontend build
Need
Node YarnEnvironment, Make sureNode.js >= 18Cd to the
web-appdirectory:cd web-appInstall yarn if not existed
npm install -g yarnInstall Dependencies:
yarn installoryarn install --registry=https://registry.npmmirror.cominweb-appBuild web-app:
yarn package
Backend build
Requires
maven3+,java17environmentsExecute under the project root directory:
mvn clean package -Prelease
The HertzBeat install package will at dist/hertzbeat-{version}.tar.gz
Collector build
Requires
maven3+,java17environmentsExecute under the project root directory:
mvn clean installCd to the
hertzbeat-collectordirectory:cd hertzbeat-collectorExecute under
hertzbeat-collectordirectory:mvn clean package -Pcluster
The HertzBeat collector package will at dist/hertzbeat-collector-{version}.tar.gz