> For the complete documentation index, see [llms.txt](https://george-jen.gitbook.io/data-science-and-apache-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://george-jen.gitbook.io/data-science-and-apache-spark/install-hive.md).

# Install Hive

### Install Hive:

Create a hive directory:

cd \~

mkdir hive

cd hive

Download hive (in this class, we download hive 3.1.2), expand hive tar.gz, change name to hive

wget <http://mirrors.ocf.berkeley.edu/apache/hive/hive-3.1.2/apache-hive-3.1.2-bin.tar.gz>

tar -xvzf ./apache-hive-3.1.2-bin.tar.gz

mv apache-hive-3.1.2-bin hive

cd hive
