【问题标题】:error: object DataFrame is not a member of package org.apache.spark.sql错误:对象 DataFrame 不是包 org.apache.spark.sql 的成员
【发布时间】:2015-05-14 05:46:56
【问题描述】:

我正在使用 spark-shell 运行 Spark 的示例(使用 Scala),我导入了库

import org.apache.spark.sql.DataFrame
import org.apache.spark.sql.{Row, SQLContext, DataFrame}

我得到了错误:

error: object DataFrame is not a member of package org.apache.spark.sql

我不知道为什么,我查看了http://people.apache.org/~pwendell/spark-1.3.0-rc1-docs/api/scala/index.html#org.apache.spark.sql.DataFrame 谢谢!!!

【问题讨论】:

    标签: scala apache-spark apache-spark-sql


    【解决方案1】:

    哦,我找到原因了,因为我的spark版本是1.2.0

    【讨论】:

      猜你喜欢
      • 2017-05-12
      • 2015-06-28
      • 2018-04-05
      • 2018-03-04
      • 2019-01-02
      • 1970-01-01
      • 1970-01-01
      • 2020-10-27
      • 2021-08-29
      相关资源
      最近更新 更多