1 - Uninstalling the Big Data Protector when Bootstrap is used

Uninstalling the Big Data Protector.

This section is applicable only for the Bootstrap installer.

When the Bootstrap installer is used, the cluster auto scales as per the requirement. When the nodes are not required, they are automatically reduced.

2 - Uninstalling the Big Data Protector when Static installer is used

Uninstalling the Big Data Protector

This section is applicable only for the Static installer.

The procedures to uninstall the Big Data Protector from the EMR cluster are listed below. Use any one of the following methods to remove the Big Data Protector from the EMR cluster:

  • Uninstalling the Big Data Protector from all the Nodes on the EMR Cluster
  • Uninstalling the Big Data Protector from Selective Nodes on the EMR Cluster

2.1 - From all the Nodes

Uninstalling the Big Data Protector from all the Nodes
  1. Log in to the Lead or Primary node as the sudoer user.

  2. Navigate to the <installation_directory>/cluster_utils directory.

  3. To remove the Big Data Protector from all the nodes in the cluster, execute the following script:

    ./uninstall.sh
    
  4. Press ENTER.

    The prompt to continue the uninstallation of the Big Data Protector appears.

    ************************************************************************************
         Welcome to the Hadoop Big Data Protector Uninstallation Wizard
    ************************************************************************************
    This will uninstall the Hadoop Big Data Protector on your system.
    Do you want to continue? [yes or no]:
    
  5. To continue with the uninstall, type yes.

  6. Press ENTER.

    The prompt to enter the path of the private key file appears.

    Big Data Protector uninstallation started
    Enter the path of the Private Key (.PEM) file:
    
  7. Enter the path of the Private Key (.PEM) file.

  8. Press ENTER.

    The script starts and completes the uninstallation process.

    ************************************************************************************
                    Welcome to the RPAgent Setup Wizard.
    ************************************************************************************
    
    
    Uninstalling RPAgent...
    Stopping RPAgent. Please wait...
    
    RPAgent uninstalled on Lead node at location /opt/protegrity/rpagent.
    
    Performing uninstall on other nodes...
    
    RPAgent uninstalled on other nodes at location /opt/protegrity/rpagent.
    
    Check the status in /opt/protegrity/logs/rpagent_setup.log
    ************************************************************************************
                    Welcome to the LogForwarder Setup Wizard.
    ************************************************************************************
    
    Uninstalling LogForwarder....
    Stopping Logforwarder. Please wait...
    
    LogForwarder uninstalled on Lead node at location /opt/protegrity/logforwarder.
    
    Performing uninstall on other nodes...
    
    Logforwarder uninstalled on other nodes at location /opt/protegrity/logforwarder.
    
    Check the status in /opt/protegrity/logs/logforwarder_setup.log
    ************************************************************************************
                        Welcome to the JcoreLite Setup Wizard.
    ************************************************************************************
    
    Uninstalling JcoreLite ....
    
    JcoreLite uninstalled on lead node at location /opt/protegrity/bdp/lib.
    
    Performing uninstall on other nodes...
    
    JcoreLite uninstalled on other nodes at location /opt/protegrity/bdp/lib.
    
    Check the status in /opt/protegrity/logs/jcorelite_setup.log
    ************************************************************************************
                    Welcome to the Hive Protector Setup Wizard.
    ************************************************************************************
    
    Uninstalling PepHive ....
    
    Hive Big Data Protector uninstalled on lead node at location /opt/protegrity/bdp/lib/ and /opt/protegrity/pephive/scripts/.
    
    Performing uninstall on other nodes...
    
    Hive Big Data Protector uninstalled on other nodes at location /opt/protegrity/bdp/lib/ and /opt/protegrity/pephive/scripts/.
    
    Check the status in /opt/protegrity/logs/pephive_setup.log
    ************************************************************************************
                        Welcome to the Pig Protector Setup Wizard.
    ************************************************************************************
    
    Uninstalling PepPig ....
    
    Pig Big Data Protector uninstalled on lead node at location /opt/protegrity/bdp/lib/ and /opt/protegrity/peppig.
    
    Performing uninstall on other nodes...
    
    Pig Big Data Protector uninstalled on other nodes at location /opt/protegrity/bdp/lib/ and /opt/protegrity/peppig.
    
    Check the status in /opt/protegrity/logs/peppig_setup.log
    ************************************************************************************
                    Welcome to the MapReduce Protector Setup Wizard.
    ************************************************************************************
    
    Uninstalling PepMapreduce ....
    
    Mapreduce Big Data Protector uninstalled on lead node at location /opt/protegrity/bdp/lib/.
    
    Performing uninstall on other nodes...
    
    Mapreduce Big Data Protector uninstalled on other nodes at location /opt/protegrity/bdp/lib/.
    
    Check the status in /opt/protegrity/logs/pepmapreduce_setup.log
    ************************************************************************************
                        Welcome to the Hbase Protector Setup Wizard.
    ************************************************************************************
    
    Uninstalling PepHbase....
    
    Hbase Big Data Protector uninstalled on lead node at location /opt/protegrity/bdp/lib/.
    
    Performing uninstall on other nodes...
    
    Hbase Big Data Protector uninstalled on other nodes at location /opt/protegrity/bdp/lib/.
    
    Check the status in /opt/protegrity/logs/pephbase_setup.log
    ************************************************************************************
                    Welcome to the Spark Protector Setup Wizard.
    ************************************************************************************
    
    
    Spark Big Data Protector uninstalled on lead node at location /opt/protegrity/bdp/lib/ and /opt/protegrity/pepspark/scripts/.
    
    Performing uninstall on other nodes...
    
    Spark Big Data Protector uninstalled on other nodes at location /opt/protegrity/bdp/lib/ and /opt/protegrity/pepspark/scripts/.
    
    Check the status in /opt/protegrity/logs/pepspark_setup.log
    
    Clearing previous log files ...
    
    Uninstallation Status report generated in /opt/protegrity/cluster_utils/uninstallation_report.txt
    
    Removing Protegrity service user from all nodes...
    Uninstallation process done.
    

