Stratio / Spark-MongoDB

Spark library for easy MongoDB access
http://www.stratio.com
Apache License 2.0
307 stars 96 forks source link

error: value saveToMongodb is not a member of Unit #142

Closed Abhisrajput closed 8 years ago

Abhisrajput commented 8 years ago

val targetOutputBuilder = MongodbConfigBuilder(Map(Host -> List("localhost:27017"), Database -> "Target", Collection -> "Test", SamplingRatio -> 1.0, WriteConcern -> "normal")) val writeConfig = targetOutputBuilder.build() targetData1.saveToMongodb(writeConfig)

Error:error: value saveToMongodb is not a member of Unit