Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Add Spark 2.x support with binary compatibility to 1.X via maven prof… #79

Merged
merged 7 commits into from
Jun 22, 2016

Conversation

javadba
Copy link
Contributor

@javadba javadba commented Jun 8, 2016

…ile switch

@javadba
Copy link
Contributor Author

javadba commented Jun 16, 2016

Hi, please review/merge this PR. Thanks!

@mriduljain
Copy link
Contributor

Thanks for the reminder. Haven't got to it yet. Will do soon.

On Thu, Jun 16, 2016 at 10:48 AM, StephenBoesch notifications@github.com
wrote:

Hi, please review/merge this PR. Thanks!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVSpEXRODiR1ej2pKw1iFHCP4DNtEks5qMYx7gaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

I get the following error after merging you request locally: 2016-06-19 20:43:17,543 [dag-scheduler-event-loop] INFO scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at SourceTest.scala:45) finished in 0.117 s
2016-06-19 20:43:17,544 [ScalaTest-main-running-DiscoverySuite] INFO scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at SourceTest.scala:45, took 0.141439 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError: org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
at org.scalatest.Suite$class.withFixture(Suite.scala:1122)

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

OK I am checking out to yet another local directory (had already done so) to re-test.

@mriduljain
Copy link
Contributor

Thanks. Just checkout master and run completely. After that merge your pull
request and see. That is what I did exactly...unless I am missing some step

On Sun, Jun 19, 2016 at 8:20 PM, StephenBoesch notifications@github.com
wrote:

OK I am checking out to yet another local directory (had already done so)
to re-test.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVVHQJ7C3JliI_s1fauqXt-k9nXTFks5qNgcUgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

I don't follow: these are unmerged changes correct? So they would not be in trunk/master ..? I was just planning to re-check out my own branch.

@mriduljain
Copy link
Contributor

I merged your pull request locally into master and did a make build:

git checkout -b javadba-sparkv2_v1compatible mastergit pull
https://github.com/javadba/CaffeOnSpark.git sparkv2_v1compatible

Step 2: Merge the changes and update on GitHub.

git checkout mastergit merge --no-ff javadba-sparkv2_v1compatible

On Sun, Jun 19, 2016 at 8:23 PM, StephenBoesch notifications@github.com
wrote:

I don't follow: these are unmerged changes correct? So they would not be
in trunk/master ..? I was just planning to re-check out my own branch.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVSbcDNWqSI7jS3PXTUMmbbjxBmq1ks5qNgfJgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

OK - but that is still only visible to you - correct? I mean in any case it is not on github. In the meantime - from my own javadba/CaffeOnSpark in the sparkv2_v1compatible branch - caffe is taking its time to build inside caffe-public. Will get back after that completes and I can see what caffe-grid is doing.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

screen shot 2016-06-19 at 8 33 58 pm

@mriduljain
Copy link
Contributor

yes it is not on github. I am trying out locally first

On Sun, Jun 19, 2016 at 8:34 PM, StephenBoesch notifications@github.com
wrote:

[image: screen shot 2016-06-19 at 8 33 58 pm]
https://cloud.githubusercontent.com/assets/410769/16182636/3a3f0e52-365d-11e6-9bc9-d2ccc467c131.JPG


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVWMLCCF4dNuhQHqJvPNeg2ABvLDHks5qNgpRgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

So I need your help to understand what it is the process for verification. The process I had followed was to check out my own branch again to a distinct/new directory. Then do

git clone https://github.com/javadba/CaffeOnSpark caos
cd caos
git checkout sparkv2_v1compatible
make

mvn package test inside caffe-public.
mvn -Dspark2 clean package test

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

OK good . Your prior post about "checkout master" is misleading - so now I think we're on same page.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

I checked out to a completely different machine. The "default" setting works. But the -Dspark2 is having a strange Spark versioning issue. I can not see how it were an issue of the CaffeOnSpark code. But in any case I am working to figure it out. Here is the error:

