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

Uninstalling the Software

Before uninstalling OmniShuffle, stop all services and perform the uninstallation operations on every node where OmniShuffle is installed.

Procedure

  1. Optional: Remove the certificate and key files.

    If the security feature is enabled, remove the Spark and ZooKeeper users' OmniShuffle-related certificate and key files.

    1. Run the echo $OCK_HOME command to check whether the OCK_HOME environment variable exists. If not, set it to the OmniShuffle installation directory (/home/ockadmin/opt/ock by default). After confirming the OCK_HOME environment variable, perform the following operation to set LD_LIBRARY_PATH:
      export LD_LIBRARY_PATH="${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/common:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/common/openssl:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/mf:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/datakit:${LD_LIBRARY_PATH}"
    2. Remove the key file first, using a Spark user as an example:
      .${OCK_HOME}/ucache/24.0.0/linux-aarch64/bin/kmc_tool all --secureEraseAllKeystore ${SPARK_HOME}/huawei/ock/security/pmt/master/ksfa ${SPARK_HOME}/huawei/ock/security/pmt/standby/ksfb
    3. Remove the OmniShuffle certificate file.
      rm -rf ${SPARK_HOME}/huawei/ock
  2. Uninstall OmniShuffle.
    cd /home/ockadmin/BoostKit-omnishuffle_1.7.0/omniShuffleUtils/bin
    sh ock_uninstall.sh

  3. Optional: Remove the certificate and key files.

    If the security feature is enabled, remove the Spark and ZooKeeper users' OmniShuffle-related certificate and key files.

    1. Run the echo $OCK_HOME command to check whether the OCK_HOME environment variable exists. If not, set it to the OmniShuffle installation directory (/home/ockadmin/opt/ock by default). After confirming the OCK_HOME environment variable, perform the following operation to set LD_LIBRARY_PATH:
      export LD_LIBRARY_PATH="${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/common:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/common/openssl:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/mf:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/datakit:${LD_LIBRARY_PATH}"
      • OCK_HOME: OCK tool installation directory.
      • OCK_VERSION: OCK tool version.
      • OCK_BINARY_TYPE: type of the OCK executable file.
    2. Remove the key file first, using a Spark user as an example:
      .${OCK_HOME}/ucache/24.0.0/linux-aarch64/bin/kmc_tool all --secureEraseAllKeystore ${SPARK_HOME}/huawei/ock/security/pmt/master/ksfa ${SPARK_HOME}/huawei/ock/security/pmt/standby/ksfb
    3. Remove the OmniShuffle certificate file.
      rm -rf ${SPARK_HOME}/huawei/ock