# Setup Hadoop, Hive and Spark on Linux without docker

### Setup Hadoop, Hive and Spark on Linux without docker

### Install JDK

Download JDK 8:

[https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html](https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html)

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&#x20;

or log out and log back in.

Now run to confirm version of JDK

java -version

javac -version

```
java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
(base) dv6@dv6:~$ javac -version
javac 1.8.0_191

```