2016-06-19 20:57:31,141 [ScalaTest-main-running-DataFrameTest] INFO handler.ContextHandler - Started o.s.j.s.ServletContextHandler@546ed2a0{/static/sql,null,AVAILABLE}
*** RUN ABORTED ***
java.lang.NoSuchMethodError: org.apache.spark.sql.execution.SparkPlanner.planLater(Lorg/apache/spark/sql/catalyst/plans/logical/LogicalPlan;)Lorg/apache/spark/sql/catalyst/trees/TreeNode;
at org.apache.spark.sql.execution.SparkStrategies$SpecialLimits$.apply(SparkStrategies.scala:55)
at org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:60)
at org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:60)
at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:396)
at org.apache.spark.sql.catalyst.planning.QueryPlanner.plan(QueryPlanner.scala:61)
at org.apache.spark.sql.execution.QueryExecution.sparkPlan$lzycompute(QueryExecution.scala:77)
at org.apache.spark.sql.execution.QueryExecution.sparkPlan(QueryExecution.scala:75)
at org.apache.spark.sql.execution.QueryExecution.executedPlan$lzycompute(QueryExecution.scala:82)
at org.apache.spark.sql.execution.QueryExecution.executedPlan(QueryExecution.scala:82)
at org.apache.spark.sql.Dataset.withTypedCallback(Dataset.scala:2515)

Notice the errors appear to reflect internal consistency issues within the Spark SQL classes themselves. I don't know how that could happen. I am presently rebuilding spark to try to shed some light.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

OK after rebuilding / re-installing spark-2.0.0-SNAPSHOT the above error went away.

BOTH spark 2.0.0 and 1.6.0 were retested from scratch on this OTHER machine and work fine.

INFO spark.SparkContext - Running Spark version 2.0.0-SNAPSHOT
..
Run completed in 16 seconds, 1 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


mvn clean package test
2016-06-19 21:27:21,770 [ScalaTest-main-running-DiscoverySuite] INFO spark.SparkContext - Running Spark version 1.6.0
..
2016-06-19 21:27:55,689 [sparkDriverActorSystem-akka.actor.default-dispatcher-13] INFO remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 15 seconds, 363 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

I CANNOT REPRODUCE your issue. The tests are running fine on both 1.6.0 and 2.0.0-SNAPSHOT.

The steps I used were shown above: repeating here for convenience.

git clone --recursive https://github.com/javadba/CaffeOnSpark caos
cd caos
git checkout sparkv2_v1compatible
cp caffe-public/Makefile.config.template /caffe-public/Makefile.config
make

cd caffe-grid
mvn clean package test # This tests spark 1.6.0
mvn -Dspark2 clean package test # This tests spark 2.0.0-SNAPSHOT

They both pass .

@mriduljain
Copy link
Contributor

ok I will checkout. When you get a chance merge locally in the CaffeOnSpark
master by clone from github directly instead of using your fork and build.

On Sun, Jun 19, 2016 at 9:35 PM, StephenBoesch notifications@github.com
wrote:

I CANNOT REPRODUCE your issue. The tests are running fine on both 1.6.0
and 2.0.0-SNAPSHOT.

The steps I used were shown above: repeating here for convenience.

git clone --recursive https://github.com/javadba/CaffeOnSpark caos
cd caos
git checkout sparkv2_v1compatible
cp caffe-public/Makefile.config.template /caffe-public/Makefile.config
make

cd caffe-grid
mvn clean package test # This tests spark 1.6.0
mvn -Dspark2 clean package test # This tests spark 2.0.0-SNAPSHOT

They both pass .


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVTEo9uQmQREDS-WxIPYED2-kGNkoks5qNhihgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

OK. I did as requested: clone'd yahoo/master and locally merged the changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark caos.master

then do the normal build steps..

now let's set up to rebase from my PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible

2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348 [sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

@mriduljain
Copy link
Contributor

Cool. I was able to run you fork with spark. Will try with spark2 in the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch notifications@github.com
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark caos.master
then do the normal build steps.. now let's set up to rebase from my PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

I followed all the above steps which you mentioned. Everything went fine
till merge. After which I did make build or make buildosx so as to try with
spark current first (will check with spark2 tomorrow) and got the same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:
org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V
at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at
org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain jain.mridul@gmail.com wrote:

Cool. I was able to run you fork with spark. Will try with spark2 in the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch notifications@github.com
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark caos.master
then do the normal build steps.. now let's set up to rebase from my PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

Is "make build" different than "make; cd caffe-grid; mvn clean package" ?
I did the latter several times on different machines now. So I will try
your way. But in any case it should be clear the issue is a subtle build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went fine
till merge. After which I did make build or make buildosx so as to try with
spark current first (will check with spark2 tomorrow) and got the same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V
at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain jain.mridul@gmail.com
wrote:

Cool. I was able to run you fork with spark. Will try with spark2 in the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark caos.master
then do the normal build steps.. now let's set up to rebase from my PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

"make build" and "make buildosx" completely do not work for me. Errors
left and right immediately.

Would you please provide the specific steps you used.

2016-06-19 23:12 GMT-07:00 Stephen Boesch javadba@gmail.com:

Is "make build" different than "make; cd caffe-grid; mvn clean package" ?
I did the latter several times on different machines now. So I will try
your way. But in any case it should be clear the issue is a subtle build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went fine
till merge. After which I did make build or make buildosx so as to try
with
spark current first (will check with spark2 tomorrow) and got the same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V
at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain jain.mridul@gmail.com
wrote:

Cool. I was able to run you fork with spark. Will try with spark2 in the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase from my PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#79 (comment)
,
or mute the thread
<
https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

it is:
cd caffe-public; make proto; make -j4 -e distribute; cd ..
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH2}"; mvn -B package
jar -xvf
caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
META-INF/native/linux64/liblmdbjni.so
mv META-INF/native/linux64/liblmdbjni.so
${CAFFE_ON_SPARK}/caffe-distri/distribute/lib
cp -r ${CAFFE_ON_SPARK}/caffe-public/python/caffe
${CAFFE_ON_SPARK}/caffe-grid/src/main/python/
cd ${CAFFE_ON_SPARK}/caffe-grid/src/main/python/; zip -r
caffeonsparkpythonapi *; mv caffeonsparkpythonapi.zip
${CAFFE_ON_SPARK}/caffe-grid/target/;cd ${CAFFE_ON_SPARK}

