Using Spark , Spray and Couchbase for lightening fast REST Api’s

Knoldus Blogs

As we all know Apache Spark™ is a fast and general engine for large-scale data processing, and Couchbase is in-memory no-sql database. So by connecting these two we can get a lightening fast speed.

In this blog we are focusing on how to make CRUD operations on couchbase with Spark’s speed. I am assuming that you have a basic Spark’s installation and couchbase installation on your system. If you do not have do not worry you can easily look up the steps to download and install sparkhere , and couchbase here

So for using Couchbase API’s with RDD’s we need to make a build.sbt file and add this line to it.

"com.couchbase.client" %% "spark-connector" % "1.1.0"

So basically your build.sbt should look like.

Now you can access the Couchbase’s API’s for RDD’s in your code.

So now the next part is making building a service and binding it to…

View original post 208 more words