Skip to content

HW9 Java Installation for Spark #93

@rocket-ron

Description

@rocket-ron

The Spark installation indicates installing JDK 1.8, but apparently the latest CENTOS 7 x64 image / RPMs installs both 1.7 and 1.8 and sets the default to 1.7. To correct this, issue the following command:

[root@spark1 ~]# alternatives --config java

There are 2 programs which provide 'java'.

Selection Command

1 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-2.b17.el7_1.x86_64/jre/bin/java
*+ 2 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91-2.6.2.1.el7_1.x86_64/jre/bin/java

Enter to keep the current selection[+], or type selection number: 1

Once done, do java --version to check that the correct version is selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions