我要评分
获取效率
正确性
完整性
易理解

Installing OmniOperator

The following operations must be performed on the management node and all compute nodes.

  1. Upload OmniOperator-related packages obtained in Obtaining Software to the /opt/omni-operator/ directory on the management and compute nodes.
  2. 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
  3. 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/*
  4. 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
  5. Add the following content to the /opt/omni-operator/conf/omni.conf file:
    1. Open /opt/omni-operator/conf/omni.conf.
      vim /opt/omni-operator/conf/omni.conf
    2. 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.
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Use vim to open the ~/.bashrc file and add LD_LIBRARY_PATH to the file to update environment variables.
    1. Open the ~/.bashrc file.
      vim ~/.bashrc
    2. Add LD_LIBRARY_PATH to update environment variables.
      export LD_LIBRARY_PATH=/opt/omni-operator/lib:/usr/local/lib/HMPP:$LD_LIBRARY_PATH
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Update the environment variables.
      source ~/.bashrc