Replacing the JDK used by Ops Center Administrator

Ops Center Administrator User Guide

Version
10.9.x
File Size
6.6 MB
Audience
anonymous
Part Number
MK-99ADM001-17

To replace the JDK used by Ops Center Administrator:

Note:
  • You cannot revert the changes. If you want to replace the JDK with the bundled JDK, re-install Ops Center Administrator. The JDK re-installation process includes backup, uninstall, fresh install, and then restore backup.
  • When you upgrade Ops Center Administrator, the JDK is replaced with the bundled JDK. If necessary, replace the JDK again.

JDK prerequisites:

  • Amazon Corretto 8
  • File type must be Linux x64 Compressed Archive
Note: Make sure no one is using Ops Center Administrator and no jobs are running. Jobs running during the JDK replacement might fail.
  1. Open an SSH connection to the VM or the server, or open the VMware console and press Alt+F2 to reach the console.
  2. Log in as a root user or a normal user. If you log in as a normal user, use the sudo command to complete the following procedure as the root user.
  3. Enter the command /opt/rainier/bin/rainier-replace-jdk with the following parameters to replace the file:
    • --file Path of the Linux x64 Compressed Archive JDK File.
    • -u User name of the Virtual Appliance Manager.
    • --backup-dir Path of an empty directory where the backup file is stored.
  4. Enter the Virtual Appliance Manager password.
  5. To confirm that the new JDK version was applied, enter /opt/rainier/bin/rainier-replace-jdk --current-java.
# /opt/rainier/bin/rainier-replace-jdk --file /tmp/jdk/jdk-8u281-linux-x64.tar.gz -u vamuser --backup-dir /tmp/replacejdk_backup