2.2 - From Specific Nodes

Uninstalling the Big Data Protector from Specific Nodes

To uninstall Big Data Protector from selective nodes in the EMR cluster, use the node_uninstall.sh script from the <installation_directory>/cluster_utils/ directory.

Ensure that you uninstall the Big Data Protector from an account having full sudoer privileges.

  1. Login to the Lead node.

  2. Navigate to the <installation_directory>/cluster_utils/ directory.

  3. Create a new hosts file.

    For example, NEW_HOSTS_FILE. The NEW_HOSTS_FILE file contains the required nodes in the EMR cluster from where the Big Data Protector must be uninstalled.

  4. Add the nodes on the EMR cluster, from which the Big Data Protector needs to be uninstalled in the NEW_HOSTS_FILE.

  5. To remove the Big Data Protector from the nodes that are listed in the new hosts file, run the following command:

    ./node_uninstall.sh -c NEW_HOSTS_FILE
    
  6. Press ENTER.

    The prompt to enter the path of the Private Key file (.pem file) appears.

  7. Type the path of the private key file.

  8. Press ENTER.

    The Big Data Protector is uninstalled from the nodes in the EMR cluster, which are listed in the new hosts file.

  9. Check whether the nodes from which the Big Data Protector is uninstalled in Step 5 are removed from the CLUSTERLIST_FILE file.

3 - Uninstalling the Big Data Protector when Serverless is used

Uninstalling the Big Data Protector.

The instructions mentioned in the section are applicable only for the EMR Serverless cluster.

To uninstall the Big Data Protector:

  1. Log in to the AWS console.
  2. Navigate to the Elastic Container Repository page.
  3. Click the required repository.
  4. From the Images page, select the check box against the required image.
  5. Click Delete. A prompt to confirm the action appears.

    Warning: Before proceeding to delete the image, ensure there are no dependencies linked to the image.

  6. Click Delete.