Install HertzBeat via Package
You can install and run Apache HertzBeat (incubating) on Linux Windows Mac system, and CPU supports X86/ARM64.
Since version 1.6.0 uses Java 17
and the installation package no longer provides a built-in JDK version, use the new Hertzbeat according to the following situations:
- When the default environment variable on your server is
Java 17
, you do not need to take any action for this step. - When the default environment variable on your server is not
Java 17
, such asJava 8
orJava 11
, and if there are no other applications on your server that require a lower version of Java, download the appropriate version from https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html according to your system, and search the engine for how to set a new environment variable pointing to the newJava 17
. - When the default environment variable on your server is not
Java 17
, such asJava 8
orJava 11
,and you don't want to change the environment variable because if there are other applications on your server that require a lower version of Java, download the appropriate version from https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html according to your system, and rename the extracted folder tojava
, then copy it to the Hertzbeat extraction directory.
Deploy HertzBeat Server
Download installation package
Download installation package
apache-hertzbeat-xxx-incubating-bin.tar.gz
corresponding to your system environmentConfigure HertzBeat's configuration file(optional)
Unzip the installation package to the host eg: /opt/hertzbeat
tar zxvf apache-hertzbeat-xxx-incubating-bin.tar.gz
tipThe configuration file is located in
config/application.yml
, you can modify the configuration file according to your needs to configure external dependent services, such as databases, time series databases, etc. HertzBeat defaults to using internal services when started, but it is recommended to switch to external database services in production environments.It is recommended to use PostgreSQL for metadata storage and VictoriaMetrics for metric data storage. Specific steps are as follows
Configure the account file(optional)
HertzBeat default built-in three user accounts, respectively
admin/hertzbeat tom/hertzbeat guest/hertzbeat
If you need modify account or password, configureconfig/sureness.yml
. For detail steps, please refer to Configure Account PasswordStart the service
Execute the startup script in the installation directory
bin/
, orstartup.bat
in windows../startup.sh
Begin to explore HertzBeat
Access http://ip:1157/ using browser. You can explore HertzBeat with default account
admin/hertzbeat
now!
Deploy HertzBeat Collector Cluster(Optional)
HertzBeat Collector is a lightweight data collector used to collect and send data to HertzBeat Server. Deploying multiple HertzBeat Collectors can achieve high availability, load balancing, and cloud-edge collaboration of data.
Download installation package
Download installation package
apache-hertzbeat-collector-xxx-incubating-bin.tar.gz
corresponding to your system environmentConfigure the collector configuration file
Unzip the installation package to the host eg: /opt/hertzbeat-collector
tar zxvf apache-hertzbeat-collector-xxx-incubating-bin.tar.gz
Configure the collector configuration yml file
config/application.yml
: uniqueidentity
name, runningmode
(public or private), hertzbeatmanager-host
, hertzbeatmanager-port
collector:
dispatch:
entrance:
netty:
enabled: true
identity: ${IDENTITY:}
mode: ${MODE:public}
manager-host: ${MANAGER_HOST:127.0.0.1}
manager-port: ${MANAGER_PORT:1158}Parameters detailed explanation
identity
: (optional) Set the unique identifier name of the collector. Note that the name of the collector must be unique when there are multiple collectors.mode
: Configure the running mode (public or private), public cluster mode or private cloud-edge mode.manager-host
: Important, configure the address of the connected HertzBeat Server,manager-port
: (optional) Configure the port of the connected HertzBeat Server, default 1158.
Start the service
Run command
$ ./bin/startup.sh
orbin/startup.bat
Begin to explore HertzBeat Collector
Access
http://ip:1157
and you will see the registered new collector in dashboard
HAVE FUN
FAQ
you need to prepare the JAVA environment in advance
Install JAVA runtime environment-refer to official website requirement:JDK17 ENV download JAVA installation package: mirror website After installation use command line to check whether you install it successfully.
$ java -version
java version "17.0.9"
Java(TM) SE Runtime Environment 17.0.9 (build 17.0.9+8-LTS-237)
Java HotSpot(TM) 64-Bit Server VM 17.0.9 (build 17.0.9+8-LTS-237, mixed mode)According to the process deploy,visit http://ip:1157/ no interface Please refer to the following points to troubleshoot issues:
1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully.
2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration filehertzbeat/config/application.yml
.
3:Check whether the running log has errors inhertzbeat/logs/
directory. If you haven't solved the issue, report it to the communication group or community.