3

With Spark1.6.0 MLLib, I'd build a model (like RandomForest) and save to hdfs,and then is was possible to load the randomforest model from hdfs to predict without SparkContext.Now,load the model we can use like this:

val loadModel = RandomForestModel.load(sc,modelpath)

Is there a another way to load the model without sc?Thanks!

shaojie
  • 121
  • 1
  • 11

1 Answers1

0

We train our models using spark but for serving have our own algorithm implementation (logistic regression etc) which consumes the spark trained model output but this way don't have to instantiate spark context.

Gaurav
  • 41
  • 4