Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PyPy #9

Open
VincenzoFerme opened this issue Nov 20, 2015 · 7 comments
Open

Use PyPy #9

VincenzoFerme opened this issue Nov 20, 2015 · 7 comments

Comments

@VincenzoFerme
Copy link
Member

Test the current code using PyPy: http://ianozsvald.com/2015/02/19/spark-1-2-pyspark-elasticsearch-pypy/

@Cerfoglg
Copy link
Contributor

Note: pypy3 doesn't currently work with Spark, only pypy for python 2.7 does.

@Cerfoglg
Copy link
Contributor

Cerfoglg commented Dec 3, 2015

@VincenzoFerme I have tested pypy 4.0.1 for Python 2.7, and the code works. Pypy3 does not at the moment, so we will need to use Python 2.7 for now. In the future, if pypy3 becomes supported by Spark, we can consider using Python 3 with pypy3

@VincenzoFerme
Copy link
Member Author

@Cerfoglg what did you actually do for testing this? I would like to try to replicate it.

@Cerfoglg
Copy link
Contributor

Cerfoglg commented Dec 4, 2015

@VincenzoFerme Download pypy 4.0.1, and set the env variable PYSPARK_PYTHON to the path of the pypy file in the bin folder, so that when launching the script on Spark it will use pypy as the interpreter

@VincenzoFerme
Copy link
Member Author

@Cerfoglg is there already an issue opened on the Spark or Pypy repository or Issue tracker? If not, can you please open a new one and link it to this issue? Thank you.

@Cerfoglg
Copy link
Contributor

Cerfoglg commented Dec 9, 2015

@VincenzoFerme Doesn't look like you can report issues directly to Spark, and I'm not sure reporting issues to pypy makes sense, since it's not their problem Spark doesn't support pypy3. Something tells me that this wouldn't be high on their priority list though.

Let's keep this on the side in case a new version of Spark allows us to use pypy3, if not we stick with pypy2 for now.

@VincenzoFerme
Copy link
Member Author

@Cerfoglg they use JIRA. Here you can find the instruction to post a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants