Skip to content

Installation

Aleksandar Vitorovic edited this page Apr 23, 2016 · 4 revisions

This section is a tutorial for installing DBToaster local operators in the Squall project. It assumes that Squall is already in place. If not, please install it as explained here. Here are the steps for installing DBToaster:

  1. In Squall's method QueryBuilder.createTopology(SquallContext context), just before the return statement, invoke QueryBuilderDBToaster.createDBToasterTopology(queryPlan, context, conf);.

  2. Make sure you have Scala v2.10 (or higher) installed. To check the version (and its presence on system PATH), please run scala -version. If there is no appropriate Scala version, please install it manually. For instance, the following commands install Scala on a Linux machine:

    $ wget http://www.scala-lang.org/files/archive/scala-2.10.4.deb
    $ sudo dpkg -i scala-2.10.4.deb
    $ sudo apt-get update
    $ sudo apt-get install scala
    
  3. Run install_dbtoaster.sh from the bin directory.

  4. The installation is complete. To test it, please go to Squall's (not SquallToaster's) bin directory, and run a query plan from the SquallToaster repository:

./squall_local.sh PLAN_RUNNER ../../squalltoaster/test/squall_plan_runner/confs/local/0_01G_dbtoaster_hyracks


The output should be the same as in [the Squall Hyracks plan](https://github.com/epfldata/squall/wiki/Quick-Start:-Local-Mode).

Clone this wiki locally