How to fix 'TypeError: an integer is required (got type bytes)' error when trying to run pyspark after installing spark 2.4.4

后端 未结 4 1236
温柔的废话
温柔的废话 2020-12-28 12:05

I\'ve installed OpenJDK 13.0.1 and python 3.8 and spark 2.4.4. Instructions to test the install is to run .\\bin\\pyspark from the root of the spark installation. I\'m not

4条回答
  •  一个人的身影
    2020-12-28 12:27

    Its python and pyspark version mismatch like John rightly pointed out. For a newer python version you can try,

    pip install --upgrade pyspark
    

    That will update the package, if one is available. If this doesn't help then you might have to downgrade to a compatible version of python.


    pyspark package doc clearly states:

    NOTE: If you are using this with a Spark standalone cluster you must ensure that the version (including minor version) matches or you may experience odd errors.

提交回复
热议问题