Skip to content

Commit 829112e

Browse files
VenkatasivareddyTRJithendar12
authored andcommitted
Upgrade to JDK17
1 parent fb376ca commit 829112e

File tree

41 files changed

+83
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+83
-37
lines changed

Diff for: athena-aws-cmdb/athena-aws-cmdb.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ Resources:
5151
disable_spill_encryption: !Ref DisableSpillEncryption
5252
spill_bucket: !Ref SpillBucket
5353
spill_prefix: !Ref SpillPrefix
54+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
5455
FunctionName: !Ref AthenaCatalogName
5556
Handler: "com.amazonaws.athena.connectors.aws.cmdb.AwsCmdbCompositeHandler"
5657
CodeUri: "./target/athena-aws-cmdb-2022.47.1.jar"
5758
Description: "Enables Amazon Athena to communicate with various AWS Services, making your resource inventories accessible via SQL."
58-
Runtime: java11
59+
Runtime: java17
5960
Timeout: !Ref LambdaTimeout
6061
MemorySize: !Ref LambdaMemory
6162
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-clickhouse/athena-clickhouse.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ Resources:
6969
spill_bucket: !Ref SpillBucket
7070
spill_prefix: !Ref SpillPrefix
7171
default: !Ref DefaultConnectionString
72+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7273
FunctionName: !Ref LambdaFunctionName
7374
Handler: "com.amazonaws.athena.connectors.clickhouse.ClickHouseMuxCompositeHandler"
7475
CodeUri: "./target/athena-clickhouse-2022.47.1.jar"
7576
Description: "Enables Amazon Athena to communicate with ClickHouse using JDBC"
76-
Runtime: java11
77+
Runtime: java17
7778
Timeout: !Ref LambdaTimeout
7879
MemorySize: !Ref LambdaMemory
7980
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-cloudera-hive/athena-cloudera-hive.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ Resources:
6464
spill_bucket: !Ref SpillBucket
6565
spill_prefix: !Ref SpillPrefix
6666
default: !Ref DefaultConnectionString
67+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
6768
FunctionName: !Ref LambdaFunctionName
6869
Handler: "com.amazonaws.athena.connectors.cloudera.HiveMuxCompositeHandler"
6970
CodeUri: "./target/athena-cloudera-hive-2022.47.1.jar"
7071
Description: "Enables Amazon Athena to communicate with Coludera Hive using JDBC"
71-
Runtime: java11
72+
Runtime: java17
7273
Timeout: !Ref LambdaTimeout
7374
MemorySize: !Ref LambdaMemory
7475
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-cloudera-impala/athena-cloudera-impala.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ Resources:
6969
spill_bucket: !Ref SpillBucket
7070
spill_prefix: !Ref SpillPrefix
7171
default: !Ref DefaultConnectionString
72+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7273
FunctionName: !Ref LambdaFunctionName
7374
Handler: "com.amazonaws.athena.connectors.cloudera.ImpalaMuxCompositeHandler"
7475
CodeUri: "./target/athena-cloudera-impala-2022.47.1.jar"
7576
Description: "Enables Amazon Athena to communicate with Cloudera Impala using JDBC"
76-
Runtime: java11
77+
Runtime: java17
7778
Timeout: !Ref LambdaTimeout
7879
MemorySize: !Ref LambdaMemory
7980
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-cloudwatch-metrics/athena-cloudwatch-metrics.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ Resources:
5151
disable_spill_encryption: !Ref DisableSpillEncryption
5252
spill_bucket: !Ref SpillBucket
5353
spill_prefix: !Ref SpillPrefix
54+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
5455
FunctionName: !Ref AthenaCatalogName
5556
Handler: "com.amazonaws.athena.connectors.cloudwatch.metrics.MetricsCompositeHandler"
5657
CodeUri: "./target/athena-cloudwatch-metrics-2022.47.1.jar"
5758
Description: "Enables Amazon Athena to communicate with Cloudwatch Metrics, making your metrics data accessible via SQL"
58-
Runtime: java11
59+
Runtime: java17
5960
Timeout: !Ref LambdaTimeout
6061
MemorySize: !Ref LambdaMemory
6162
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-cloudwatch/athena-cloudwatch.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ Resources:
6565
spill_bucket: !Ref SpillBucket
6666
spill_prefix: !Ref SpillPrefix
6767
kms_key_id: !If [HasKMSKeyId, !Ref KMSKeyId, !Ref "AWS::NoValue"]
68+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
6869
FunctionName: !Ref AthenaCatalogName
6970
Handler: "com.amazonaws.athena.connectors.cloudwatch.CloudwatchCompositeHandler"
7071
CodeUri: "./target/athena-cloudwatch-2022.47.1.jar"
7172
Description: "Enables Amazon Athena to communicate with Cloudwatch, making your log accessible via SQL"
72-
Runtime: java11
73+
Runtime: java17
7374
Timeout: !Ref LambdaTimeout
7475
MemorySize: !Ref LambdaMemory
7576
Role: !If [NotHasLambdaRole, !GetAtt FunctionRole.Arn, !Ref LambdaRole]

