Skip to content

Commit

Permalink
Disable AWS SDK deprecation warning
Browse files Browse the repository at this point in the history
Newer minor versions of the v1 SDK print a warning to the logs:

```
The AWS SDK for Java 1.x entered maintenance mode starting July 31, 2024 and will reach end of support on December 31, 2025. For more information, see https://aws.amazon.com/blogs/developer/the-aws-sdk-for-java-1-x-is-in-maintenance-mode-effective-july-31-2024/
```

...plus a stack trace.

The Lake Loader uses the v1 SDK via a transitive depedency of Hadoop.
The next release of Hadoop is moving to the v2 SDK, and the Lake Loader
will follow Hadoop latest releases. Therefore it is OK to just disable
the warning message for now.
  • Loading branch information
istreeter committed Dec 24, 2024
1 parent ff4d255 commit c55ded1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ object BuildSettings {
lazy val awsSettings = appSettings ++ Seq(
name := "lake-loader-aws",
buildInfoKeys += BuildInfoKey("cloud" -> "AWS")

// TODO: Remove this after Hadoop 3.5.0 is released with full support for V2 SDK
dockerEnvVars += ("AWS_JAVA_V1_DISABLE_DEPRECATION_ANNOUNCEMENT" -> "true")
)

lazy val azureSettings = appSettings ++ Seq(
Expand Down

0 comments on commit c55ded1

Please sign in to comment.