Setup Hadoop, Hive and Spark on Linux without docker

Setup Hadoop, Hive and Spark on Linux without docker

Install JDK

Download JDK 8:
I downloaded: jdk-8u202-linux-x64.tar.gz, copy to ~/java/
Enter below:
cd ~/
mkdir java
cd java
tar -xvzf jdk-8u202-linux-x64.tar.gz
cd jdk1.8.0_202
pwd
/home/bigdata2/java/jdk1.8.0_202
This is JAVA_HOME, in my example, JAVA_HOME=/home/bigdata2/java/jdk1.8.0_202
vi ~/.bashrc, append following in the end of file ~/.bashrc, in my JAVA_HOME:
export JAVA_HOME= =/home/bigdata2/java/jdk1.8.0_202
export PATH=$JAVA_HOME/bin:$PATH
Save and exit vi
Run
source ~/.bashrc
or log out and log back in.
Now run to confirm version of JDK
java -version
javac -version
1
java -version
2
java version "1.8.0_191"
3
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
4
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
5
(base) [email protected]:~$ javac -version
6
javac 1.8.0_191
7
​
Copied!
Last modified 1yr ago