Uninstalling the Software
OmniOperator can be uninstalled using SmartKit or locally. Perform the following steps on the management node and all compute nodes. Ensure that no task is being executed on the OmniOperator upper-layer engine.
Uninstalling the Software Using SmartKit
- Uninstall OmniOperator.Select all nodes and click Config Service. Select Command Execution, set task parameters according to Table 1, and click Save.
Table 1 Task 1 parameters Parameter
Description
Task Name
Uninstalling OmniOperator
Task Description
Uninstalling OmniOperator
Run Directory
/opt/omni-operator/lib
Run Command
rm -rf libjemalloc.so.2 libLLVM-15.so;rm -rf include libboostkit-omniop* boostkit-omniop-bindings* libsecurec.so;rpm -e boostkit-hmpp-1.7.0-1.aarch64;sed -i '/enableHMPP/d' /opt/omni-operator/conf/omni.conf;sed -i '/$LD_LIBRARY_PATH:\/opt\/omni-operator\/lib:\/usr\/local\/lib\/HMPP/d' ~/.bashrc;source ~/.bashrc;
Uninstall the correct HMPP version based on your service requirements. The following uses 1.7.0 as an example.
- Export the service flow and save it to your local PC. You can import this service flow to quickly uninstall OmniOperator later.
- Click Export in the upper right corner.
The Select the path where the template is saved window is displayed.
- Name the template OmniOperator Uninstallation Workflow and click Save.
- Click Export in the upper right corner.
- Execute the service flow.
Click Finish in the lower right corner and select Run Service. The procedure is complete when the execution is successful.
Uninstalling the Software Locally
For details about how to uninstall the HMPP dependency, see 3. The example installation directories are /opt/omni-operator/conf and /opt/omni-operator/lib.
- Delete the conf folder.
1rm -rf /opt/omni-operator/conf
- Go to the /opt/omni-operator/lib directory and delete the dependency SO files and OmniOperator files.
1 2 3
cd /opt/omni-operator/lib rm -rf libjemalloc.so.2 libLLVM-15.so rm -rf include libboostkit-omniop* boostkit-omniop* libsecurec.so
- Use vi to open the ~/.bashrc file and delete the LD_LIBRARY_PATH information of OmniOperator from the file to update environment variables.
- Open the ~/.bashrc file.
1vi ~/.bashrc - Press i to enter the insert mode. Delete the LD_LIBRARY_PATH information of OmniOperator.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Update the environment variables.
1source ~/.bashrc
- Open the ~/.bashrc file.