【发布时间】:2019-07-19 12:02:11
【问题描述】:
我是 Pyspark 的新手,当我执行以下代码时,出现属性错误。
我正在使用 apache spark 2.4.3
t=spark.read.format("hdfs:\\test\a.txt")
t.take(1)
我希望输出为 1,但它会引发错误。
AttributeError: dataframereader object has no attribute take
【问题讨论】:
标签: python apache-spark pyspark