Setting up your environment

Configure your environment to begin assembling the Playlist example application.

Follow these steps to set up your development environment for running the Playlist example application.

Procedure

  1. Install and start DataStax Enterprise if you do not have a currently running cluster.

    Use the installer on Linux or OS X to install a single-node cluster on your local machine.

  2. Ensure DataStax Enterprise is running.
    nodetool status
    Datacenter: Cassandra
    =====================
    Status=Up/Down
    |/ State=Normal/Leaving/Joining/Moving
    --  Address    Load       Owns    Host ID                               Token                                    Rack
    UN  127.0.0.1  5.49 MB    ?       54b8ef4e-9e0f-4c0c-831a-2b3557fe5414  -9223372036854775808                     rack1
  3. If you are on OS X, add /usr/share/dse/bin to your PATH.

    If you are using the BASH shell, add the following line to your ~/.bash_profile or ~/.profile file.

    export PATH = $PATH:/usr/share/dse/bin
  4. Retrieve the Playlist example code using git.
    git clone https://github.com/DataStaxDocs/playlist.git
  5. Use Maven to download and install the example application's dependencies.
    cd playlist && mvn verify

    This step installs the DSE Java driver and other libraries used when running the application.