Skip to content

Commit

Permalink
Trino version bump to resolve CVEs. Upgrade requires connection name … (
Browse files Browse the repository at this point in the history
#1739)

* Trino version bump to resolve CVEs. Upgrade requires connection name to change from hive-hadoop2 -> hive.

* Continuation of trino upgrade to resolve cves.

* More config fixes for trino upgrade work.

* Continuation of trino upgrade changes. Adjust unit test to new error message.

* format

* test error message fix

---------

Co-authored-by: Rob Seward (SOM) <[email protected]>
Co-authored-by: Ian Abbott <[email protected]>
  • Loading branch information
3 people authored Jan 27, 2025
1 parent 02055f8 commit 1b03ae3
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 52 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ node_modules/

compaction-test-fixtures/

apps/reaper/12345-6789
# emacs editor files
*~
[#]*[#]

apps/reaper/12345-6789
18 changes: 9 additions & 9 deletions apps/andi/test/integration/hive.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
connector.name=hive-hadoop2
connector.name=hive
hive.metastore.uri=thrift://metastore:8000
hive.metastore.username=hive
hive.metastore-timeout=360m
hive.allow-drop-table=true
hive.allow-rename-table=true
hive.s3.aws-access-key=minioadmin
hive.s3.aws-secret-key=minioadmin
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.ssl.enabled=false
hive.metastore.thrift.client.connect-timeout=360m
hive.metastore.thrift.client.read-timeout=360m
fs.native-s3.enabled=true
s3.aws-access-key=minioadmin
s3.aws-secret-key=minioadmin
s3.region=ignored-with-minio
s3.path-style-access=true
s3.endpoint=http://minio:9000
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ defmodule DiscoveryApi.Data.QueryTest do

assert %{
"message" =>
"Syntax Error: Invalid X-Trino-Prepared-Statement header: line 1:43: mismatched input 'FORM'. Expecting: ',', 'EXCEPT', 'FETCH', 'FROM', 'GROUP', 'HAVING', 'INTERSECT', 'LIMIT', 'OFFSET', 'ORDER', 'UNION', 'WHERE', 'WINDOW', <EOF>"
"Syntax Error: Error 400 Bad Request: Invalid X-Trino-Prepared-Statement header: line 1:43: mismatched input 'FORM'. Expecting: ',', 'EXCEPT', 'FETCH', 'FROM', 'GROUP', 'HAVING', 'INTERSECT', 'LIMIT', 'OFFSET', 'ORDER', 'UNION', 'WHERE', 'WINDOW', <EOF>"
} ==
plain_text_post(conn, "/api/v1/query", request_body)
|> response(400)
Expand Down Expand Up @@ -524,7 +524,7 @@ defmodule DiscoveryApi.Data.QueryTest do

assert %{
"message" =>
"Syntax Error: Invalid X-Trino-Prepared-Statement header: line 3:3: mismatched input 'DROP'. Expecting: ',', '.', 'AS', 'CROSS', 'EXCEPT', 'FETCH', 'FOR', 'FULL', 'GROUP', 'HAVING', 'INNER', 'INTERSECT', 'JOIN', 'LEFT', 'LIMIT', 'MATCH_RECOGNIZE', 'NATURAL', 'OFFSET', 'ORDER', 'RIGHT', 'TABLESAMPLE', 'UNION', 'WHERE', 'WINDOW', <EOF>, <identifier>"
"Syntax Error: Error 400 Bad Request: Invalid X-Trino-Prepared-Statement header: line 3:3: mismatched input 'DROP'. Expecting: ',', '.', 'AS', 'CROSS', 'EXCEPT', 'FETCH', 'FOR', 'FULL', 'GROUP', 'HAVING', 'INNER', 'INTERSECT', 'JOIN', 'LEFT', 'LIMIT', 'MATCH_RECOGNIZE', 'NATURAL', 'OFFSET', 'ORDER', 'RIGHT', 'TABLESAMPLE', 'UNION', 'WHERE', 'WINDOW', <EOF>, <identifier>"
} ==
plain_text_post(conn, "/api/v1/query", request_body)
|> response(400)
Expand Down
2 changes: 1 addition & 1 deletion apps/discovery_api/test/integration/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
- metastore
- minio
platform: linux/amd64
image: trinodb/trino:389
image: quay.io/urbanos/ubi-trino:468-015
ports:
- "8080:8080"
healthcheck:
Expand Down
18 changes: 9 additions & 9 deletions apps/discovery_api/test/integration/hive.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
connector.name=hive-hadoop2
connector.name=hive
hive.metastore.uri=thrift://metastore:8000
hive.metastore.username=hive
hive.metastore-timeout=360m
hive.allow-drop-table=true
hive.allow-rename-table=true
hive.s3.aws-access-key=minioadmin
hive.s3.aws-secret-key=minioadmin
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.ssl.enabled=false
hive.metastore.thrift.client.connect-timeout=360m
hive.metastore.thrift.client.read-timeout=360m
fs.native-s3.enabled=true
s3.aws-access-key=minioadmin
s3.aws-secret-key=minioadmin
s3.region=ignored-with-minio
s3.path-style-access=true
s3.endpoint=http://minio:9000
2 changes: 1 addition & 1 deletion apps/e2e/test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ services:
depends_on:
- metastore
- minio
image: quay.io/urbanos/ubi-trino:458-015
image: quay.io/urbanos/ubi-trino:468-015
ports:
- "8080:8080"
healthcheck:
Expand Down
2 changes: 1 addition & 1 deletion apps/forklift/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
depends_on:
- metastore
- minio
image: trinodb/trino:389
image: quay.io/urbanos/ubi-trino:468-015
ports:
- "8080:8080"
healthcheck:
Expand Down
18 changes: 9 additions & 9 deletions apps/forklift/test/integration/hive.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
connector.name=hive-hadoop2
connector.name=hive
hive.metastore.uri=thrift://metastore:8000
hive.metastore.username=hive
hive.metastore-timeout=360m
hive.allow-drop-table=true
hive.allow-rename-table=true
hive.s3.aws-access-key=minioadmin
hive.s3.aws-secret-key=minioadmin
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.ssl.enabled=false
hive.metastore.thrift.client.connect-timeout=360m
hive.metastore.thrift.client.read-timeout=360m
fs.native-s3.enabled=true
s3.aws-access-key=minioadmin
s3.aws-secret-key=minioadmin
s3.region=ignored-with-minio
s3.path-style-access=true
s3.endpoint=http://minio:9000
2 changes: 1 addition & 1 deletion apps/pipeline/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
depends_on:
- metastore
- minio
image: trinodb/trino:389
image: quay.io/urbanos/ubi-trino:468-015
platform: linux/amd64
ports:
- "8080:8080"
Expand Down
18 changes: 9 additions & 9 deletions apps/pipeline/test/integration/hive.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
connector.name=hive-hadoop2
connector.name=hive
hive.metastore.uri=thrift://metastore:8000
hive.metastore.username=hive
hive.metastore-timeout=360m
hive.allow-drop-table=true
hive.allow-rename-table=true
hive.s3.aws-access-key=minioadmin
hive.s3.aws-secret-key=minioadmin
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.ssl.enabled=false
hive.metastore.thrift.client.connect-timeout=360m
hive.metastore.thrift.client.read-timeout=360m
fs.native-s3.enabled=true
s3.aws-access-key=minioadmin
s3.aws-secret-key=minioadmin
s3.region=ignored-with-minio
s3.path-style-access=true
s3.endpoint=http://minio:9000
18 changes: 9 additions & 9 deletions apps/reaper/test/integration/hive.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
connector.name=hive-hadoop2
connector.name=hive
hive.metastore.uri=thrift://metastore:8000
hive.metastore.username=hive
hive.metastore-timeout=360m
hive.allow-drop-table=true
hive.allow-rename-table=true
hive.s3.aws-access-key=minioadmin
hive.s3.aws-secret-key=minioadmin
hive.s3.path-style-access=true
hive.s3.endpoint=http://minio:9000
hive.s3.ssl.enabled=false
hive.metastore.thrift.client.connect-timeout=360m
hive.metastore.thrift.client.read-timeout=360m
fs.native-s3.enabled=true
s3.aws-access-key=minioadmin
s3.aws-secret-key=minioadmin
s3.region=ignored-with-minio
s3.path-style-access=true
s3.endpoint=http://minio:9000

0 comments on commit 1b03ae3

Please sign in to comment.