Uninstalling the Software
OmniShuffle can be uninstalled using SmartKit or locally. Before uninstalling OmniShuffle, stop all services and perform the uninstallation operations on every node where OmniShuffle is installed.
Uninstalling the Software Using SmartKit
- Configure the service flow. Select and import the uninstall.json file. For details about the JSON file, see uninstall.json. Copy the corresponding content in "JSON File Description" and save it as the uninstall.json file.


- Set the run directory.



If the security feature is enabled, perform the following operations to change the run directory:


- Click Run Service.

- Check that the execution is successful.

Uninstalling the Software Locally
- Uninstall OmniShuffle.
cd /home/ockadmin/BoostKit-omnishuffle_1.3.0/omnishuffleUtils/bin sh ock_uninstall.sh

- 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.
- 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:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/common/ucx:${OCK_HOME}/ucache/${OCK_VERSION}/${OCK_BINARY_TYPE}/lib/common/ucx/ucx:${LD_LIBRARY_PATH}" - Remove the key file first, using a Spark user as an example:
.${OCK_HOME}/ucache/23.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 - Remove the OmniShuffle certificate file.
rm -rf ${SPARK_HOME}/huawei/ock
- 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:
Parent topic: OmniShuffle