擅长:python、mysql、java
<p>您正在使用的文件架构(<code>s3</code>)不正确。您需要使用<code>s3n</code>模式或<code>s3a</code>(对于更大的s3对象):</p>
<pre><code>// use sqlContext instead for spark <2
val df = spark.read
.load("s3n://bucket-name/object-path")
</code></pre>
<p>我建议你多读些关于<a href="https://hadoop.apache.org/docs/r2.8.0/hadoop-aws/tools/hadoop-aws/index.html" rel="noreferrer">Hadoop-AWS module: Integration with Amazon Web Services Overview</a>的书。</p>