Diff for: athena-datalakegen2/athena-datalakegen2.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ Resources:
7070
spill_bucket: !Ref SpillBucket
7171
spill_prefix: !Ref SpillPrefix
7272
default: !Ref DefaultConnectionString
73+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7374
FunctionName: !Ref LambdaFunctionName
7475
Handler: "com.amazonaws.athena.connectors.datalakegen2.DataLakeGen2MuxCompositeHandler"
7576
CodeUri: "./target/athena-datalakegen2-2022.47.1.jar"
7677
Description: "Enables Amazon Athena to communicate with DataLake Gen2 using JDBC"
77-
Runtime: java11
78+
Runtime: java17
7879
Timeout: !Ref LambdaTimeout
7980
MemorySize: !Ref LambdaMemory
8081
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-db2-as400/athena-db2-as400.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ Resources:
7171
spill_bucket: !Ref SpillBucket
7272
spill_prefix: !Ref SpillPrefix
7373
default: !Ref DefaultConnectionString
74+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7475
FunctionName: !Ref LambdaFunctionName
7576
Handler: "com.amazonaws.athena.connectors.db2as400.Db2As400MuxCompositeHandler"
7677
CodeUri: "./target/athena-db2-as400-2022.47.1.jar"
7778
Description: "Enables Amazon Athena to communicate with DB2 on iSeries (AS400) using JDBC"
78-
Runtime: java11
79+
Runtime: java17
7980
Timeout: !Ref LambdaTimeout
8081
MemorySize: !Ref LambdaMemory
8182
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-db2/athena-db2.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ Resources:
7171
spill_bucket: !Ref SpillBucket
7272
spill_prefix: !Ref SpillPrefix
7373
default: !Ref DefaultConnectionString
74+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7475
FunctionName: !Ref LambdaFunctionName
7576
Handler: "com.amazonaws.athena.connectors.db2.Db2MuxCompositeHandler"
7677
CodeUri: "./target/athena-db2-2022.47.1.jar"
7778
Description: "Enables Amazon Athena to communicate with DB2 using JDBC"
78-
Runtime: java11
79+
Runtime: java17
7980
Timeout: !Ref LambdaTimeout
8081
MemorySize: !Ref LambdaMemory
8182
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-docdb/athena-docdb.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ Resources:
6565
spill_bucket: !Ref SpillBucket
6666
spill_prefix: !Ref SpillPrefix
6767
default_docdb: !Ref DocDBConnectionString
68+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
6869
FunctionName: !Ref AthenaCatalogName
6970
Handler: "com.amazonaws.athena.connectors.docdb.DocDBCompositeHandler"
7071
CodeUri: "./target/athena-docdb-2022.47.1.jar"
7172
Description: "Enables Amazon Athena to communicate with DocumentDB, making your DocumentDB data accessible via SQL."
72-
Runtime: java11
73+
Runtime: java17
7374
Timeout: !Ref LambdaTimeout
7475
MemorySize: !Ref LambdaMemory
7576
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-dynamodb/athena-dynamodb.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ Resources:
6565
spill_bucket: !Ref SpillBucket
6666
spill_prefix: !Ref SpillPrefix
6767
kms_key_id: !If [HasKMSKeyId, !Ref KMSKeyId, !Ref "AWS::NoValue"]
68+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
6869
FunctionName: !Ref AthenaCatalogName
6970
Handler: "com.amazonaws.athena.connectors.dynamodb.DynamoDBCompositeHandler"
7071
CodeUri: "./target/athena-dynamodb-2022.47.1.jar"
7172
Description: "Enables Amazon Athena to communicate with DynamoDB, making your tables accessible via SQL"
72-
Runtime: java11
73+
Runtime: java17
7374
Timeout: !Ref LambdaTimeout
7475
MemorySize: !Ref LambdaMemory
7576
Role: !If [NotHasLambdaRole, !GetAtt FunctionRole.Arn, !Ref LambdaRole]

Diff for: athena-elasticsearch/athena-elasticsearch.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@ Resources:
101101
query_timeout_cluster: !Ref QueryTimeoutCluster
102102
query_timeout_search: !Ref QueryTimeoutSearch
103103
query_scroll_timeout: !Ref QueryScrollTimeout
104+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
104105
FunctionName: !Sub "${AthenaCatalogName}"
105106
Handler: "com.amazonaws.athena.connectors.elasticsearch.ElasticsearchCompositeHandler"
106107
CodeUri: "./target/athena-elasticsearch-2022.47.1.jar"
107108
Description: "The Elasticsearch Lambda Connector provides Athena users the ability to query data stored on Elasticsearch clusters."
108-
Runtime: java11
109+
Runtime: java17
109110
Timeout: !Ref LambdaTimeout
110111
MemorySize: !Ref LambdaMemory
111112
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-example/athena-example.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ Resources:
5353
spill_bucket: !Ref SpillBucket
5454
spill_prefix: !Ref SpillPrefix
5555
data_bucket: !Ref DataBucket
56+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
5657
FunctionName: !Sub "${AthenaCatalogName}"
5758
Handler: "com.amazonaws.athena.connectors.example.ExampleCompositeHandler"
5859
CodeUri: "./target/athena-example-2022.47.1.jar"
5960
Description: "A guided example for writing and deploying your own federated Amazon Athena connector for a custom source."
60-
Runtime: java11
61+
Runtime: java17
6162
Timeout: !Ref LambdaTimeout
6263
MemorySize: !Ref LambdaMemory
6364
Policies:

Diff for: athena-federation-sdk/athena-federation-sdk.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ Resources:
4545
disable_spill_encryption: !Ref DisableSpillEncryption
4646
spill_bucket: !Ref SpillBucket
4747
spill_prefix: !Ref SpillPrefix
48+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
4849
FunctionName: !Ref AthenaCatalogName
4950
Handler: "com.amazonaws.athena.connector.lambda.examples.ExampleCompositeHandler"
5051
CodeUri: "./target/aws-athena-federation-sdk-2022.47.1-withdep.jar"
5152
Description: "This connector enables Amazon Athena to communicate with a randomly generated data source."
52-
Runtime: java11
53+
Runtime: java17
5354
Timeout: !Ref LambdaTimeout
5455
MemorySize: !Ref LambdaMemory
5556
Policies:

Diff for: athena-federation-sdk/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
<artifactId>maven-surefire-plugin</artifactId>
326326
<version>${surefire.failsafe.version}</version>
327327
<configuration>
328+
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
328329
<!--<groups>fast</groups>-->
329330
<excludedGroups>slow</excludedGroups>
330331
<properties>

