Revert to a previous version from a package installation

How to revert your DataStax Enterprise installation to a previous version from a package install.

Procedure

  1. Uninstall all DataStax Enterprise packages.
    • Debian and Ubuntu

      sudo apt-get purge "dse-*" "datastax-*"
    • RHEL and CentOS

      sudo yum remove "dse-*" "datastax-*"
  2. Restore the snapshot taken before the upgrade by copying the SSTable files from the snapshot directory to the data directory of each column family. If you have multiple snapshots, look at the timestamp to find the most recent one. Data that was inserted after the snapshot was taken is not restored.

    In the following example, the snapshot directory is data_directory_location/keyspace_name/table_name/snapshots/snapshot_name and the data directory is /data.

    sudo cd data_directory_location/keyspace_name/table_name/snapshots/snapshot_name
    $ sudo cp  -R * data_directory_location/keyspace_name/table_name
  3. Reinstall the old version as described in the documentation for that release of DataStax Enterprise.
  4. If you are using DSE Search, rebuild the index (4.5, 4.8, 5.0, 5.1, 6.0).