On Sun, Jun 19, 2016 at 11:12 PM, StephenBoesch notifications@github.com
wrote:

Is "make build" different than "make; cd caffe-grid; mvn clean package" ?
I did the latter several times on different machines now. So I will try
your way. But in any case it should be clear the issue is a subtle build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went fine
till merge. After which I did make build or make buildosx so as to try
with
spark current first (will check with spark2 tomorrow) and got the same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V
at

com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain jain.mridul@gmail.com
wrote:

Cool. I was able to run you fork with spark. Will try with spark2 in
the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase from my PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVTCvb432H-2IE3eMnyipFpfN5p_Yks5qNi9ngaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

it's in the Makefile of root directory

On Sun, Jun 19, 2016 at 11:14 PM, Mridul Jain jain.mridul@gmail.com wrote:

it is:
cd caffe-public; make proto; make -j4 -e distribute; cd ..
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH2}"; mvn -B package
jar -xvf
caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
META-INF/native/linux64/liblmdbjni.so
mv META-INF/native/linux64/liblmdbjni.so
${CAFFE_ON_SPARK}/caffe-distri/distribute/lib
cp -r ${CAFFE_ON_SPARK}/caffe-public/python/caffe
${CAFFE_ON_SPARK}/caffe-grid/src/main/python/
cd ${CAFFE_ON_SPARK}/caffe-grid/src/main/python/; zip -r
caffeonsparkpythonapi *; mv caffeonsparkpythonapi.zip
${CAFFE_ON_SPARK}/caffe-grid/target/;cd ${CAFFE_ON_SPARK}

On Sun, Jun 19, 2016 at 11:12 PM, StephenBoesch notifications@github.com
wrote:

Is "make build" different than "make; cd caffe-grid; mvn clean package" ?
I did the latter several times on different machines now. So I will try
your way. But in any case it should be clear the issue is a subtle build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went fine
till merge. After which I did make build or make buildosx so as to try
with
spark current first (will check with spark2 tomorrow) and got the same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V
at

com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain jain.mridul@gmail.com
wrote:

Cool. I was able to run you fork with spark. Will try with spark2 in
the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase from my
PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut
down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite] INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
https://github.com/yahoo/CaffeOnSpark/pull/79#issuecomment-227052796>,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVTCvb432H-2IE3eMnyipFpfN5p_Yks5qNi9ngaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

Apologies I had been briefly in an old/incorrect directory.

Now after going back to the yahoo/master with rebase to
javadba/sparkv2_v1compatible:

make buildosx runs fine

2016-06-19 23:15 GMT-07:00 mriduljain notifications@github.com:

it's in the Makefile of root directory

On Sun, Jun 19, 2016 at 11:14 PM, Mridul Jain jain.mridul@gmail.com
wrote:

it is:
cd caffe-public; make proto; make -j4 -e distribute; cd ..
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH2}"; mvn -B package
jar -xvf
caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
META-INF/native/linux64/liblmdbjni.so
mv META-INF/native/linux64/liblmdbjni.so
${CAFFE_ON_SPARK}/caffe-distri/distribute/lib
cp -r ${CAFFE_ON_SPARK}/caffe-public/python/caffe
${CAFFE_ON_SPARK}/caffe-grid/src/main/python/
cd ${CAFFE_ON_SPARK}/caffe-grid/src/main/python/; zip -r
caffeonsparkpythonapi *; mv caffeonsparkpythonapi.zip
${CAFFE_ON_SPARK}/caffe-grid/target/;cd ${CAFFE_ON_SPARK}

