Skip to content

Commit a06cc3c

Browse files
committed
RANGER-5386: addressed review suggestions
1 parent 489524d commit a06cc3c

File tree

11 files changed

+50
-266
lines changed

11 files changed

+50
-266
lines changed

dev-support/ranger-docker/.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ OZONE_RUNNER_VERSION=20230615-1
6767

6868
# Trino Configuration
6969
TRINO_VERSION=latest
70-
TRINO_PLUGIN_VERSION=3.0.0-SNAPSHOT
7170

7271
# Debug Configuration
7372
DEBUG_ADMIN=false

dev-support/ranger-docker/Dockerfile.ranger-trino

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,6 @@
1717
ARG TRINO_VERSION
1818
FROM trinodb/trino:${TRINO_VERSION}
1919

20-
# trino base image layer has undergone changes in base os image with time.
21-
##########################################
22-
# Trino Versions | OS Layer #
23-
# 359 - 369 | centos 11 #
24-
# 370 - 389 | ubi8 #
25-
# 390 - 391 | azul openjdk #
26-
# 392 | ubi8 #
27-
# 393 - 431 | eclipse-temurin #
28-
# 432 - current | ubi9 #
29-
##########################################
30-
31-
USER root
32-
33-
ARG TRINO_VERSION
34-
ARG TRINO_PLUGIN_VERSION
35-
36-
RUN mkdir -p /home/ranger/scripts/
37-
38-
COPY ./scripts/access-control.properties /etc/trino/
39-
COPY ./scripts/ranger-trino-audit.xml /etc/trino/
40-
COPY ./scripts/ranger-trino-security.xml /etc/trino/
41-
COPY ./scripts/core-site.xml /etc/trino/
42-
COPY ./scripts/ranger-trino-hive.properties /etc/trino/catalog/hive.properties
43-
44-
COPY ./scripts/ranger-trino.sh /home/ranger/scripts/
45-
COPY ./scripts/ranger-trino-setup.sh /home/ranger/scripts/
46-
47-
RUN chmod 744 /home/ranger/scripts/ranger-trino-setup.sh /home/ranger/scripts/ranger-trino.sh
48-
4920
USER trino
5021

51-
ENTRYPOINT ["/home/ranger/scripts/ranger-trino.sh"]
22+
COPY ./config/trino/* /etc/trino/
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
19+
<configuration xmlns:xi="http://www.w3.org/2001/XInclude">
20+
<!-- The following properties are used for 2-way SSL client server validation -->
21+
<property>
22+
<name>xasecure.policymgr.clientssl.keystore</name>
23+
<value>hadoopdev-clientcert.jks</value>
24+
<description>
25+
Java Keystore files
26+
</description>
27+
</property>
28+
<property>
29+
<name>xasecure.policymgr.clientssl.truststore</name>
30+
<value>cacerts-xasecure.jks</value>
31+
<description>
32+
java truststore file
33+
</description>
34+
</property>
35+
<property>
36+
<name>xasecure.policymgr.clientssl.keystore.credential.file</name>
37+
<value>jceks://file/tmp/keystore-hadoopdev-ssl.jceks</value>
38+
<description>
39+
java keystore credential file
40+
</description>
41+
</property>
42+
<property>
43+
<name>xasecure.policymgr.clientssl.truststore.credential.file</name>
44+
<value>jceks://file/tmp/truststore-hadoopdev-ssl.jceks</value>
45+
<description>
46+
java truststore credential file
47+
</description>
48+
</property>
49+
</configuration>

dev-support/ranger-docker/docker-compose.ranger-trino.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44
context: .
55
dockerfile: Dockerfile.ranger-trino
66
args:
7-
- TRINO_PLUGIN_VERSION=${TRINO_PLUGIN_VERSION}
87
- TRINO_VERSION=${TRINO_VERSION}
98
image: ranger-trino
109
hostname: trino
@@ -19,7 +18,6 @@ services:
1918
ranger:
2019
condition: service_started
2120
environment:
22-
- TRINO_PLUGIN_VERSION
2321
- TRINO_VERSION
2422

2523
networks:

dev-support/ranger-docker/scripts/ranger-trino-plugin-install.properties

Lines changed: 0 additions & 169 deletions
This file was deleted.

dev-support/ranger-docker/scripts/ranger-trino-setup.sh

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)