Back up Your Configuration
The Cloudera Cybersecurity Platform (CCP) upgrade uses the default configuration for the new Metron version. If you made any changes to the Metron configuration in the previous version, you must back up your old configuration so you can incorporate those changes into the new Metron configuration. A convenience script has been provided to automatically extract and insert your Metron Ambari configuration.
- Login to the node on which Ambari is installed.
Create an upgrade directory:
Navigate to the upgrade directory:
Create a folder for your Metron configuration in the upgrade directory:
Copy your Metron configuration from the host on which Metron was installed into the
Metron configuration directory you created in the previous step:
scp -rp <INSTALLED_METRON_HOSTNAME>:/usr/hcp/current/metron/config/<file_name> metron-config/Be sure to copy the following property files:
Copy the Metron defaults script from the host on which Metron was installed to the
/etc/defaultsfolder:Make sure the account you are logged into has access to run
scp <INSTALLED_METRON_HOSTNAME>:/etc/default/metron . source etc/default/metron scp <INSTALLED_METRON_HOSTNAME>:$METRON_HOME/bin/upgrade_helper.sh mkdir -p $METRON_HOME/bin scp <INSTALLED_METRON_HOSTNAME>:$METRON_HOME/bin/zk_load_configs.sh $METORN_HOME/bin
- Take note of the installed cluster name displayed by Ambari.
upgrade_helper.shscript from the HCP200-Update folder to back up your Ambari configurations related to Metron and your Metron ZooKeeper configuration files and put them into a local directory called
$METRON_HOME/bin/upgrade_helper.sh backup <ambari address> <ambari admin username> <ambari admin password> <cluster_name>If the credentials or cluster is not correct, you will see the following error message:
Unable to get cluster detail from Ambari. Check your username, password, and cluster name. Skipping.
Ensure that the
metron-backupfolder contains your Metron and ZooKeeper configuration:
ls -lYou should see at least the following:
If you created custom components in Metron, copy the contents of
scp -rp <INSTALLED_METRON_HOSTNAME>:/usr/hcp/current/metron/parser_contrib/ parser_contrib
Confirm that the parser_contrib information was copied correctly:
ls -l parser_contrib/You should see a list of your custom jars.