This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/public/spark-0.9.1/bin/pyspark | |
import os | |
import sys | |
# Set the path for spark installation | |
# this is the path where you have built spark using sbt/sbt assembly | |
os.environ['SPARK_HOME'] = "/public/spark-0.9.1" | |
# os.environ['SPARK_HOME'] = "/home/jie/d2/spark-0.9.1" | |
# Append to PYTHONPATH so that pyspark could be found |