Giter Site home page Giter Site logo

cassmovie's Introduction

The following describes how to use the Cassandra movie code.

Prerequisite: Cassandra 3.x or higher, 80GB disk space, Linux.

A) Create the table structure by running the script in ddl/movie.cql. You can run this in DataStax DevCenter or in cqlsh.

B) Download to your local copy of the imdb directory all of the IMDB data files. You can get them from the following location: ftp.fu-berlin.de/pub/misc/movies/database.

C) If you want to view the ETL code, import into an Eclipse workspace the project in the src/CassMovieProject directory.

D) To load the IMDB data into the Cassandra tables, run the ETL job. We provide UNIX shell scripts to drive the ETL run. You can run MOST OF the ETL from any machine that can connect to Cassandra. (If you want to run the fast role loader, you must run it from a Cassandra node.) Here are the steps:

(i) In the bin/etl directory, modify controller.properties. Change the CassNodes property to point to your Cassandra host. To point to mulitple hosts, separate the hosts with a comma.

(ii) In the bin/etl directory, modify controller.sh. Change JAVA_HOME to point to the location of the JRE on your machine.

(iii) In the bin/etl directory, modify controller_r_fast.sh. Change CASSHOME to point to the location of Cassandra on your machine.

(iv) (On any Linux machine that can connect to Casandra) Open a shell, cd to bin/etl, and load contributors, movies, posts, and, optionally, roles as follows:

./controller_c.sh # contributors

./controller_m.sh # movies

./controller_d.sh # posts (aka docs)

./controller_r.sh # roles. Optional. This takes a LONG TIME!!!!!!

As this runs, check controller.log and rejects.log for errors. Some rejects are to be expected. No errors should show in controller.log.

(v) (On a Cassandra host). There are two ways to load roles: via the DataStax Java driver (as in step iv), or using the cqlsh CSV loader. To use the latter approach, open a shell on a Cassandra host, cd to bin/etl, and run the following:

./controller_r_fast.sh

cassmovie's People

Contributors

mhavey avatar

Stargazers

 avatar Bruno Pacheco avatar Sadegh EBadi avatar  avatar

Watchers

Jatin Shah avatar  avatar

Forkers

bnopacheco jatin7

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.