Re: ImportError: No module named pyspark, when running pi.py

2015-02-10 Thread Felix C
Agree. PySpark would call spark-submit. Check out the command line there. --- Original Message --- From: "Mohit Singh" Sent: February 9, 2015 11:26 PM To: "Ashish Kumar" Cc: user@spark.apache.org Subject: Re: ImportError: No module named pyspark, when running pi.py I t

Re: ImportError: No module named pyspark, when running pi.py

2015-02-09 Thread Mohit Singh
I think you have to run that using $SPARK_HOME/bin/pyspark /path/to/pi.py instead of normal "python pi.py" On Mon, Feb 9, 2015 at 11:22 PM, Ashish Kumar wrote: > *Command:* > sudo python ./examples/src/main/python/pi.py > > *Error:* > Traceback (most recent call last): > File "./examples/src/m

ImportError: No module named pyspark, when running pi.py

2015-02-09 Thread Ashish Kumar
*Command:* sudo python ./examples/src/main/python/pi.py *Error:* Traceback (most recent call last): File "./examples/src/main/python/pi.py", line 22, in from pyspark import SparkContext ImportError: No module named pyspark