running pyspark.mllib on Ubuntu

青春壹個敷衍的年華 提交于 2019-12-06 12:12:02

Spark programs must be submitted through "Spark-submit". More info: Documentation.

You should try running: $SPARK_HOME/bin/spark-submit test.py instead of python test.py.

ShuaiYuan

Check this out if you haven't set SPARK_HOME and add its lib to PYTHONPATH.

Also,

I clone Spark project from the official website

This is not recommended as it could give a lot of dependency issues. You could try download a pre-built version with Hadoop, then test it in the local mode with instructions here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!