Migrating the CDSW Master to Another Host
This section describes how to migrate a Cloudera Data Science Workbench deployment to a new set of gateway hosts.
Migrating a CSD Deployment
This section describes how to migrate a CSD-based Cloudera Data Science Workbench service to a new set of gateway hosts.
Add and Set Up the New Hosts
-
Add new hosts to your cluster as needed. Make sure they are gateway hosts that have been assigned gateway roles for HDFS, YARN, and Spark 2. Do not run any other services on these hosts.
-
Set up the new hosts as per the Cloudera Data Science Workbench hardware requirements listed here.
- Disable Untrusted SSH Access on the new hosts.
- Configure Block Devices on the new hosts.
Stop the CDSW Service
- Log into the Cloudera Manager Admin Console.
- On the Stop from the dropdown. tab, click to the right of the CDSW service and select
- Confirm your choice on the next screen. When you see a Finished status, the action is complete.
Backup Application Data
In Cloudera Data Science Workbench all stateful data is stored on the master host at /var/lib/cdsw. Backup the contents of this directory before you begin the migration process.
tar cvzf cdsw.tar.gz /var/lib/cdsw/*
Delete CDSW Roles from Existing Hosts
- Log into the Cloudera Manager Admin Console.
- Go to the CDSW service.
- Click the Instances tab.
- Select all the role instances.
- Select Actions for Selected > Delete. Click Delete to confirm the deletion.
Move Backup to the New Master
tar xvzf cdsw.tar.gz -C /var/lib/cdsw
Update DNS Records for the New Master
Update your DNS records with the IP address for the new master host.
Add Role Instances for the New Hosts
- Log into the Cloudera Manager Admin Console.
- Go to the CDSW service.
- Click the Instances tab.
- Click Add Role Instances. Assign the Cloudera Data Science Workbench Master, Application, and Docker Daemon roles to the new master host. If you want to configure worker hosts, assign the Cloudera Data Science Workbench Worker and Docker Daemon roles to the new workers.
- Click Continue. On the Review Changes page, review the configuration changes to be applied. The wizard finishes by performing any actions necessary to
add the new role instances.
Do not start the new roles at this point. You must run the Prepare Node command as described in the next step before the roles are started.
Run the Prepare Node command on the New Hosts
nfs-utils libseccomp lvm2 bridge-utils libtool-ltdl iptables rsync policycoreutils-python selinux-policy-base selinux-policy-targeted ntp ebtables bind-utils nmap-ncat openssl e2fsprogs redhat-lsb-coreYou can either manually install these packages now, or, allow Cloudera Manager to install them as part of the Prepare Node command later in this step.
If you choose the latter, make sure that Cloudera Manager has the permissions needed to install the required packages. To do so, go to the CDSW service and click Configuration. Search for the Install Required Packages property and make sure it is enabled.
- Go to the CDSW service.
- Click Instances.
- Select all the role instances.
- Select Actions for Selected > Prepare Node. This will install the required set of packages on all the new hosts.
Start the CDSW Service
- Log into the Cloudera Manager Admin Console.
- On the Start from the dropdown. tab, click to the right of the CDSW service and select
- Confirm your choice on the next screen. When you see a Finished status, the action is complete.
Migrating an RPM Deployment
This section describes how to migrate an RPM-based Cloudera Data Science Workbench service to a new set of gateway hosts.
Add and Set Up the New Hosts
-
Add new hosts to your cluster as needed. Make sure they are gateway hosts that have been assigned gateway roles for HDFS, YARN, and Spark 2. Do not run any other services on these hosts.
-
Set up the new hosts as per the Cloudera Data Science Workbench hardware requirements listed here.
- Disable Untrusted SSH Access on the new hosts.
- Configure Block Devices on the new hosts.
Stop Cloudera Data Science Workbench
cdsw stop
Backup Application Data
In Cloudera Data Science Workbench all stateful data is stored on the master host at /var/lib/cdsw. Backup the contents of this directory before you begin the migration process.
tar cvzf cdsw.tar.gz /var/lib/cdsw/*
Remove Cloudera Data Science Workbench from Existing Hosts
cdsw reset yum remove cloudera-data-science-workbench
Move Backup to New Master
tar xvzf cdsw.tar.gz -C /var/lib/cdsw
Update DNS Records for the New Master
Update your DNS records with the IP address for the new master host.
Install Cloudera Data Science Workbench on New Master Host
For instructions, see Installing and Upgrading Cloudera Data Science Workbench 1.3.x Using Packages.