On Sun, Jun 19, 2016 at 11:12 PM, StephenBoesch <
notifications@github.com>
wrote:

Is "make build" different than "make; cd caffe-grid; mvn clean package"
?
I did the latter several times on different machines now. So I will try
your way. But in any case it should be clear the issue is a subtle build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went
fine
till merge. After which I did make build or make buildosx so as to try
with
spark current first (will check with spark2 tomorrow) and got the same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have
all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V

at

com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)

at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)

at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain jain.mridul@gmail.com
wrote:

Cool. I was able to run you fork with spark. Will try with spark2 in
the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase from my
PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to
javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut
down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
https://github.com/yahoo/CaffeOnSpark/pull/79#issuecomment-227052796>,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/ACCTVTCvb432H-2IE3eMnyipFpfN5p_Yks5qNi9ngaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkY_-VVi1wAd7iWMp6tXQgDMJJYaZks5qNjADgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

Can we get on a skype call? There is a nitty gritty detail of build env
that differs here. I have even checked out the yahoo branch and can not
reproduce .

2016-06-19 23:24 GMT-07:00 Stephen Boesch javadba@gmail.com:

Apologies I had been briefly in an old/incorrect directory.

Now after going back to the yahoo/master with rebase to
javadba/sparkv2_v1compatible:

make buildosx runs fine

2016-06-19 23:15 GMT-07:00 mriduljain notifications@github.com:

it's in the Makefile of root directory

On Sun, Jun 19, 2016 at 11:14 PM, Mridul Jain jain.mridul@gmail.com
wrote:

it is:
cd caffe-public; make proto; make -j4 -e distribute; cd ..
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH2}"; mvn -B package
jar -xvf
caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
META-INF/native/linux64/liblmdbjni.so
mv META-INF/native/linux64/liblmdbjni.so
${CAFFE_ON_SPARK}/caffe-distri/distribute/lib
cp -r ${CAFFE_ON_SPARK}/caffe-public/python/caffe
${CAFFE_ON_SPARK}/caffe-grid/src/main/python/
cd ${CAFFE_ON_SPARK}/caffe-grid/src/main/python/; zip -r
caffeonsparkpythonapi *; mv caffeonsparkpythonapi.zip
${CAFFE_ON_SPARK}/caffe-grid/target/;cd ${CAFFE_ON_SPARK}

On Sun, Jun 19, 2016 at 11:12 PM, StephenBoesch <
notifications@github.com>
wrote:

Is "make build" different than "make; cd caffe-grid; mvn clean
package" ?
I did the latter several times on different machines now. So I will try
your way. But in any case it should be clear the issue is a subtle
build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went
fine
till merge. After which I did make build or make buildosx so as to
try
with
spark current first (will check with spark2 tomorrow) and got the
same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have
all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite] INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V

at

com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)

at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)

at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain <jain.mridul@gmail.com

wrote:

Cool. I was able to run you fork with spark. Will try with spark2
in
the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged
the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase from
my
PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to
javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut
down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
https://github.com/yahoo/CaffeOnSpark/pull/79#issuecomment-227052796>,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/yahoo/CaffeOnSpark/pull/79#issuecomment-227057515>,
or mute the thread
<

https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#79 (comment)
,
or mute the thread
<
https://github.com/notifications/unsubscribe/ACCTVTCvb432H-2IE3eMnyipFpfN5p_Yks5qNi9ngaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkY_-VVi1wAd7iWMp6tXQgDMJJYaZks5qNjADgaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

I will checkout in morning and then we can decide what to do. May be a
minor issue on my side. Let me checkout everything tomorrow so that we can
debug other issues which I might find. Will let you know

On Sun, Jun 19, 2016 at 11:25 PM, StephenBoesch notifications@github.com
wrote:

Can we get on a skype call? There is a nitty gritty detail of build env
that differs here. I have even checked out the yahoo branch and can not
reproduce .

2016-06-19 23:24 GMT-07:00 Stephen Boesch javadba@gmail.com:

Apologies I had been briefly in an old/incorrect directory.

Now after going back to the yahoo/master with rebase to
javadba/sparkv2_v1compatible:

make buildosx runs fine

2016-06-19 23:15 GMT-07:00 mriduljain notifications@github.com:

it's in the Makefile of root directory

On Sun, Jun 19, 2016 at 11:14 PM, Mridul Jain jain.mridul@gmail.com
wrote:

