下沒有發現木地板的數據文件或摘要文件中第一次,我開始火花 - 沒有定義的架構,並
$SPARK_HOME/bin/pyspark
,當我只寫DBTABLE =「TEST_DB」寫代碼
sqlContext.load("jdbc", url="jdbc:mysql://IP:3306/test", driver="com.mysql.jdbc.Driver", dbtable="test.test_tb")
,錯誤是一樣的。
後發生此錯誤,
py4j.protocol.Py4JJavaError: An error occurred while calling o66.load. : java.lang.AssertionError: assertion failed: No schema defined, and no Parquet data file or summary file found under . at scala.Predef$.assert(Predef.scala:179) at org.apache.spark.sql.parquet.ParquetRelation2$MetadataCache.org$apache$spark$sql$parquet$ParquetRelation2$MetadataCache$$readSchema(newParquet.scala:429) .....
爲什麼發生這個錯誤? 我想知道並解決這個問題。
謝謝。