Java

To run MapR software and Hadoop, you must install a supported Java Development Kit (JDK) on your node.

Java

MapR Data Platform requires the Java Development Kit (JDK). Installing only the Java runtime environment (JRE) is not sufficient. Verify that one of the following JDK versions is installed on the node:

Java Requirements for MapR Core
  • Sun Java JDK 1.8
  • OpenJDK 1.8
*Oracle Java JDK 17, OpenJDK 17, and Amazon Corretto 17 are supported for releases 7.2.0 and later. See the JDK Support Matrix.
NOTE Make sure you have the development kit installed. Some JRE packages include jdk in the name, but do not provide the required JDK software.
Special Requirements for Using OpenJDK

If you use OpenJDK:

  • RedHat/CentOS must have java-<version>-openjdk-devel installed.
  • SLES nodes must have java-<version>-openjdk-devel installed.
  • Ubuntu nodes must have openjdk-<version>-jdk installed.
NOTE The openjdk-devel and openjdk-<version>-jdk packages include the jps command that lists running Java processes and can show whether the CLDB has started. This command is not supported in the Sun Java JRE.
To install the Oracle/Sun Java JDK:
Obtain the Oracle/Sun Java Development Kit (JDK), available at Oracle's Java SE website. Find Java SE 8 in the archive of previous versions.
To install or update OpenJDK
Use a package manager, such as yum (RedHat, Oracle Linux, or CentOS), apt-get (Ubuntu) or zypper (SLES).
  • On RedHat, Oracle Linux, or CentOS:
    # yum install java-1.8.0-openjdk-devel
  • On Ubuntu:
    # apt-get install openjdk-8-jdk
  • SLES
    # zypper install java-1_8_0-openjdk-devel