Restoring a Cloudera Data Visualization version in CML/CDSW

Restoring a previous version means reverting your Cloudera Data Visualization (CDV) application to a previous version. You can restore your system to a known good state when you encounter any problems during upgrade and the upgrade process fails, or when there are major issues with the new software version and you need to return to the previous CDV version to maintain system functionality.

To restore a previous CDV version, you should either be connecting to an external database like MySQL or you should have created a backup of the SQLite metadata database.
  1. Stop the application.
    On the Applications page in CML/CDSW, click Actions > Stop to stop the selected CDV application.
  2. Back up the SQLite metadata database.
    1. Go to your project's Overview page and click New Session.
    2. When your session is running, click >_ Terminal Access above the session log pane.
      A terminal window opens, and its default working directory is /home/cdsw, where all your project files reside.
    3. Navigate to /home/cdsw/.arc.
      This directory contains the CDV logs, files, settings, and the arcviz.db database.
    4. Run the following command to make a copy of your current CDV metadata.
      sqlite3 arcviz.db “.backup arcviz.db-BACKUP-[***version***]

      You can use this backup in case you need to revert to a previous CDV version.

  3. Create a new CDV application.
  4. Copy the SQLite database to /home/cdsw/.arc/ in your new project.
  5. Start the new application.