Installing OmniOperator
The following operations must be performed on the management node and all compute nodes.
- Upload OmniOperator-related packages obtained in Obtaining Software to the /opt/omni-operator/ directory on the management and compute nodes.
- Go to the /opt/omni-operator/ directory and decompress the packages.
cd /opt/omni-operator/ unzip BoostKit-omniop_1.1.0.zip tar -zxvf boostkit-omniop-operator-1.1.0-aarch64.tar.gz
- Copy OmniOperator-related files to the /opt/omni-operator/lib directory and set the permission on the software packages in the directory to 550.
cd /opt/omni-operator/boostkit-omniop-operator-1.1.0-aarch64 cp -r include libboostkit* boostkit-omniop* config.h libsecurec.so /opt/omni-operator/lib/ chmod 550 /opt/omni-operator/lib/*
- Create a conf folder in /opt/omni-operator. Add the omni.conf file to the folder and set the permission on the configuration file to 640. This file is used to set OmniOperator configuration items.
cd /opt/omni-operator mkdir conf cd conf touch omni.conf chmod 640 omni.conf
- Add the following content to the /opt/omni-operator/conf/omni.conf file:
- Open /opt/omni-operator/conf/omni.conf.
vim /opt/omni-operator/conf/omni.conf
- Added the configuration content.
enableHMPP=true // true indicates that HMPP is enabled, and false indicates that HMPP is disabled (disabled by default). You can enable or disable HMPP as required. #enableBatchExprEvaluate=false // false indicates expression row-by-row processing and true indicates that expression bath processing. #hiveUdfPropertyFilePath=/opt/omni-operator/hive-udf/udf.properties // UDF trustlist file path. #hiveUdfDir=/opt/omni-operator/hive-udf/udf // Hive UDF JAR file directory.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open /opt/omni-operator/conf/omni.conf.
- Use vim to open the ~/.bashrc file and add LD_LIBRARY_PATH to the file to update environment variables.
- Open the ~/.bashrc file.
vim ~/.bashrc
- Add LD_LIBRARY_PATH to update environment variables.
export LD_LIBRARY_PATH=/opt/omni-operator/lib:/usr/local/lib/HMPP:$LD_LIBRARY_PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Update the environment variables.
source ~/.bashrc
- Open the ~/.bashrc file.
Parent topic: Deploying OmniOperator Locally