Py4J版本与Spark 2.3.1不匹配

时间:2018-08-29 06:58:41

标签: python-3.x apache-spark pyspark py4j

Spark 2.3.1附带哪个Py4J版本?我有py4j-0.10.7,但是由于与Spark 2.3.1的某些兼容性问题而抛出错误。

错误:

[2018-08-29] [06:46:56] [ERROR]  - Traceback (most recent call last):
  File "<string>", line 120, in run
  File "/data/spark-2.3.1-bin-hadoop2.7/python/lib/pyspark.zip/pyspark/sql/readwriter.py", line 441, in csv
    return self._df(self._jreader.csv(self._spark._sc._jvm.PythonUtils.toSeq(path)))
  File "/data/spark-2.3.1-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in __call__
    answer, self.gateway_client, self.target_id, self.name)
  File "/data/spark-2.3.1-bin-hadoop2.7/python/lib/pyspark.zip/pyspark/sql/utils.py", line 63, in deco
    return f(*a, **kw)
  File "/data/spark-2.3.1-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 328, in get_return_value
    format(target_id, ".", name), value)
py4j.protocol.Py4JJavaError: An error occurred while calling o49.csv.

有帮助吗?

0 个答案:

没有答案