it is:
cd caffe-public; make proto; make -j4 -e distribute; cd ..
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH2}"; mvn -B package
jar -xvf
caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
META-INF/native/linux64/liblmdbjni.so
mv META-INF/native/linux64/liblmdbjni.so
${CAFFE_ON_SPARK}/caffe-distri/distribute/lib
cp -r ${CAFFE_ON_SPARK}/caffe-public/python/caffe
${CAFFE_ON_SPARK}/caffe-grid/src/main/python/
cd ${CAFFE_ON_SPARK}/caffe-grid/src/main/python/; zip -r
caffeonsparkpythonapi *; mv caffeonsparkpythonapi.zip
${CAFFE_ON_SPARK}/caffe-grid/target/;cd ${CAFFE_ON_SPARK}

On Sun, Jun 19, 2016 at 11:12 PM, StephenBoesch <
notifications@github.com>
wrote:

Is "make build" different than "make; cd caffe-grid; mvn clean
package" ?
I did the latter several times on different machines now. So I will
try
your way. But in any case it should be clear the issue is a subtle
build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything went
fine
till merge. After which I did make build or make buildosx so as to
try
with
spark current first (will check with spark2 tomorrow) and got the
same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks have
all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite]
INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V

at

com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)

at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)

at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain <
jain.mridul@gmail.com

wrote:

Cool. I was able to run you fork with spark. Will try with spark2
in
the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally merged
the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase from
my
PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to
javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394 [ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting shut
down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967 [ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/yahoo/CaffeOnSpark/pull/79#issuecomment-227057515>,
or mute the thread
<

https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVTCvb432H-2IE3eMnyipFpfN5p_Yks5qNi9ngaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/AAZEkY_-VVi1wAd7iWMp6tXQgDMJJYaZks5qNjADgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVbeQG-3bzU7jEEq7Em6Sj5JDzc0qks5qNjJygaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 20, 2016

sounds good. thx

2016-06-19 23:27 GMT-07:00 mriduljain notifications@github.com:

I will checkout in morning and then we can decide what to do. May be a
minor issue on my side. Let me checkout everything tomorrow so that we can
debug other issues which I might find. Will let you know

On Sun, Jun 19, 2016 at 11:25 PM, StephenBoesch notifications@github.com

wrote:

Can we get on a skype call? There is a nitty gritty detail of build env
that differs here. I have even checked out the yahoo branch and can not
reproduce .

2016-06-19 23:24 GMT-07:00 Stephen Boesch javadba@gmail.com:

Apologies I had been briefly in an old/incorrect directory.

Now after going back to the yahoo/master with rebase to
javadba/sparkv2_v1compatible:

make buildosx runs fine

2016-06-19 23:15 GMT-07:00 mriduljain notifications@github.com:

it's in the Makefile of root directory

On Sun, Jun 19, 2016 at 11:14 PM, Mridul Jain jain.mridul@gmail.com
wrote:

it is:
cd caffe-public; make proto; make -j4 -e distribute; cd ..
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH2}"; mvn -B package
jar -xvf
caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
META-INF/native/linux64/liblmdbjni.so
mv META-INF/native/linux64/liblmdbjni.so
${CAFFE_ON_SPARK}/caffe-distri/distribute/lib
cp -r ${CAFFE_ON_SPARK}/caffe-public/python/caffe
${CAFFE_ON_SPARK}/caffe-grid/src/main/python/
cd ${CAFFE_ON_SPARK}/caffe-grid/src/main/python/; zip -r
caffeonsparkpythonapi *; mv caffeonsparkpythonapi.zip
${CAFFE_ON_SPARK}/caffe-grid/target/;cd ${CAFFE_ON_SPARK}

On Sun, Jun 19, 2016 at 11:12 PM, StephenBoesch <
notifications@github.com>
wrote:

Is "make build" different than "make; cd caffe-grid; mvn clean
package" ?
I did the latter several times on different machines now. So I will
try
your way. But in any case it should be clear the issue is a subtle
build
environment thing.

2016-06-19 23:09 GMT-07:00 mriduljain notifications@github.com:

I followed all the above steps which you mentioned. Everything
went
fine
till merge. After which I did make build or make buildosx so as
to
try
with
spark current first (will check with spark2 tomorrow) and got the
same
error:

2016-06-19 23:36:19,651 [dag-scheduler-event-loop] INFO
scheduler.DAGScheduler - ResultStage 0 (saveAsSequenceFile at
SourceTest.scala:45) finished in 0.106 s
2016-06-19 23:36:19,651 [task-result-getter-0] INFO
scheduler.TaskSchedulerImpl - Removed TaskSet 0.0, whose tasks
have
all
completed, from pool
2016-06-19 23:36:19,651 [ScalaTest-main-running-DiscoverySuite]
INFO
scheduler.DAGScheduler - Job 0 finished: saveAsSequenceFile at
SourceTest.scala:45, took 0.124096 s
*** RUN ABORTED ***
java.lang.NoSuchMethodError:

org.scalatest.Assertions$AssertionsHelper.macroAssert(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;ZLscala/Option;)V

at

com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply$mcV$sp(SourceTest.scala:53)

at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at
com.yahoo.ml.caffe.SourceTest$$anonfun$1.apply(SourceTest.scala:52)
at

org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)

