Skip to content

Commit

Permalink
Upgrade to Java 17 with updated yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jithendar12 committed Oct 23, 2024
1 parent d31f217 commit b349377
Show file tree
Hide file tree
Showing 41 changed files with 50 additions and 4 deletions.
1 change: 1 addition & 0 deletions athena-aws-cmdb/athena-aws-cmdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Resources:
disable_spill_encryption: !Ref DisableSpillEncryption
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-clickhouse/athena-clickhouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-cloudera-hive/athena-cloudera-hive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-cloudera-impala/athena-cloudera-impala.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-cloudwatch-metrics/athena-cloudwatch-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Resources:
disable_spill_encryption: !Ref DisableSpillEncryption
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-cloudwatch/athena-cloudwatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
kms_key_id: !If [HasKMSKeyId, !Ref KMSKeyId, !Ref "AWS::NoValue"]
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-datalakegen2/athena-datalakegen2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-db2-as400/athena-db2-as400.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-db2/athena-db2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-docdb/athena-docdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default_docdb: !Ref DocDBConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-dynamodb/athena-dynamodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
kms_key_id: !If [HasKMSKeyId, !Ref KMSKeyId, !Ref "AWS::NoValue"]
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-elasticsearch/athena-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Resources:
query_timeout_cluster: !Ref QueryTimeoutCluster
query_timeout_search: !Ref QueryTimeoutSearch
query_scroll_timeout: !Ref QueryScrollTimeout
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Sub "${AthenaCatalogName}"
PackageType: "Image"
ImageUri: !Sub
Expand Down
3 changes: 2 additions & 1 deletion athena-example/athena-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
data_bucket: !Ref DataBucket
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Sub "${AthenaCatalogName}"
Handler: "com.amazonaws.athena.connectors.example.ExampleCompositeHandler"
CodeUri: "./target/athena-example-2022.47.1.jar"
Description: "A guided example for writing and deploying your own federated Amazon Athena connector for a custom source."
Runtime: java11
Runtime: java17
Timeout: !Ref LambdaTimeout
MemorySize: !Ref LambdaMemory
Policies:
Expand Down
3 changes: 2 additions & 1 deletion athena-federation-sdk/athena-federation-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ Resources:
disable_spill_encryption: !Ref DisableSpillEncryption
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
Handler: "com.amazonaws.athena.connector.lambda.examples.ExampleCompositeHandler"
CodeUri: "./target/aws-athena-federation-sdk-2022.47.1-withdep.jar"
Description: "This connector enables Amazon Athena to communicate with a randomly generated data source."
Runtime: java11
Runtime: java17
Timeout: !Ref LambdaTimeout
MemorySize: !Ref LambdaMemory
Policies:
Expand Down
1 change: 1 addition & 0 deletions athena-federation-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.failsafe.version}</version>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<!--<groups>fast</groups>-->
<excludedGroups>slow</excludedGroups>
<properties>
Expand Down
1 change: 1 addition & 0 deletions athena-gcs/athena-gcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
secret_manager_gcp_creds_name: !Ref GCSSecretName
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-google-bigquery/athena-google-bigquery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Resources:
gcp_project_id: !Ref GCPProjectID
big_query_endpoint: !Ref BigQueryEndpoint
GOOGLE_APPLICATION_CREDENTIALS: '/tmp/service-account.json'
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-hbase/athena-hbase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Resources:
kerberos_config_files_s3_reference: !Ref KerberosConfigFilesS3Reference
principal_name: !Ref PrincipalName
hbase_rpc_protection: !Ref HbaseRpcProtection
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
3 changes: 2 additions & 1 deletion athena-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.failsafe.version}</version>
<configuration>
<argLine>-Xmx4g</argLine>
<!-- If you are using java 8 then remove below "add-opens" argument from argLine -->
<argLine>-Xmx4g --add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<excludes>
<exclude>*IntegTest</exclude>
</excludes>
Expand Down
1 change: 1 addition & 0 deletions athena-hortonworks-hive/athena-hortonworks-hive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-kafka/athena-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Resources:
kafka_endpoint: !Ref KafkaEndpoint
schema_registry_url: !Ref SchemaRegistryUrl
auth_type: !Ref AuthType
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-msk/athena-msk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Resources:
certificates_s3_reference: !Ref CertificatesS3Reference
kafka_endpoint: !Ref KafkaEndpoint
auth_type: !Ref AuthType
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-mysql/athena-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-neptune/athena-neptune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Resources:
neptune_graphtype: !Ref NeptuneGraphType
SERVICE_REGION: !Ref AWS::Region
enable_caseinsensitivematch: !Ref EnableCaseInsensitiveMatch
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-neptune/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<environmentVariables>
<publishing>${publishing}</publishing>
</environmentVariables>
Expand Down
1 change: 1 addition & 0 deletions athena-oracle/athena-oracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Resources:
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
is_FIPS_Enabled: !Ref IsFIPSEnabled
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-postgresql/athena-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Resources:
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
default_scale: !Ref DefaultScale
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-redis/athena-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Resources:
qpt_ssl: !Ref QPTConnectionSSL
qpt_cluster: !Ref QPTConnectionCluster
qpt_db_number: !Ref QPTConnectionDBNumber
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-redshift/athena-redshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Resources:
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
kms_key_id: !If [HasKMSKeyId, !Ref KMSKeyId, !Ref "AWS::NoValue"]
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-saphana/athena-saphana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-snowflake/athena-snowflake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-sqlserver/athena-sqlserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-synapse/athena-synapse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-teradata/athena-teradata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Resources:
spill_prefix: !Ref SpillPrefix
default: !Ref DefaultConnectionString
partitioncount: !Ref PartitionCount
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-timestream/athena-timestream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Resources:
disable_spill_encryption: !Ref DisableSpillEncryption
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-timestream/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<environmentVariables>
<publishing>${publishing}</publishing>
</environmentVariables>
Expand Down
1 change: 1 addition & 0 deletions athena-tpcds/athena-tpcds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Resources:
disable_spill_encryption: !Ref DisableSpillEncryption
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref AthenaCatalogName
PackageType: "Image"
ImageUri: !Sub
Expand Down
3 changes: 3 additions & 0 deletions athena-udfs/athena-udfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Resources:
ConnectorConfig:
Type: 'AWS::Serverless::Function'
Properties:
Environment:
Variables:
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub
Expand Down
1 change: 1 addition & 0 deletions athena-vertica/athena-vertica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Resources:
spill_prefix: !Ref SpillPrefix
export_bucket: !Ref VerticaExportBucket
default: !Ref VerticaConnectionString
JAVA_TOOL_OPTIONS: "--add-opens=java.base/java.nio=ALL-UNNAMED"

FunctionName: !Sub "${AthenaCatalogName}"
PackageType: "Image"
Expand Down
1 change: 1 addition & 0 deletions athena-vertica/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<environmentVariables>
<publishing>${publishing}</publishing>
</environmentVariables>
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<properties>
<!-- Uncomment to target java 8 -->
<!--<maven.compiler.release>8</maven.compiler.release>-->
<maven.compiler.release>11</maven.compiler.release>
<!-- Uncomment to target java 11 -->
<!--<maven.compiler.release>11</maven.compiler.release>-->
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
<!--- to meet engine version 1.12.533-->
<aws-sdk-v2.version>2.28.9</aws-sdk-v2.version>
Expand Down Expand Up @@ -356,6 +358,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.failsafe.version}</version>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<excludes>
<exclude>*IntegTest</exclude>
</excludes>
Expand All @@ -366,6 +369,7 @@
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire.failsafe.version}</version>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<forkCount>3C</forkCount>
<reuseForks>false</reuseForks>
<includes>
Expand Down

0 comments on commit b349377

Please sign in to comment.