# 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>

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

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://george-jen.gitbook.io/data-science-and-apache-spark/setup-hadoop-hive-and-spark-on-linux-without-docker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