at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

On Sun, Jun 19, 2016 at 10:49 PM, Mridul Jain <
jain.mridul@gmail.com

wrote:

Cool. I was able to run you fork with spark. Will try with
spark2
in
the
morning.
Let me check the above with COS master

On Sun, Jun 19, 2016 at 10:25 PM, StephenBoesch <
notifications@github.com>
wrote:

OK. I did as requested: clone'd yahoo/master and locally
merged
the
changes from my sparkv2_v1compatible branch. IT WORKS.

git remote add javadba
https://github.com/javadba/CaffeOnSpark

git clone --recursive https://github.com/yahoo/CaffeOnSpark
caos.master
then do the normal build steps.. now let's set up to rebase
from
my
PR

git checkout -b merge_spark2_on_master
Switched to a new branch 'merge_spark2_on_master'
22:07:55/caffe-grid $git rebase javadba/sparkv2_v1compatible
First, rewinding head to replay your work on top of it...
Fast-forwarded merge_spark2_on_master to
javadba/sparkv2_v1compatible
2016-06-19 22:03:07,394
[ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Running Spark version 1.6.0

2016-06-19 22:10:46,348
[sparkDriverActorSystem-akka.actor.default-dispatcher-4] INFO
remote.RemoteActorRefProvider$RemotingTerminator - Remoting
shut
down.
Run completed in 16 seconds, 147 milliseconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

mvn -Dspark2 clean package

2016-06-19 22:24:15,967
[ScalaTest-main-running-DiscoverySuite]
INFO
spark.SparkContext - Successfully stopped SparkContext
Run completed in 11 minutes, 10 seconds.
Total number of tests run: 5
Suites: completed 4, aborted 0
Tests: succeeded 5, failed 0, canceled 0, ignored 0, pending 0
All tests passed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<

#79 (comment)
,

or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVb8q-lv6verNJv04FuIT9lv5jyDcks5qNiRFgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/AAZEkYB1QxnwAEmbZRPAW-_oPqMAjcFYks5qNi6qgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/ACCTVTCvb432H-2IE3eMnyipFpfN5p_Yks5qNi9ngaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/AAZEkY_-VVi1wAd7iWMp6tXQgDMJJYaZks5qNjADgaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/ACCTVbeQG-3bzU7jEEq7Em6Sj5JDzc0qks5qNjJygaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkQvZDv1Day4BYqKc8vj3xPlH0Upwks5qNjLtgaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

ok build and local test passed for both 1 and 2. For 2 I had to addthe following though to caffe-grid/pom.xml

asf-snapshot
http://repository.apache.org/snapshots

true

Now I am testing mnist but need to compile spark2 locally first. I am not sure may be that or the jar from maven directly might take care so only one of those options is required?

Please document the exact steps for spark2 somewhere. Also default would be 1.6 for now, so when folks do make build, it will trigger on 1.6. For 2.0 please document the setup and steps.
Meanwhile let me check minst

@javadba
Copy link
Contributor Author

javadba commented Jun 21, 2016

The documentation does already cover the case that Spark 2.X is in the
MAven repo.

Your question is maybe you're not used to doing mvn install from a
SNAPSHOT. This is a maven question not specific to my PR. But since you
asked I will add it.

2016-06-20 21:04 GMT-07:00 mriduljain notifications@github.com:

ok build and local test passed for both 1 and 2. For 2 I had to addthe
following though to caffe-grid/pom.xml

asf-snapshot
http://repository.apache.org/snapshots

true

Now I am testing mnist but need to compile spark2 locally first. I am not
sure may be that or the jar from maven directly might take care so only one
of those options is required?

Please document the exact steps for spark2 somewhere. Also default would
be 1.6 for now, so when folks do make build, it will trigger on 1.6. For
2.0 please document the setup and steps.
Meanwhile let me check minst


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkeLsfMvgsSH9lNytkAm53W75gNxmks5qN2K5gaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

I am able to do it; but look at the issues section which range from all
kinds of env issues. Typically folks just cut paste and run. Not every one
from spark or caffe or java alone uses this.

On Mon, Jun 20, 2016 at 9:08 PM, StephenBoesch notifications@github.com
wrote:

The documentation does already cover the case that Spark 2.X is in the
MAven repo.

Your question is maybe you're not used to doing mvn install from a
SNAPSHOT. This is a maven question not specific to my PR. But since you
asked I will add it.

2016-06-20 21:04 GMT-07:00 mriduljain notifications@github.com:

ok build and local test passed for both 1 and 2. For 2 I had to addthe
following though to caffe-grid/pom.xml

asf-snapshot
http://repository.apache.org/snapshots

true

Now I am testing mnist but need to compile spark2 locally first. I am not
sure may be that or the jar from maven directly might take care so only
one
of those options is required?

Please document the exact steps for spark2 somewhere. Also default would
be 1.6 for now, so when folks do make build, it will trigger on 1.6. For
2.0 please document the setup and steps.
Meanwhile let me check minst


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/AAZEkeLsfMvgsSH9lNytkAm53W75gNxmks5qN2K5gaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVWQJHgU2lira_xmMzw9ifTvFCjZhks5qN2PBgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 21, 2016

I have updated the PR with the details.

2016-06-20 21:08 GMT-07:00 Stephen Boesch javadba@gmail.com:

The documentation does already cover the case that Spark 2.X is in the
MAven repo.

Your question is maybe you're not used to doing mvn install from a
SNAPSHOT. This is a maven question not specific to my PR. But since you
asked I will add it.

2016-06-20 21:04 GMT-07:00 mriduljain notifications@github.com:

ok build and local test passed for both 1 and 2. For 2 I had to addthe
following though to caffe-grid/pom.xml

asf-snapshot
http://repository.apache.org/snapshots

true

Now I am testing mnist but need to compile spark2 locally first. I am not
sure may be that or the jar from maven directly might take care so only one
of those options is required?

Please document the exact steps for spark2 somewhere. Also default would
be 1.6 for now, so when folks do make build, it will trigger on 1.6. For
2.0 please document the setup and steps.
Meanwhile let me check minst


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkeLsfMvgsSH9lNytkAm53W75gNxmks5qN2K5gaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 21, 2016

That's fair: please see if the updated README.md were sufficient.

2016-06-20 21:17 GMT-07:00 mriduljain notifications@github.com:

I am able to do it; but look at the issues section which range from all
kinds of env issues. Typically folks just cut paste and run. Not every one
from spark or caffe or java alone uses this.

On Mon, Jun 20, 2016 at 9:08 PM, StephenBoesch notifications@github.com
wrote:

The documentation does already cover the case that Spark 2.X is in the
MAven repo.

Your question is maybe you're not used to doing mvn install from a
SNAPSHOT. This is a maven question not specific to my PR. But since you
asked I will add it.

2016-06-20 21:04 GMT-07:00 mriduljain notifications@github.com:

ok build and local test passed for both 1 and 2. For 2 I had to addthe
following though to caffe-grid/pom.xml

asf-snapshot
http://repository.apache.org/snapshots

true

Now I am testing mnist but need to compile spark2 locally first. I am
not
sure may be that or the jar from maven directly might take care so only
one
of those options is required?

Please document the exact steps for spark2 somewhere. Also default
would
be 1.6 for now, so when folks do make build, it will trigger on 1.6.
For
2.0 please document the setup and steps.
Meanwhile let me check minst


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#79 (comment)
,
or mute the thread
<

https://github.com/notifications/unsubscribe/AAZEkeLsfMvgsSH9lNytkAm53W75gNxmks5qN2K5gaJpZM4IxfyE

.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
<
https://github.com/notifications/unsubscribe/ACCTVWQJHgU2lira_xmMzw9ifTvFCjZhks5qN2PBgaJpZM4IxfyE

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkXkbslXKMnIJUhYlANv39-qhwwQwks5qN2W9gaJpZM4IxfyE
.

@mriduljain
Copy link
Contributor

@anfeng Please review it while I test mnist

Then: update the CaffeOnSpark caffe-grid/pom.xml in the "spark2" profile section: set the correct spark (e.g. **2.0.0-SNAPSHOT**),scala (e.g. **2.11.7**)), and hadoop (e.g. **2.7.1**)) versions:

