Hadoop Java Versions

Recently I was studying hadoop and found that I need to use jdk, and then there is a problem of software version compatibility

Supported Java Versions

  • Apache Hadoop 3.x now supports only Java 8
  • Apache Hadoop from 2.7.x to 2.x support Java 7 and 8
  • Java 11 support is now in progress:
    • trunk (3.3.0-SNAPSHOT) supports Java 11 as runtime:  HADOOP-15338 - Java 11 runtime support RESOLVED
    • Compiling Hadoop with Java 11 is not supported:  HADOOP-16795 - Java 11 compile support OPEN

The above explanation is in the development of java11, fully supports java8

The following provides download and install directly on Linux, which is the selected version;

If you have installed other versions of java jdk, you can use the version switch command;

 

 Download instructions: click to enter

Introduction of linux environment: Ubuntu 18.03

 

We have installed openjdk by default, but the version is not suitable and needs to be replaced;

One: query version:

sudo update-java-alternatives -l

 

 

 

Two: switch version

sudo update-alternatives --config java
sudo update-alternatives --config javac

 

 

 

 

 

 

 

 

 Please indicate if reprinted: https://www.cnblogs.com/WLCYSYS/p/12741912.html

Reference: https://blog.csdn.net/sun8112133/article/details/79905401

Guess you like

Origin www.cnblogs.com/WLCYSYS/p/12741912.html