Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.22 KB

INSTALL.md

File metadata and controls

41 lines (31 loc) · 1.22 KB

Install the Presto Workload Analyzer

To install the Presto Workload Analyzer in Python virtual environments, use the commands in section 1.

For Docker environments, see section 2, after the video below.

1. Virtual environment

Install (using Python 3.6+)

python3 -m venv .env
source .env/bin/activate && pip install -U pip wheel
pip install .

2. Docker

Install (on Ubuntu 18.04 @ EC2)

$ sudo apt update && sudo apt install docker.io # install Docker CE edition
$ sudo usermod -aG docker $USER && logout   	# to allow the user to run Docker without sudo
$ docker run hello-world          				# make sure Docker works

Hello from Docker!
This message shows that your installation appears to be working correctly.
<snip>

Build

$ cd $ANALYZER_REPOSITORY/
$ docker build -t analyzer:latest .
# lot's of output, takes ~1 minute

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED              SIZE
analyzer            latest              8d36ac887157        About a minute ago   1.35GB
python              3.7                 cda8c7e31f89        44 hours ago         919MB
hello-world         latest              bf756fb1ae65        3 months ago         13.3kB