Upgrading Whirr

Upgrading Whirr from CDH 4 to CDH 5

To upgrade Whirr from CDH 4, uninstall the CDH 4 version, modify the properties file, and install the CDH 5 version. Proceed as follows.

Step 1: Remove Whirr

  1. Stop the Whirr proxy. Kill the hadoop-proxy.sh process by pressing Control-C.
  2. Destroy the Cluster. Whirr clusters are normally short-lived. If you have a running cluster, destroy it: see Destroying a cluster.
  3. Uninstall the CDH 4 version of Whirr:

    On Red Hat-compatible systems:

    $ sudo yum remove whirr 

    On SLES systems:

    $ sudo zypper remove whirr 

    On Ubuntu and Debian systems:

    sudo apt-get remove whirr 
  4. Update the Properties File.

    Edit the configuration file, called hadoop.properties in these instructions, and save it.

    • For Hadoop, configure the following properties as shown:
      • For MRv1:
        whirr.env.repo=cdh5
        whirr.hadoop.install-function=install_cdh_hadoop
        whirr.hadoop.configure-function=configure_cdh_hadoop
      • For YARN: see Defining a Cluster.
    • For HBase, configure the following properties as shown:
      whirr.env.repo=cdh5
      whirr.hadoop.install-function=install_cdh_hadoop
      whirr.hadoop.configure-function=configure_cdh_hadoop
      whirr.hbase.install-function=install_cdh_hbase
      whirr.hbase.configure-function=configure_cdh_hbase
      whirr.zookeeper.install-function=install_cdh_zookeeper
      whirr.zookeeper.configure-function=configure_cdh_zookeeper
    • For ZooKeeper, configure the following properties as shown:
      whirr.env.repo=cdh5
      whirr.zookeeper.install-function=install_cdh_zookeeper
      whirr.zookeeper.configure-function=configure_cdh_zookeeper

    See Defining a Whirr Cluster for a sample file.

Step 2: Install the new Version

See the next section, Installing Whirr.

The upgrade is now complete. For more information, see Defining a Whirr Cluster, Launching a Cluster, and Viewing the Whirr Documentation.

Upgrading Whirr from an Earlier CDH 5 Release to the Latest CDH 5 Release

Step 1: Stop the Whirr proxy.

Kill the hadoop-proxy.sh process by pressing Control-C.

Step 2: Destroy the Cluster.

Whirr clusters are normally short-lived. If you have a running cluster, destroy it: see Destroying a cluster.

Step 3: Install the New Version of Whirr

See Installing Whirr.

The upgrade is now complete. For more information, see Managing a Cluster with Whirr,and Viewing the Whirr Documentation.