【发布时间】:2019-05-04 10:45:57
【问题描述】:
我已尝试使用以下代码及其组合来读取 S3 文件夹中给出的所有文件,但似乎没有任何效果.. 敏感信息/代码已从以下脚本中删除。有 6 个文件,每个文件大小为 6.5 GB。
#Spark Connection
sc<-spark_connect(master = "local" , config=config)
rd_1<-spark_read_csv(sc,name = "Retail_1",path = "s3a://mybucket/xyzabc/Retail_Industry/*/*",header = F,delimiter = "|")
# This is the S3 bucket/folder for files [One of the file names Industry_Raw_Data_000]
s3://mybucket/xyzabc/Retail_Industry/Industry_Raw_Data_000
这是我得到的错误
Error: org.apache.spark.sql.AnalysisException: Path does not exist: s3a://mybucket/xyzabc/Retail_Industry/*/*;
at org.apache.spark.sql.execution.datasources.DataSource$.org$apache$spark$sql$execution$datasources$DataSource$$checkAndGlobPathIfNecessary(DataSource.scala:710)
【问题讨论】:
标签: r apache-spark amazon-s3 rstudio sparklyr