java.lang.NoClassDefFoundError:无法初始化类com.amazonaws.services.s3.internal.AWSS3V4Signer

时间:2018-08-16 10:57:48

标签: java amazon-web-services apache-spark

在终端中启动Spark Shell时如何在Spark配置中指定“签名版本4”?

我用三个参数配置了spark:

spark.sparkContext.hadoopConfiguration.set("fs.s3a.endpoint","s3.us-east-2.amazonaws.com")
spark.sparkContext.hadoopConfiguration.set("fs.s3a.access.key", "");
spark.sparkContext.hadoopConfiguration.set("fs.s3a.secret.key", "");

我遇到以下错误:

  

java.lang.NoClassDefFoundError:无法初始化com.amazonaws.services.s3.internal.AWSS3V4Signer类

0 个答案:

没有答案