Upgrade from v2.1.1 to v3.0.3

This document describes the steps to migrate from Pulse 2.1.1 version to 3.0.3 version. You must perform the steps mentioned in this document in all your clusters.

Backup Steps

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

Migration Steps

  1. Requires Pulse server downtime.
  2. Requires re-installation of Pulse agents running in all the cluster nodes.

Please plan your migrations accordingly.

  1. (Optional) Execute the following steps only on the standalone nodes of a multi-node Pulse deployment.
    1. Generate the encrypted string for the mongodb://accel:<MONGO_PASSWORD>@<PULSE_MASTER_HOST>:27017mongo URI, by executing the following command.
Bash
Copy

b. Add the following environment variables to the /etc/profile.d/ad.sh file.

Bash
Copy

Once you execute the above steps, you must receive the output as shown in the following image.

c. Source the /etc/profile.d/ad.sh file by executing the following command.

Bash
Copy
  1. Stop the ad-streaming and ad-connector connectors by executing the following commands.
Bash
Copy
  1. Enter the Mongo container by executing the following command.
Bash
Copy
  1. Login to the Mongo executing by issuing the following command.
Bash
Copy
  1. Execute the following commands.
Bash
Copy
  1. Rename the collection by executing the following command.
Bash
Copy

You must get a response which says { "ok": 1 }.

  1. Exit the Mongo shell by executing the following command.
Bash
Copy
  1. Ensure that you are still in the ad-db container bash shell. Use the following command to export the past 7 days data with the required fields from the tez_queries_ nsure that details collection. You can refer to this link to convert a date to epoch value.
Bash
Copy

You must get a response as # document(s) imported successfully. 0 document(s) failed to import.

  1. Using the following command, import the data file returned by the preceding command into the yarn__tez_ queries collection.
Bash
Copy
  1. Delete the /tmp/tqq.json file after executing the above step.
  2. Exit the ad-db container by executing the following command.
Bash
Copy
  1. Execute the below command to complete the migration.
Bash
Copy

You must receive the following response.

Bash
Copy
  1. Download the new CLI with 3.0.3 version.

  2. Execute the following migration command steps.

    1. Execute the following command to set the active cluster.
Bash
Copy

b. Execute the following CLI migrate command.

Bash
Copy

c. Based on whether you want to migrate as a Root user or a non-root user, execute the commands from one of the following columns.

Non Root UserRoot User

a. Disable all the Pulse Services by executing the following command.

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, execute the following command:

accelo migrate -v 3.0.0

b. Change the ownership of all data directories to 1000:1000 by executing the following commands.

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

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

c. Execute the following migration command with the-s flag.

accelo migrate -v 3.0.0 -s

d. Execute the following command to uninstall the Pulse Hydra agent from all the current active cluster nodes.

accelo uninstall remote

You must repeat the steps 14.a, 14.b, and 14.c for all the clusters configured on the Pulse server, one by one.

  1. Execute the following command to deploy the Pulse core components.
Bash
Copy
  1. Execute the following command to deploy the required addons.
Bash
Copy
  1. Execute the following command to reconfigure all the clusters, configured in the Pulse server. The reconfigure command will update the configurations for all the clusters.
Bash
Copy
  1. Execute the following command to deploy the hydra agents for all the clusters, configured in Pulse server.
    1. Set the active cluster by executing the following command.
Bash
Copy

b. Deploy the hydra agent for the current active cluster nodes.

Bash
Copy

c. Repeat steps 18.a and 18.b for each of the clusters configured in Pulse server, one by one.

  1. (Optional) Execute the following commands to deploy auto action playbooks, if you have the ad-director add-on component deployed.
Bash
Copy
  1. Execute the following command to update the HDFS dashboard data.
Bash
Copy

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)
  1. Export all the dashplots which are not seeded by default to file before performing the upgradation.
  2. Login to the ad-pg_default docker container with the following command after the upgrade to 3.0.3.
Bash
Copy
  1. Copy, paste and execute the snippet attached in the migration file as is and press enter to execute it.
SQL
Copy
  1. Go to dashplot studio and import the zip file exported in step 1 of this section with **< 3.0.3 dashboard** check box selected.

Troubleshooting

Post upgrade after executing the fsa load command, incase if you encounter the following exception in fsanalytics connector execute the below steps to troubleshoot the issue.

Bash
Copy

Execute the following steps to resolve the above exception.

  1. Remove the ${ACCELOHOME}/data/fsanalytics/${ClusterName}/meta-store.dat file.
  2. Restart the ad-fsanalytics container using the following command.
Bash
Copy
  1. Execute the following command to generate the meta store data again.
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard