Target HBase folder is deleted when HBase replication policy fails
When the snapshot export fails during the HBase replication policy job run, the target HBase folder in the destination Data Hub or COD gets deleted.
You can either revoke the delete permission for the user, or ensure that you use an access key/role that does not have delete permissions to the required storage component.
The following steps show how to create an access key in AWS and an Azure service principal, which do not have delete permission for the storage component.
Solution in AWS
Solution in Microsoft Azure
- Login to Microsoft Azure.
-
Click
on the page in Microsoft Azure, and complete the following
steps:
-
Click
on the page, and complete the following steps:
- On the Role tab, select the custom role previously created. Click Next.
- On the Members tab, select User, group, or service principal for Assign access to field, and select the required service principal.
- Click Review + assign.
- Click Review + assign on the Conditions (optional) tab.
-
Click Add principal on the page.
How do I verify whether the target HBase folder in the destination Data Hub or COD does not get deleted if the snapshot export fails during the HBase replication policy job run?
To verify if the delete operation is allowed on the service principal that you previously created, perform the following steps:- Open the Azure Cloud Shell terminal.
- Login using the service principal that you created previously using the az login --service-principal -u [***CLIENT ID***] -p [***CLIENT SECRET***] --tenant [***TENANT ID***] command.
- Delete an arbitrarily created temporary file from the account using the az storage fs file delete --path [***TEMPORARY FILE***] -f data --account-name [***ACCOUNT NAME***] --auth-mode login command.