Reputation: 91
I have written a class for spark-ml library that uses another classes from it. If to be clear, my class is a wrapper for RandomForestClassifier. Now I want to have an opportunity to import this class from spark-shell.
So the question is: how to make package containing my own class that it will be able to be imported from spark-shell? Many thanks!
Upvotes: 2
Views: 7637
Reputation: 1090
If you want to import uncompiled files like Hello.scala
, do below in spark shell:
scala> :load ./src/main/scala/Hello.scala
Upvotes: 5