Platform eXtension Framework (PXF) commands are failing with the error
ERROR: $JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.412.b08-1.el7_9.x86_64/jre is invalid. Set $JAVA_HOME in your environment before running PXF commands.
The JAVA_HOME environment variable is not set correctly.
Verify java has been installed on all hosts in the cluster and that it is in the same location on all hosts.
Set the environment variable JAVA_HOME to the directory so that ${JAVA_HOME}/bin/java is the location of the java binary.
It can be set in ONE of the following:
See Installing Java for PXF in the PXF Documentation