Apache Spark MLlib with DataFrame API gives java.net.URISyntaxException when createDataFrame() or read().csv(…)

守給你的承諾、 提交于 2019-12-08 08:29:28

There is some issue with file system path. See jira https://issues.apache.org/jira/browse/SPARK-15899. For workaround you can set "spark.sql.warehouse.dir" in SparkSession like below.

SparkSession spark = SparkSession
  .builder()
  .appName("JavaALSExample")
  .config("spark.sql.warehouse.dir", "/file:C:/temp")
  .getOrCreate();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!