Tag: sparkr

docker parquet error中的Spark未find预定义的模式

我有一个基于https://github.com/gettyimages/docker-spark的本地火花testing集群,其中包括R.特别是,这个图像被使用: https : //hub.docker.com/r/possibly/spark/ 尝试使用sparkR读取parquet文件时,会发生此exception。 读取地板文件在本地火花设备上没有任何问题。 myData.parquet <- read.parquet(sqlContext, "/mappedFolder/myFile.parquet") 16/03/29 20:36:02 ERROR RBackendHandler: parquet on 4 failed Fehler in invokeJava(isStatic = FALSE, objId$id, methodName, …) : java.lang.AssertionError: assertion failed: No predefined schema found, and no Parquet data files or summary files found under file:/mappedFolder/myFile.parquet. at scala.Predef$.assert(Predef.scala:179) at org.apache.spark.sql.execution.datasources.parquet.ParquetRelation$MetadataCache.org$apache$spark$sql$execution$datasources$parquet$ParquetRelation$MetadataCache$$readSchema(ParquetRelation.scala:512) at org.apache.spark.sql.execution.datasources.parquet.ParquetRelation$MetadataCache$$anonfun$12.apply(ParquetRelation.scala:421) at org.apache.spark.sql.execution.datasources.parquet.ParquetRelation$MetadataCache$$anonfun$12.apply(ParquetRelation.scala:421) at scala.Option.orElse(Option.scala:257) […]