Я пытаюсь перевести код Java в «Пример сквозного примера исходного кода Amazon EMR Java» в Scala. Я использую SBT для управления зависимостями. Вот мои текущие соответствующие зависимости в build.sbt
:
// https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk
libraryDependencies += "com.amazonaws" % "aws-java-sdk" % "1.2.1"
// https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl
// https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-core
libraryDependencies += "com.amazonaws" % "aws-java-sdk-core" % "1.9.17"
// https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-emr
libraryDependencies += "com.amazonaws" % "aws-java-sdk-emr" % "1.9.0"
Первый импорт, который не компилируется:
import com.amazonaws.auth.AWSStaticCredentialsProvider
Какая зависимость SBT мне не хватает для этого импорта?
Вот ошибки из sbt compile
.
[info] Compiling 1 Scala source to /Users/paulreiners/dev/tv-datascience-aws/target/scala-2.11/classes ...
[error] /Users/paulreiners/dev/tv-datascience-aws/src/main/scala/Main.scala:3:8: object AWSStaticCredentialsProvider is not a member of package com.amazonaws.auth
[error] import com.amazonaws.auth.AWSStaticCredentialsProvider
[error] ^
[error] /Users/paulreiners/dev/tv-datascience-aws/src/main/scala/Main.scala:6:8: object AmazonElasticMapReduceClientBuilder is not a member of package com.amazonaws.services.elasticmapreduce
[error] import com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClientBuilder
[error] ^
[error] /Users/paulreiners/dev/tv-datascience-aws/src/main/scala/Main.scala:18:15: not found: value AmazonElasticMapReduceClientBuilder
[error] val emr = AmazonElasticMapReduceClientBuilder.defaultClient()
[error] ^
[error] three errors found
[error] (Compile / compileIncremental) Compilation failed