Replacing the JDK used by Ops Center Administrator

Ops Center Administrator User Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ADM001-21

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.
  • By default, when you upgrade Ops Center Administrator, the JDK is replaced with the bundled JDK. If you replace the JDK with the --keep-java option, the JDK will be automatically applied after the next upgrade installation.

JDK prerequisites:

  • Amazon Corretto 17
  • 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.
    • --keep-java Saving the JDK file specified in --file to /opt/rainier/jdk. If a saved JDK file exists, it will be automatically applied after the next upgrade installation (Optional).
    • -u User name of the Virtual Appliance Manager. The default user name is sysadmin.
    • --backup-dir Path of an empty directory where the backup file is stored.
      Tip: When executing the command, the saved file using the --keep-java parameter is deleted. To apply it after the next upgrade installation, always specify the --keep-java parameter.
  4. Enter the Virtual Appliance Manager password. The default password is sysadmin
  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/amazon-corretto-17.0.10.7.1-linux-x64.tar.gz -u vamuser --backup-dir /tmp/replacejdk_backup