|      1herozhang      2016-07-20 13:44:14 +08:00 | 
|  |      2fzinfz      2016-07-20 13:45:33 +08:00 | 
|      3herozhang      2016-07-20 13:46:06 +08:00 The bin/pyspark script launches a Python interpreter that is configured to run PySpark applications. To use pyspark interactively, first build Spark, then launch it directly from the command line without any options: $ sbt/sbt assembly $ ./bin/pyspark | 
|      4lilydjwg      2016-07-20 13:47:09 +08:00 | 
|      5wmttom      2016-07-20 14:35:49 +08:00  1 其实你写代码时候当做 pyspark 包存在就行了,扔到 spark 上跑自然就有了。别忘了把所有依赖打成 zip 一起加上去。 |