You are also welcome to copy and reuse (with citation) all images from our public LucidCharts documents.
Content Authors:
Technical Editors:
This repository contains Studio Notebooks, data, and loading scripts to follow the examples within Chapters 3 through 12 in The Practitioners Guide to Graph Data . The content is organized as follows:
notebooks/
: All DataStax Studio Notebooks for Chapters 3 through 12. These can be uploaded into DataStax Studio via the Studio Import Tool. (Directions below)data/ch_x
: The data directory contains a folder per chapter. Within each folder, you will find the data and loading scripts to insert the data into DataStax Graph 6.8 via DataStax Bulk Loader.
The directions below detail how to get started.
- Make sure you have Docker and docker-compose and git installed
- Make sure you are giving Docker enough system resources (we recommend 8GB or more of RAM).
- Clone this repository:
git clone [email protected]:datastax/graph-book.git
- Enter the project directory and run
docker-compose up
- When both the Studio and DSE services are running, head over to the DataStax Studio Home Page in your browser and you can start using Notebooks that are setup for each chapter.
- Clone this repository:
git clone [email protected]:datastax/graph-book.git
- With DataStax and DataStax Studio installed and running, go to the DataStax Studio Home Page
- Upload the Chapter notebook you want to use via the Notebook Upload Tool
- Follow the directions in the Notebook.
- (Optional) Set up all chapter examples at once:
- Import each chapter notebook into DataStax Studio
- Create each graph and graph's schema via the chapter's notebook
- Update the DEFAULT_DSBULK_PATH within each chapter's loading file. (All loading scripts are located in
data/ch_x/ch_x_load.sh
) - Run the
data/load_all.sh
script to load all data into each graph.
- Enjoy your reading!
You will need to download and configure two DataStax products to use this repository: DataStax Graph 6.8 with DataStax Studio and DataStax Bulk Loader
Setting Up DataStax Graph 6.8 via a tarball:
- Download our distrubition of DataStax Graph 6.8 and DataStax Studio
- From your terminal, untar the distributions of DataStax Graph 6.8 and DataStax Studio
$ tar -xvzf dse-6.8.0-bin.tar.gz
$ tar -xvzf datastax-studio-6.8.0.tar.gz
- Start DataStax Graph:
$ ./dse-6.8.0/bin/dse cassandra -s -g -k
- Start DataStax Studio:
$ ./datastax-studio-6.8.0/bin/server.sh
- (Optional) See the DataStax Documentation for any custom configurations of DataStax Graph or DataStax Studio. This is not necessary for using this repository of examples.
Setting up DataStax Bulk Loader via a tarball:
- Download our Linux distribution of DataStax Bulk Loader
- Untar the distribution:
tar -xvzf dsbulk-1.5.0.tar.gz
- Make note of the path to the top level directory of DataStax Bulk Loader.
- (Optional) See the DataStax Documentation for any custom configurations of DataStax Bulk Loader. This is not necessary for using this repository of examples.
- Let us know what you think on Twitter
- Leave our book a review on Amazon