Uninstalling the Software
If the OmniAdvisor 2.0 feature is no longer used, uninstall the OmniAdvisor 2.0 software on the management node. Uninstalling the OmniAdvisor 2.0 software requires deleting the configuration file, binary SO files, and OmniAdvisor files, and restoring the spark-submit script.
- Delete the OmniAdvisor 2.0 software. The example installation directory is /opt/OmniAdvisor2.0.
rm -rf /opt/OmniAdvisor2.0
- Stop the Django Server process. The following uses port 8000 as an example:
kill -9 $(lsof -i:8000 | awk 'NR==2 {print $2}') - Delete the Python environment. The example installation directory is /root/anaconda3.
rm -rf /root/anaconda3
- Restore the spark-submit script to the native script.
mv $SPARK_HOME/bin/spark-submit.original.backup $SPARK_HOME/bin/spark-submit
- Delete data and uninstall the database. For details, see Uninstallation in the PostgreSQL Installation Guide.
Parent topic: Maintaining the Feature