From c1cc8c4da239965e8ad478089b27e9c694088978 Mon Sep 17 00:00:00 2001 From: Aaron Davidson Date: Sat, 7 Sep 2013 14:41:31 -0700 Subject: Export StorageLevel and refactor --- python/pyspark/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/pyspark/shell.py') diff --git a/python/pyspark/shell.py b/python/pyspark/shell.py index e374ca4ee4..dc205b306f 100644 --- a/python/pyspark/shell.py +++ b/python/pyspark/shell.py @@ -24,12 +24,12 @@ import os import platform import pyspark from pyspark.context import SparkContext +from pyspark.storagelevel import StorageLevel # this is the equivalent of ADD_JARS add_files = os.environ.get("ADD_FILES").split(',') if os.environ.get("ADD_FILES") != None else None sc = SparkContext(os.environ.get("MASTER", "local"), "PySparkShell", pyFiles=add_files) -StorageLevel = sc.StorageLevel # alias StorageLevel to global scope print """Welcome to ____ __ -- cgit v1.2.3