Skip to content

Commit 80d881c

Browse files
committed
Updated Presto to 326 and Minio to latest.
1 parent 5268d08 commit 80d881c

File tree

8 files changed

+35
-9
lines changed

8 files changed

+35
-9
lines changed

config/presto/catalog/hive.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
connector.name=hive-hadoop2
2+
hive.metastore.uri=thrift://hive-metastore:9083
3+
hive.metastore-timeout=1m
4+
hive.s3.aws-access-key=minio
5+
hive.s3.aws-secret-key=minio123
6+
hive.s3.endpoint=http://minio:9000
7+
hive.s3.path-style-access=true
8+
hive.s3.ssl.enabled=false

config/presto/config.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
coordinator=true
2+
node-scheduler.include-coordinator=true
3+
http-server.http.port=8080
4+
query.max-memory=5GB
5+
query.max-memory-per-node=1GB
6+
discovery-server.enabled=true
7+
discovery.uri=http://presto-coordinator:8080

config/presto/jvm.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-server
2+
-Xmx16G
3+
-XX:+UseG1GC
4+
-XX:G1HeapRegionSize=32M
5+
-XX:+UseGCOverheadLimit
6+
-XX:+ExplicitGCInvokesConcurrent
7+
-XX:+HeapDumpOnOutOfMemoryError
8+
-XX:OnOutOfMemoryError=kill -9 %p

config/presto/node.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node.environment=development
2+
node.id=presto-coordinator
3+
node.data-dir=/opt/presto/data

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,23 @@ services:
7575
# Presto
7676

7777
presto-coordinator:
78-
image: johannestang/prestodb:0.215
78+
image: johannestang/prestodb:326
7979
restart: always
8080
ports:
8181
- "8080:8080"
8282
environment:
8383
S3_ACCESS_KEY: ${MINIO_ACCESS_KEY}
8484
S3_SECRET_KEY: ${MINIO_SECRET_KEY}
8585
S3_ENDPOINT: "http://minio:9000"
86+
volumes:
87+
- ./config/presto:/opt/presto/etc
8688
networks:
8789
- base_net
8890

8991
# Minio
9092

9193
minio:
92-
image: minio/minio:RELEASE.2018-12-27T18-33-08Z
94+
image: minio/minio:RELEASE.2019-10-12T01-39-57Z
9395
restart: always
9496
ports:
9597
- "9000:9000"

images/prestodb/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
# 3. Launcher modified such that S3 credentials can be set by env vars.
77

88
FROM openjdk:8u181-jre-stretch
9+
910

10-
11-
12-
ENV PRESTO_VERSION=0.215
11+
ENV PRESTO_VERSION=326
1312
ENV PRESTO_HOME=/opt/presto
1413

1514
# extra dependency for running launcher
@@ -18,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1817
&& rm -rf /var/lib/apt/lists/* && \
1918
ln -s /usr/bin/python2.7 /usr/bin/python
2019

21-
RUN curl -L https://repo1.maven.org/maven2/com/facebook/presto/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz -o /tmp/presto-server.tgz && \
20+
RUN curl -L https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz -o /tmp/presto-server.tgz && \
2221
tar -xzf /tmp/presto-server.tgz -C /opt && \
2322
ln -s /opt/presto-server-${PRESTO_VERSION} ${PRESTO_HOME} && \
2423
mkdir -p ${PRESTO_HOME}/data && \

images/prestodb/etc/catalog/hive.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
connector.name=hive-hadoop2
22
hive.metastore.uri=thrift://hive-metastore:9083
3-
hive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml
43
hive.metastore-timeout=1m
54
hive.s3.aws-access-key=accesskey123
65
hive.s3.aws-secret-key=secretkey123

scripts/presto-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
cd "${0%/*}"
33

4-
PRESTO_VERSION=0.215
4+
PRESTO_VERSION=326
55
if [ ! -e presto-cli.jar ]; then
6-
wget https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/$PRESTO_VERSION/presto-cli-$PRESTO_VERSION-executable.jar -O presto-cli.jar
6+
wget https://repo1.maven.org/maven2/io/prestosql/presto-cli/$PRESTO_VERSION/presto-cli-$PRESTO_VERSION-executable.jar -O presto-cli.jar
77
fi
88
java -jar presto-cli.jar --server localhost:8080 --catalog hive --schema default

0 commit comments

Comments
 (0)