File tree 8 files changed +35
-9
lines changed
8 files changed +35
-9
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ node.environment =development
2
+ node.id =presto-coordinator
3
+ node.data-dir =/opt/presto/data
Original file line number Diff line number Diff line change @@ -75,21 +75,23 @@ services:
75
75
# Presto
76
76
77
77
presto-coordinator :
78
- image : johannestang/prestodb:0.215
78
+ image : johannestang/prestodb:326
79
79
restart : always
80
80
ports :
81
81
- " 8080:8080"
82
82
environment :
83
83
S3_ACCESS_KEY : ${MINIO_ACCESS_KEY}
84
84
S3_SECRET_KEY : ${MINIO_SECRET_KEY}
85
85
S3_ENDPOINT : " http://minio:9000"
86
+ volumes :
87
+ - ./config/presto:/opt/presto/etc
86
88
networks :
87
89
- base_net
88
90
89
91
# Minio
90
92
91
93
minio :
92
- image : minio/minio:RELEASE.2018-12-27T18-33-08Z
94
+ image : minio/minio:RELEASE.2019-10-12T01-39-57Z
93
95
restart : always
94
96
ports :
95
97
- " 9000:9000"
Original file line number Diff line number Diff line change 6
6
# 3. Launcher modified such that S3 credentials can be set by env vars.
7
7
8
8
FROM openjdk:8u181-jre-stretch
9
+
9
10
10
-
11
-
12
- ENV PRESTO_VERSION=0.215
11
+ ENV PRESTO_VERSION=326
13
12
ENV PRESTO_HOME=/opt/presto
14
13
15
14
# extra dependency for running launcher
@@ -18,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
18
17
&& rm -rf /var/lib/apt/lists/* && \
19
18
ln -s /usr/bin/python2.7 /usr/bin/python
20
19
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 && \
22
21
tar -xzf /tmp/presto-server.tgz -C /opt && \
23
22
ln -s /opt/presto-server-${PRESTO_VERSION} ${PRESTO_HOME} && \
24
23
mkdir -p ${PRESTO_HOME}/data && \
Original file line number Diff line number Diff line change 1
1
connector.name =hive-hadoop2
2
2
hive.metastore.uri =thrift://hive-metastore:9083
3
- hive.config.resources =/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml
4
3
hive.metastore-timeout =1m
5
4
hive.s3.aws-access-key =accesskey123
6
5
hive.s3.aws-secret-key =secretkey123
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
cd " ${0%/* } "
3
3
4
- PRESTO_VERSION=0.215
4
+ PRESTO_VERSION=326
5
5
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
7
7
fi
8
8
java -jar presto-cli.jar --server localhost:8080 --catalog hive --schema default
You can’t perform that action at this time.
0 commit comments