Giter Club home page Giter Club logo

babynames's Introduction

Couchbase Spark vs RxJava Example

Demonstrate transforming large amounts of raw data to JSON and storing into Couchbase using RxJava and the Couchbase SDK or Apache Spark and the Couchbase Connector.

Software Requirements

  • Apache Spark 1.6+
  • Java Developer Kit 1.8+
  • Couchbase Server 4.1+
  • Maven

Data Requirements

This uses the US Baby Names sample from Kaggle. The data is not included and should first be downloaded to a data directory at the root of the project.

Usage

From the Command Prompt or Terminal, execute the following from within the project directory:

mvn package

This will build two JAR files, one containing the Couchbase dependencies and the other without. We only care about the bundle that contains the dependencies.

From within the root of your project execute the following, replacing any pathing information with that of your own:

/path/to/apache/spark/bin/spark-submit --class "com.couchbase.SimpleApp" target/simple-project-1.0-jar-with-dependencies.jar

If using the US Baby Names sample, it will take a while as there are 1,825,433 documents being transformed from CSV and inserted into your default bucket.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.