Upgrade from v2.2.X to v3.0.3

This document assists you in migrating from Pulse 2.2.X version to 3.0.3 version. You must perform the steps mentioned in this document in all your clusters.

Remove: The accelo admin database purge-tsdb command from any Cron Jobs

Requires: Downtime for Pulse and Hydra Agent re-installation

If you are using the 2.1.1 version of Pulse, follow the steps in this page to update to v2.2.X.

Migration Steps

Backup Steps

  1. Take backup of Dashplots Charts using Export option.
  1. Take backup of Alerts using the Export option.

Perform the following steps to migrate to version 3.0.0:

Step -1: Download the new CLI with version 3.0.0 .

1.1. Edit the config/accelo.yml file and put 3.0.3 image tag.

1.2. Pull all the latest containers of 3.0.3.

Step -2: Migration Steps:

2.1. Run the accelo set command to set the active cluster.

2.2 .Run the CLI migrate command: accelo migrate -v 3.0.0 .

Note Choose whether to migrate as a non-root or root user:

Non Root UserRoot User

a. Disable all Pulse Services

docker stop $(docker ps -aq --filter "network=ad-default") && docker rm $(docker ps -aq --filter "network=ad-default")

a. If accelo CLI is going to be run as a root user:

accelo migrate -v 3.0.0

b. Change the ownership of all data directories to 1000:1000.

1. sudo chown -R 1000:1000 $AcceloHome/data

2. sudo chown -R 1000:1000 $AcceloHome/work/<ClusterName>/clusterkey

c. Run the migration command with -s flag.

accelo migrate -v 3.0.0 -s

2.3. Repeat the above steps for all the clusters installed in the Pulse server.

Step-3: Run the command accelo deploy core .

Step-4: Run the command accelo deploy addons.

Step-5: Run the command accelo reconfig cluster -a to reconfigure the cluster.

Step-6: Run the command accelo uninstall remote.

Step-7: Run the accelo deploy hydra command.

Step-8: If ad-director service is running, run the accelo deploy playbooks command for online or request for offline tar for offline installation.

Step-9: Restart ad-director once new playbooks are added, accelo restart ad-director

Step-10: Finally, execute the command accelo admin fsa load.

For a better reference, watch this quick video:

Troubleshoot

Issue: If after the upgrade you face the following metadata corruption exception in the fsanalytics connection.

Bash
Copy

Solution: Perform the following steps to fix the issue:

  1. Remove the ${ACCELOHOME}/data/fsanalytics/${ClusterName}/meta-store.dat file.
  2. Restart the ad Fsanalytics container using the accelo command.
  3. Run the accelo admin fsa load command to generate the meta store data again.

New Dashplots Version and Generic Reporting Feature

  • Splashboards and Dashplots are never automatically rewritten, so either delete that dashboard to acquire the new version, or set the environment variable OVERWRITE_SPLASHBOARDS and OVERWRITE_DASHPLOTS to overwrite the existing splashboard dashboard with the newer version.
  • To access the most recent dashboard, delete the HDFS Analytics dashboard from splashboard studio and then refresh configuration.
  1. Navigate to ad-core.yml.
  2. In graphql, set the environment variables of OVERWRITE_SPLASHBOARDS and OVERWRITE_DASHPLOTS to true (default value is set to false)

Steps for Migration:

  1. Before doing the upgrade, save all dashplots to a file that are not seeded by default.
  2. Login to the ad-pg_default docker container with following command post upgrade to v3.0.
Bash
Copy
  1. Copy, paste, and run the snippet attached in migration file as is and press enter to execute it.
SQL
Copy
  1. Import the zip file exported in the step 1 above with the the < 3.0.0 dashboard option checked into the dashplot studio.
&lt;3.0.0 dashboard in Import Directory

<3.0.0 dashboard in Import Directory

Note: The EXPIRE_TIME is used to specify the expiry date for a JWT token. The maximum time restriction is 15 minutes, and the data are in seconds. As a result, the maximum value that can be specified is 900.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard