Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Davies Liu
On Fri, Mar 27, 2015 at 4:16 PM, Stephen Boesch wrote: > Thx much! This works. > > My workflow is making changes to files in Intelij and running ipython to > execute pyspark. > > Is there any way for ipython to "see the updated class files without first > exiting? No, iPython shell is statefull,

Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Stephen Boesch
Thx much! This works. My workflow is making changes to files in Intelij and running ipython to execute pyspark. Is there any way for ipython to "see the updated class files without first exiting? 2015-03-27 10:21 GMT-07:00 Davies Liu : > put these lines in your ~/.bash_profile > > export SPARK

Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Davies Liu
put these lines in your ~/.bash_profile export SPARK_PREPEND_CLASSES=true export SPARK_HOME=path_to_spark export PYTHONPATH="${SPARK_HOME}/python/lib/py4j-0.8.2.1-src.zip:${SPARK_HOME}/python:${PYTHONPATH}" $ source ~/.bash_profile $ build/sbt assembly $ build/sbt ~compile # do not stop this T

Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Stephen Boesch
Compile alone did not show the scala code changes AFAICT. I will reverify. 2015-03-27 10:16 GMT-07:00 Davies Liu : > I usually just open a terminal to do `build/sbt ~compile`, coding in > IntelliJ, then run python tests in another terminal once it compiled > successfully. > > On Fri, Mar 27, 2015

Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Davies Liu
I usually just open a terminal to do `build/sbt ~compile`, coding in IntelliJ, then run python tests in another terminal once it compiled successfully. On Fri, Mar 27, 2015 at 10:11 AM, Reynold Xin wrote: > Python is tough if you need to change Scala at the same time. > > sbt/sbt assembly/assembl

Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Davies Liu
see https://cwiki.apache.org/confluence/display/SPARK/Useful+Developer+Tools On Fri, Mar 27, 2015 at 10:02 AM, Stephen Boesch wrote: > I am iteratively making changes to the scala side of some new pyspark code > and re-testing from the python/pyspark side. > > Presently my only solution is to reb

Re: Iterative pyspark / scala codebase development

2015-03-27 Thread Reynold Xin
Python is tough if you need to change Scala at the same time. sbt/sbt assembly/assembly can be slightly faster than just assembly. On Fri, Mar 27, 2015 at 10:02 AM, Stephen Boesch wrote: > I am iteratively making changes to the scala side of some new pyspark code > and re-testing from the pyt

Iterative pyspark / scala codebase development

2015-03-27 Thread Stephen Boesch
I am iteratively making changes to the scala side of some new pyspark code and re-testing from the python/pyspark side. Presently my only solution is to rebuild completely sbt assembly after any scala side change - no matter how small. Any better / expedited way for pyspark to see small s