Diff for: athena-gcs/athena-gcs.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ Resources:
5858
spill_bucket: !Ref SpillBucket
5959
spill_prefix: !Ref SpillPrefix
6060
secret_manager_gcp_creds_name: !Ref GCSSecretName
61+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
6162
FunctionName: !Ref LambdaFunctionName
6263
Handler: "com.amazonaws.athena.connectors.gcs.GcsCompositeHandler"
6364
CodeUri: "./target/athena-gcs.zip"
6465
Description: "Amazon Athena GCS Connector"
65-
Runtime: java11
66+
Runtime: java17
6667
Timeout: !Ref LambdaTimeout
6768
MemorySize: !Ref LambdaMemory
6869
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-google-bigquery/athena-google-bigquery.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ Resources:
7878
gcp_project_id: !Ref GCPProjectID
7979
big_query_endpoint: !Ref BigQueryEndpoint
8080
GOOGLE_APPLICATION_CREDENTIALS: '/tmp/service-account.json'
81+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
8182
FunctionName: !Ref LambdaFunctionName
8283
Handler: "com.amazonaws.athena.connectors.google.bigquery.BigQueryCompositeHandler"
8384
CodeUri: "./target/athena-google-bigquery-2022.47.1.jar"
8485
Description: "Enables Amazon Athena to communicate with BigQuery using Google SDK"
85-
Runtime: java11
86+
Runtime: java17
8687
Timeout: !Ref LambdaTimeout
8788
MemorySize: !Ref LambdaMemory
8889
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-hbase/athena-hbase.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@ Resources:
8484
kerberos_config_files_s3_reference: !Ref KerberosConfigFilesS3Reference
8585
principal_name: !Ref PrincipalName
8686
hbase_rpc_protection: !Ref HbaseRpcProtection
87+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
8788
FunctionName: !Ref AthenaCatalogName
8889
Handler: "com.amazonaws.athena.connectors.hbase.HbaseCompositeHandler"
8990
CodeUri: "./target/athena-hbase-2022.47.1.jar"
9091
Description: "Enables Amazon Athena to communicate with HBase, making your HBase data accessible via SQL"
91-
Runtime: java11
92+
Runtime: java17
9293
Timeout: !Ref LambdaTimeout
9394
MemorySize: !Ref LambdaMemory
9495
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-hbase/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
<artifactId>maven-surefire-plugin</artifactId>
297297
<version>${surefire.failsafe.version}</version>
298298
<configuration>
299-
<argLine>-Xmx4g</argLine>
299+
<!-- If you are using java 8 then remove below "add-opens" argument from argLine -->
300+
<argLine>-Xmx4g --add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
300301
<excludes>
301302
<exclude>*IntegTest</exclude>
302303
</excludes>

Diff for: athena-hortonworks-hive/athena-hortonworks-hive.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ Resources:
6868
spill_bucket: !Ref SpillBucket
6969
spill_prefix: !Ref SpillPrefix
7070
default: !Ref DefaultConnectionString
71+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7172
FunctionName: !Ref LambdaFunctionName
7273
Handler: "com.amazonaws.athena.connectors.hortonworks.HiveMuxCompositeHandler"
7374
CodeUri: "./target/athena-hortonworks-hive-2022.47.1.jar"
7475
Description: "Enables Amazon Athena to communicate with Hortonworks Hive using JDBC"
75-
Runtime: java11
76+
Runtime: java17
7677
Timeout: !Ref LambdaTimeout
7778
MemorySize: !Ref LambdaMemory
7879
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-kafka/athena-kafka.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,12 @@ Resources:
100100
kafka_endpoint: !Ref KafkaEndpoint
101101
schema_registry_url: !Ref SchemaRegistryUrl
102102
auth_type: !Ref AuthType
103+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
103104
FunctionName: !Ref LambdaFunctionName
104105
Handler: "com.amazonaws.athena.connectors.kafka.KafkaCompositeHandler"
105106
CodeUri: "./target/athena-kafka-2022.47.1.jar"
106107
Description: "Enables Amazon Athena to communicate with Kafka clusters"
107-
Runtime: java11
108+
Runtime: java17
108109
Timeout: !Ref LambdaTimeout
109110
MemorySize: !Ref LambdaMemory
110111
Role: !If [NotHasLambdaRole, !GetAtt FunctionRole.Arn, !Ref LambdaRoleARN]

Diff for: athena-msk/athena-msk.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ Resources:
9595
certificates_s3_reference: !Ref CertificatesS3Reference
9696
kafka_endpoint: !Ref KafkaEndpoint
9797
auth_type: !Ref AuthType
98+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
9899
FunctionName: !Ref LambdaFunctionName
99100
Handler: "com.amazonaws.athena.connectors.msk.AmazonMskCompositeHandler"
100101
CodeUri: "./target/athena-msk-2022.47.1.jar"
101102
Description: "Enables Amazon Athena to communicate with MSK clusters"
102-
Runtime: java11
103+
Runtime: java17
103104
Timeout: !Ref LambdaTimeout
104105
MemorySize: !Ref LambdaMemory
105106
Role: !If [NotHasLambdaRole, !GetAtt FunctionRole.Arn, !Ref LambdaRoleARN]

Diff for: athena-mysql/athena-mysql.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ Resources:
6969
spill_bucket: !Ref SpillBucket
7070
spill_prefix: !Ref SpillPrefix
7171
default: !Ref DefaultConnectionString
72+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
7273
FunctionName: !Ref LambdaFunctionName
7374
Handler: "com.amazonaws.athena.connectors.mysql.MySqlMuxCompositeHandler"
7475
CodeUri: "./target/athena-mysql-2022.47.1.jar"
7576
Description: "Enables Amazon Athena to communicate with MySQL using JDBC"
76-
Runtime: java11
77+
Runtime: java17
7778
Timeout: !Ref LambdaTimeout
7879
MemorySize: !Ref LambdaMemory
7980
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-neptune/athena-neptune.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ Resources:
9595
neptune_graphtype: !Ref NeptuneGraphType
9696
SERVICE_REGION: !Ref AWS::Region
9797
enable_caseinsensitivematch: !Ref EnableCaseInsensitiveMatch
98+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
9899
FunctionName: !Ref AthenaCatalogName
99100
Handler: "com.amazonaws.athena.connectors.neptune.NeptuneCompositeHandler"
100101
CodeUri: "./target/athena-neptune-2022.47.1.jar"
101102
Description: "Enables Amazon Athena to communicate with Neptune, making your Neptune graph data accessible via SQL."
102-
Runtime: java11
103+
Runtime: java17
103104
Timeout: !Ref LambdaTimeout
104105
MemorySize: !Ref LambdaMemory
105106
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-neptune/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
<groupId>org.apache.maven.plugins</groupId>
168168
<artifactId>maven-surefire-plugin</artifactId>
169169
<configuration>
170+
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
170171
<environmentVariables>
171172
<publishing>${publishing}</publishing>
172173
</environmentVariables>

Diff for: athena-oracle/athena-oracle.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ Resources:
8181
spill_prefix: !Ref SpillPrefix
8282
default: !Ref DefaultConnectionString
8383
is_FIPS_Enabled: !Ref IsFIPSEnabled
84+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
8485
FunctionName: !Ref LambdaFunctionName
8586
Handler: "com.amazonaws.athena.connectors.oracle.OracleMuxCompositeHandler"
8687
CodeUri: "./target/athena-oracle-2022.47.1.jar"
8788
Description: "Enables Amazon Athena to communicate with ORACLE using JDBC"
88-
Runtime: java11
89+
Runtime: java17
8990
Timeout: !Ref LambdaTimeout
9091
MemorySize: !Ref LambdaMemory
9192
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-postgresql/athena-postgresql.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ Resources:
8080
spill_prefix: !Ref SpillPrefix
8181
default: !Ref DefaultConnectionString
8282
default_scale: !Ref DefaultScale
83+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
8384
FunctionName: !Ref LambdaFunctionName
8485
Handler: !Sub "com.amazonaws.athena.connectors.postgresql.${CompositeHandler}"
8586
CodeUri: "./target/athena-postgresql-2022.47.1.jar"
8687
Description: "Enables Amazon Athena to communicate with PostgreSQL using JDBC"
87-
Runtime: java11
88+
Runtime: java17
8889
Timeout: !Ref LambdaTimeout
8990
MemorySize: !Ref LambdaMemory
9091
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

Diff for: athena-redis/athena-redis.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ Resources:
8080
qpt_ssl: !Ref QPTConnectionSSL
8181
qpt_cluster: !Ref QPTConnectionCluster
8282
qpt_db_number: !Ref QPTConnectionDBNumber
83+
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
8384
FunctionName: !Ref AthenaCatalogName
8485
Handler: "com.amazonaws.athena.connectors.redis.RedisCompositeHandler"
8586
CodeUri: "./target/athena-redis-2022.47.1.jar"
8687
Description: "Enables Amazon Athena to communicate with Redis, making your Redis data accessible via SQL"
87-
Runtime: java11
88+
Runtime: java17
8889
Timeout: !Ref LambdaTimeout
8990
MemorySize: !Ref LambdaMemory
9091
PermissionsBoundary: !If [ HasPermissionsBoundary, !Ref PermissionsBoundaryARN, !Ref "AWS::NoValue" ]

0 commit comments

Comments
 (0)