Revert to a previous version from a tarball installation

How to revert to a previous version of DataStax Enterprise from a tarball installation.

cassandra.yaml

The location of the cassandra.yaml file depends on the type of installation:

Package installations
                  Installer-Services installations (DSE 4.5 to 5.1)

/etc/cassandra/cassandra.yaml

Tarball installations
                  Installer-No Services installations (DSE 4.5 to 5.1)

install_location/conf/cassandra.yaml

Procedure

  1. Rename the current installation directory.
    # mv dse4.0 dse4.0.bak
  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. Copy the old cassandra.yaml file from the old install directory to the new one.
    cp dse4.0.bak/resources/cassandra/config/conf/cassandra.yaml <new_install_dir>/resources/cassandra/config/conf/
  4. Reinstall the old version as described in the documentation for that release of DataStax Enterprise.
  5. If you are using DSE Search, rebuild the index (4.5, 4.8, 5.0, 5.1, 6.0).