Dropping the User Defined Functions
For the Application Protector REST Approach
Deleting the UDFs is an optional step and must be performed ONLY to clean up the Databricks cluster. The configurator script is used to delete the UDFs. You must select the required approach and the operation ID to delete the UDFs using the Application Protector REST server. This section explains the process to delete the UDFs using the interactive method of installation.
To delete the UDFs:
Log in to the staging machine.
Navigate to the directory where the installation files are extracted.
To execute the configurator script, run the following command:
./BigDataProtector-Configurator_Linux-ALL-64_x86-64_AWS.Databricks-<DBR_version>-64_<BDP_version>.shPress ENTER. The prompt to enter the operation ID appears.
Creating installation files... Created installation files. Enter the ID of the operation:To delete the UDFs, type
3.Press ENTER. The prompt to enter the Databricks Workspace URL appears.
Enter the URL of the Databricks Workspace:Enter the Databricks Workspace URL.
Press ENTER. The prompt to enter the application ID of the Databricks Service Principal appears.
Enter the Application ID of the Databricks Service Principal:Enter the Application ID of the Databricks Service Principal.
Press ENTER. The prompt to enter the OAuth secret for the Service Principal appears.
Enter the OAuth Secret of the Databricks Service Principal:Enter the OAuth secret.
Press ENTER. The prompt to enter the cluster ID appears.
Enter the ID of the Databricks Compute:Enter the Cluster ID.
Note: The Cluster ID can be either for a Standard Compute or Dedicated Compute. For more information about identifying the Cluster ID, refer to https://docs.databricks.com/aws/en/workspace/workspace-details/.
Press ENTER. The prompt to enter the name of the schema appears.
Enter the name of the Databricks Unity Catalog Catalog-Schema:Enter the name of the catalog and the schema in the
<catalog_name.schema_name>format.Press ENTER. The script deletes the UDFs from the specified location.
Executing specified operation... Executed specified operation.
For the Cloud Protector Approach
Deleting the UDFs is an optional step and must be performed ONLY to clean up the Databricks cluster. The configurator script is used to delete the UDFs. Select the required approach and the operation ID to delete the UDFs using the Cloud Protector. This section explains the process to delete the UDFs using the interactive method of installation.
To delete the UDFs:
- Log in to the staging machine.
- Navigate to the directory where the installation files are extracted.
- To execute the configurator script, run the following command:
./BigDataProtector-Configurator_Linux-ALL-64_x86-64_AWS.Databricks-<DBR_version>-64_<BDP_version>.sh - Press ENTER.
The prompt to enter the operation ID appears.
Creating installation files... Created installation files. Enter the ID of the operation: - To delete the UDFs, type
3. - Press ENTER.
The prompt to enter the Databricks Workspace URL appears.
Enter the URL of the Databricks Workspace: - Enter the Databricks Workspace URL.
- Press ENTER.
The prompt to enter the application ID of the Databricks Service Principal appears.
Enter the Application ID of the Databricks Service Principal: - Enter the Application ID of the Databricks Service Principal.
- Press ENTER.
The prompt to enter the OAuth secret for the Service Principal appears.
Enter the OAuth Secret of the Databricks Service Principal - Enter the OAuth secret.
- Press ENTER.
The prompt to enter the cluster ID appears.
Enter the ID of the Databricks Compute: - Enter the Cluster ID.
Note: The Cluster ID can be either for SQL Warehouse, Standard Compute or Dedicated Compute. For more information about identifying the Cluster ID, refer to https://docs.databricks.com/aws/en/workspace/workspace-details/.
- Press ENTER.
The prompt to enter the name of the schema appears.
Enter the name of the Databricks Unity Catalog Catalog-Schema: - Enter the name of the catalog and the schema in the
<catalog_name.schema_name>format. - Press ENTER.
The prompt to select the approach appears.
Enter the ID of the approach: - To delete the UDFs using the Cloud Protector approach, type
2. - Press ENTER.
The prompt to enter the name of the AWS Lambda Function appears.
Enter the name of the AWS Lambda Function: - Enter the name of the AWS Lambda Function.
- Press ENTER.
The prompt to enter the region of the AWS Lambda function appears.
Enter the name of the AWS Lambda Function's AWS Region: - Enter the region name.
- Press ENTER.
The prompt to enter the name of the Service Credential appears.
Enter the name of the Databricks Unity Catalog Service Credential: - Enter the name of the Databricks Unity Catalog Service Credential.
- Press ENTER.
The script deletes the UDFs from the specified location.
Executing specified operation... Executed specified operation.
Feedback
Was this page helpful?