Skip to content
Snippets Groups Projects
Commit 81a152c5 authored by Reynold Xin's avatar Reynold Xin
Browse files

Fixed broken pyspark shell.

Author: Reynold Xin <rxin@apache.org>

Closes #444 from rxin/pyspark and squashes the following commits:

fc11356 [Reynold Xin] Made the PySpark shell version checking compatible with Python 2.6.
571830b [Reynold Xin] Fixed broken pyspark shell.
parent 3c7a9bae
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ This file is designed to be launched as a PYTHONSTARTUP script.
"""
import sys
if sys.version_info.major != 2:
if sys.version_info[0] != 2:
print("Error: Default Python used is Python%s" % sys.version_info.major)
print("\tSet env variable PYSPARK_PYTHON to Python2 binary and re-run it.")
sys.exit(1)
......@@ -53,7 +53,7 @@ print("Using Python version %s (%s, %s)" % (
platform.python_version(),
platform.python_build()[0],
platform.python_build()[1]))
print("Spark context available as sc.")
print("SparkContext available as sc.")
if add_files != None:
print("Adding files: [%s]" % ", ".join(add_files))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment