Uninstalling OmniOperator
Perform the following steps on the management node only. Ensure that no task is being executed on the OmniOperator upper-layer engine.
Assume that the SparkExtension directories are /opt/omni-operator/conf and /opt/omni-operator/lib, and the HiveExtension directory is /opt/omni-operator/hive.
- Delete the conf and hive folders.
1 2 3
ls /opt/omni-operator rm -rf /opt/omni-operator/conf rm -rf /opt/omni-operator/hive
- 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
- Optional: When using OmniOperator on Spark, delete the OmniOperator installation package of HDFS.
1hdfs dfs -rm -f /user/root/omni-operator.tar.gz
- Update the environment variable.
- Open the ~/.bashrc file.
1vi ~/.bashrc - Press i to enter the insert mode. Delete the OmniOperator path configuration from LD_LIBRARY_PATH.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the updated environment variable take effect.
1source ~/.bashrc
- Open the ~/.bashrc file.
Parent topic: Maintaining the Feature