Uninstalling the UDF Plugin
The OmniOperator UDF plugin can be uninstalled using SmartKit or locally. The following operations must be performed on the management node and all compute nodes.
If you do not need to use the OmniOperator software after uninstalling the UDF plugin, uninstall OmniOperator by following instructions in Uninstalling the Software.
Uninstalling the Software Using SmartKit
- Uninstall the OmniOperator UDF plugin.Select all nodes and click Config Service.Select Command Execution, set task parameters based on Table 1 to Table 2, and click Save.
Table 2 Task 2 parameters Parameter
Description
Task Name
Deleting configurations related to the OmniOperator UDF plugin
Task Description
Deleting configurations related to the OmniOperator UDF plugin
Run Directory
/opt/omni-operator
Run Command
sed -i '/${JAVA_HOME}\/jre\/lib\/aarch64\/server/d' ~/.bashrc;source ~/.bashrc;
sed -i '/enableBatchExprEvaluate/d' /opt/omni-operator/conf/omni.conf;
sed -i '/hiveUdfPropertyFilePath/d' /opt/omni-operator/conf/omni.conf;
sed -i '/hiveUdfDir/d' /opt/omni-operator/conf/omni.conf;
- Export the service flow and save it to your local PC. You can import this service flow to quickly install the corresponding component.
- Click Export in the upper right corner.
The Select the path where the template is saved window is displayed.
- Name the template OmniOperator UDF Plugin Uninstallation Workflow and click Save.
- Click Export in the upper right corner.
- Execute the service flow.
Uninstalling the Software Locally
- Delete the /opt/omni-operator/hive-udf directory on the management and compute nodes.
1rm -rf /opt/omni-operator/hive-udf
- In the /opt/omni-operator/conf/omni.conf file, update the following content:
- Open /opt/omni-operator/conf/omni.conf.
1vi /opt/omni-operator/conf/omni.conf - Press i to enter the insert mode and update the UDF configuration.
1 2 3 4 5 6 7
# <----UDF properties----> # false indicates expression row-by-row processing and true indicates expression bath processing. #enableBatchExprEvaluate=false # UDF trustlist file path #hiveUdfPropertyFilePath=/opt/omni-operator/hive-udf/udf.properties # Hive UDF JAR file directory #hiveUdfDir=/opt/omni-operator/hive-udf/udf
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open /opt/omni-operator/conf/omni.conf.
- Use vi to open the ~/.bashrc file and delete UDF environment variables from LD_LIBRARY_PATH.
- Open the ~/.bashrc file.
1vi ~/.bashrc - Press i to enter the insert mode and delete ${JAVA_HOME}/jre/lib/aarch64/server from LD_LIBRARY_PATH to update environment variables.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Update the environment variables.
1source ~/.bashrc
- Open the ~/.bashrc file.