Click here to Skip to main content
15,744,817 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i am unable to set the java home for hadoop during the installation of hadoop
Updated 24-Jan-23 18:07pm

1 solution

It's 2023 now and if you have linux and a program called 'alternatives' you can use the cmd

$> alternatives --config java

to find path to java versions on your machine and this program lets you choose which version you want to use if you have more than 1 java installed.

Then the docs at:

Apache Hadoop 3.3.4 – Hadoop: Setting up a Single Node Cluster.[^]

give pretty clear instruction as to which files need variables adjusted. For my hadoop 3.1 I had to set JAVA_HOME in the file. Read the docs!
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900