https://github.com/treeverse/blog-presto-local
Presto environment part of blog post
https://github.com/treeverse/blog-presto-local
Last synced: about 1 year ago
JSON representation
Presto environment part of blog post
- Host: GitHub
- URL: https://github.com/treeverse/blog-presto-local
- Owner: treeverse
- Created: 2020-08-31T14:09:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T15:16:47.000Z (almost 6 years ago)
- Last Synced: 2024-04-16T10:58:30.657Z (about 2 years ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Presto Environment
### About
This environment will allow you to run Presto (Using docker-compose).
It Includes the following:
* MariaDB
* Hive 3.x
* Presto
### Prerequisite
Update the following configuration files with your AWS credentials:
* `etc/s3.properties`
* `hive/conf/hdfs-site.xml`
* `hive/conf/hive-site.xml`
### Running
```sh
$ docker-compose up -d
```
### using Presto CLI
```sh
$ docker-compose exec presto presto-cli --catalog s3 --schema default
```
### Running Hive Server (optional)
```sh
$ docker-compose exec -d hive hiveserver2
```
This will start Hive server in the background.
You could use `beeline` to connect to the server after it's up and running
```sh
$ docker-compose exec hive beeline -u jdbc:hive2://localhost:10000
```