```
<profiles>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we include pom.xml code in readme? Users should not need to touch pom, since you have already modified it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read : the updated README itself alread has the answer to your question:

 set the correct spark (e.g. **2.0.0-SNAPSHOT**),scala (e.g. **2.11.7**)), and hadoop (e.g. **2.7.1**)) versions:

The user may need to update the version: after all they may have 2.0.0-preview not SNAPSHOT.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could tell them to adjust those entries, without duplicating pom segements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had already done so. But then @mriduljain did not even "notice" / see the instructions. These instructions make it more clear. If you feel strongly then bring it up with him since I added this based on his feedback.

Copy link
Contributor Author

@javadba javadba Jun 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh based on your comment I did find a better approach: it looks like command line based System properties can be used.

So we could do this -Dspark.version=2.0.0-preview -Dhadoop.version=2.7.2 -Dscala.major.version=2.11 -Dscala.version=2.11.8.

I will test this out. The question is: can the -Pspark2 work in conjunction with the -D system properties .. or will the latter overrule/overwrite the former? I'm not sure.

If it does work then I will make this change to the README.md (NO change required to the pom.xml)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be added to pom conditionally. Like we have build/buildosx which
do everything required

On Mon, Jun 20, 2016 at 10:13 PM, StephenBoesch notifications@github.com
wrote:

In README.md
#79 (comment):

@@ -59,6 +59,40 @@ Please note:

  • Batch sizes specified in prototxt files are per device.
  • Memory layers should not be shared among GPUs, and thus "share_in_parallel: false" is required for layer configuration.

+## Building for Spark 2.X
+To Build for Spark 2.X please include
+
+* mvn -Dspark2
+
+Spark2 Pre-release note You will need to do the following:
+- in the Spark git clone :
+
+- mvn install
+
+Then: update the CaffeOnSpark caffe-grid/pom.xml in the "spark2" profile section: set the correct spark (e.g. 2.0.0-SNAPSHOT),scala (e.g. 2.11.7)), and hadoop (e.g. 2.7.1)) versions:
+
+```

