Engine Description
Starting from Hengshi-sense:4.3, an embedded Doris engine is provided. If you have specific requirements for the engine type, please confirm the engine type with the staff before obtaining the installation upgrade package.
Doris Engine Configuration
Engine configuration needs to be set before startup in the conf/hengshi-sense-env.sh
file under the installation root directory. The export
keyword must be added before the variables. The relevant field descriptions are as follows:
Field | Required | Type | Description |
---|---|---|---|
DORIS_FE_HOSTS | No | ARRAY | Doris engine Fe (Frontend) deployment machine information. This option is mandatory when the deployment environment has virtual network cards or the machine has multiple network cards. (10.10.10.x) (10.10.10.x 10.10.12.x) |
DORIS_BE_HOSTS | No | ARRAY | Doris engine Be (Backend) deployment machine information. This option is mandatory when the deployment environment has virtual network cards or the machine has multiple network cards. (10.10.10.x) (10.10.10.x 10.10.12.x) |
DORIS_FE_QUERY_PORT | No | INTEGER | Doris FE query connection port via MySQL protocol. Default value: 9030 |
DORIS_BE_BE_PORT | No | INTEGER | Port number of the Thrift server on BE, used to receive requests from FE. Default value: 9060 |
HS_DORIS_ENGINE_DATASET_DATAB | No | STRING | Business database name used internally by HENGSHI SENSE, storing dataset-related information. |
HS_DORIS_ENGINE_TMP_DATABASE | No | STRING | Business database name used internally by HENGSHI SENSE, storing temporary tables and data integration file information. |
HS_DORIS_ENGINE_OUTPUT_DATABASE | No | STRING | Business database name used internally by HENGSHI SENSE, storing public data information. |
HS_DORIS_ENGINE_USER | No | STRING | Internal Doris user name provided by HENGSHI SENSE. |
HS_DORIS_ENGINE_PWD | No | STRING | Internal Doris user password provided by HENGSHI SENSE. |
Notes
1. In a VM standalone deployment environment, if there are multiple network interfaces or virtual network interfaces in the environment, the conf/hengshi-sense-env.sh
configuration file must configure the DORIS_FE_HOSTS
and DORIS_BE_HOSTS
parameters to avoid startup failures due to network factors.
shell
ip addr | sed -rn '/docker/{N;N;/inet/d}; s/127.0.0.1//; s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
# Multiple IPs are output as a result, indicating the presence of multiple network interfaces or virtual network interfaces in the environment
2. In a VM cluster deployment environment, it is recommended to replace the Hostname with IP address information in the hosts file for doris-related configuration items to avoid startup failures due to network factors.
shell
#Note that the number of doris-fe needs to be configured as an odd number
[doris-fe] # It is recommended to use IP information for configuration, hostname configuration may cause startup failure
Node-A master=true
Node-B
Node-C
[doris-be] # It is recommended to use IP information for configuration, hostname configuration may cause startup failure
Node-A
Node-B
Node-C