Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Installation

Eron Wright edited this page Dec 21, 2015 · 3 revisions

WikiInstallation

The library is made available in two ways, as a normal Maven-style dependency and as a Spark Package.

Managed Dependency

Using cookie-datasets in your Apache Maven build

To build with Apache Maven, add the dependencies listed below to your pom.xml file.

<dependencies>
  <dependency>
    <groupId>ai.cookie</groupId>
    <artifactId>cookie-datasets_2.10</artifactId>
    <version>0.1.0</version>
  </dependency>
</dependencies>

Using cookie-datasets in your Gradle build

To build with Gradle, add the dependencies listed below to your build.gradle file.

dependencies {
  compile group: 'ai.cookie', name: 'cookie-datasets_2.10', version: '0.1.0'
}

Using cookie-datasets in your sbt build

To build with sbt, add the dependencies listed below to your build.sbt file.

libraryDependencies += "ai.cookie" % "cookie-datasets_2.10" % "0.1.0"

Spark Package

Coming Soon

Appendix: Installing Apache Spark

Here's some help with installing Spark for development purposes.

Mac OS X with Homebrew

Homebrew is a useful package manager for Mac OS X that simplifies the installation of command-line apps. Best of all, it installs the app onto your system path.

First, launch the Terminal app. Install Homebrew as instructed on its homepage, then install the apache-spark package:

$ brew install apache-spark

Observe that the spark-shell is now available on the command-line:

$ spark-shell --version
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 1.5.0
      /_/
                        
Type --help for more information.