I had already done so. But then @mriduljain
https://github.com/mriduljain did not even "notice" / see the
instructions. These instructions make it more clear. If you feel strongly
then bring it up with him since I added this based on his feedback.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/yahoo/CaffeOnSpark/pull/79/files/0a3a9daf07ae0b44a3f2e63a272f631b1130f937#r67809032,
or mute the thread
https://github.com/notifications/unsubscribe/ACCTVbhB1x5tnhKgH9ty1mdlfQ5VMkhEks5qN3L0gaJpZM4IxfyE
.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool the lower the number of steps, the better..specifically which avoid users to edit files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I have updated the pom.xml Here is the updated info

screen shot 2016-06-20 at 10 43 34 pm

@javadba
Copy link
Contributor Author

javadba commented Jun 21, 2016

Made some further tweaks to the README.md and successfully re-tested via cut-and-paste directly from the updated instructions.

@anfeng
Copy link
Contributor

anfeng commented Jun 21, 2016

@javadba I think that we are almost ready to merge this pull request. I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! 😄

@anfeng
Copy link
Contributor

anfeng commented Jun 22, 2016

@javadba Have you submitted CLA form? We may want to create a new PR to ensure CLA check is done properly.

@anfeng anfeng closed this Jun 22, 2016
@anfeng anfeng reopened this Jun 22, 2016
@javadba
Copy link
Contributor Author

javadba commented Jun 22, 2016

I did not know about it - and had asked earlier based on one of the
comments. Just did now.

2016-06-21 21:05 GMT-07:00 anfeng notifications@github.com:

Reopened #79 #79.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#79 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAZEke4mcfusLaWKPvQK0UKieZiiC-NMks5qOLSTgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 22, 2016

I am having some difficulty to follow/track the comments. Is there a way to see "all unresponded to comments" ?

@javadba
Copy link
Contributor Author

javadba commented Jun 22, 2016

I missed this comment - sorry . Is there a way on the github GUI to see
"all unresponded comments" ?

2016-06-21 16:23 GMT-07:00 anfeng notifications@github.com:

@javadba https://github.com/javadba I think that we are almost ready to
merge this pull request. I do not see a valid CLA on file for you. Before
we can merge this request please visit https://yahoocla.herokuapp.com/
and agree to the terms. Thanks! 😄


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAZEkTMqFwjFhjxjKhOzsYQpmRRXKiPBks5qOHJZgaJpZM4IxfyE
.

@javadba
Copy link
Contributor Author

javadba commented Jun 22, 2016

CLA signed:

Good to see you, StephenBoesch

You previously signed this CLA on:
Wed Jun 22 2016 04:06:48 GMT+0000 (UTC)
From: 67.169.180.49

@anfeng
Copy link
Contributor

anfeng commented Jun 22, 2016

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants