yanboliang / spark-vlbfgs

Vector-free L-BFGS implementation for Spark MLlib
Apache License 2.0
46 stars 17 forks source link

fix several problems related to project build and test #4

Closed WeichenXu123 closed 7 years ago

WeichenXu123 commented 7 years ago

What changes were proposed in this pull request?

Use mvn package command, will generate two jars: spark-vlbfgs-1.0-SNAPSHOT.jar spark-vlbfgs-1.0-SNAPSHOT-tests.jar

Running the test suites, use the following command:

bin/spark-submit
   --driver-memory 3G
   --class org.scalatest.run #use scalatest.run to trigger the test suite running
   --jars ... #(add path to these jars: spark-core_2.11-2.1.0-SNAPSHOT-tests.jar, spark-mllib_2.11-2.1.0-SNAPSHOT-tests.jar, spark-mllib-local_2.11-2.1.0-SNAPSHOT-tests.jar, scalatest_2.11-2.2.6.jar, spark-vlbfgs-1.0-SNAPSHOT.jar)
   PATH/TO/spark-vlbfgs-1.0-SNAPSHOT-tests.jar
   org.apache.spark.ml.classification.VLogisticRegressionSuite  #the test suite class need to run