Skip to content

Java IDE and SBT Eclipse

Aleksandar Vitorovic edited this page Jun 17, 2016 · 2 revisions

First, create a Java project in your favorite Java environment (Eclipse, NetBeans, ...). Then, you need to run ./install.sh from Squall bin directory. Finally, you need to import the Squall source code (e.g., squall-core/src, examples) and reference the following set of jars (exactly in this order):

  1. all the jar files inside apache-storm-0.9.4/lib (Squall installation automatically downloads this version of Storm in the root Squall directory).

  2. jar file squall-core/target/squall-dependencies-0.2.0.jar

Finally, select src/sql/main/ParserMain.java as the main class and specify full path to the config file as the only argument. This is enough for running Squall in Local Mode. For running Squall in Cluster Mode, you need to recompile the code (invoke recompile.sh from the Squall bin directory) and run it (invoke squall_cluster.sh from the Squall bin directory). For more information how to do this automatically during compilation/running process, please consult your Java environment documentation.

Alternatively, Eclipse SBT plugin imports all the dependencies automatically in an Eclipse project.