Ambari Managed HDF Upgrade
Also available as:
PDF

Installing Your Target Version

Installing your target version downloads the public repositories containing software packages for your target version onto each node in your cluster.

  1. From the Versions tab, identify the target version you just registered, and click the Install on ... button.
  2. Click OK to confirm.
  3. You can monitor the progress of the install by clicking Installing.

    When the installation completes, you are able to see both your current and target HDF versions from Admin | Stack and Versions | Versions. Your target version has an active Upgrade button.

    Note
    Note
    If you upgrade from HDF 3.2 and you have NiFi or NiFi Registry installed, you must perform the following steps on each host running these services, after installing packages for new version but before upgrading the HDF stack. As an example, we use the current HDF version as 3.2.0.0 and the build number as 520 in the following steps.
    1. Create the nifi-toolkit configuration directory using the current HDF version and build number.
      cd /etc/nifi-toolkit/
      mkdir -p 3.2.0.0-520/0
      cd 3.2.0.0-520/0
      cp /var/lib/ambari-agent/tmp/nifi-toolkit-1.7.0.3.2.0.0-520/conf/* ./
    2. Create the nifi-toolkit directory using the current HDF version and build number for location, copy old toolkit location into new location, and create a link to the previously created configuration directory.
      cd /usr/hdf/3.2.0.0-520
      mkdir nifi-toolkit
      cd nifi-toolkit/
      cp -R /var/lib/ambari-agent/tmp/nifi-toolkit-1.7.0.3.2.0.0-520/* ./
      rm -rf conf
      ln -s /etc/nifi-toolkit/3.2.0.0-520/0 conf
      If you do not find the toolkit folder under /var/lib/ambari-agent/tmp/nifi-toolkit-1.7.0.$CURRENT_HDF_VERSION/, you can search using ps aux | grep toolkit to obtain the path as shown in the following example:
      [root@host nifi-toolkit]# ps aux | grep toolkit
      nifi      2846  0.3  0.6 2046744 79496 ?       Sl   13:05   0:02 /usr/jdk64/jdk1.8.0_112/bin/java -cp /var/lib/ambari-agent/tmp/nifi-toolkit-1.7.0.3.2.0.0-333/classpath:/var/lib/ambari-agent/tmp/nifi-toolkit-1.7.0.3.2.0.0-333/lib/* -Xms12m -Xmx24m org.apache.nifi.toolkit.tls.TlsToolkitMain server -F -f /usr/hdf/current/nifi/conf/nifi-certificate-authority.json
      root     12897  0.0  0.0 112712   980 pts/1    R+   13:17   0:00 grep --color=auto toolkit

      In the above case nifi-toolkit-1.7.0.3.2.0.0-333 could be used to populate the nifi-toolkit directory.