Skip to content
avitorovic edited this page Jul 26, 2012 · 15 revisions

I want to use a Java environment. Is it possible?

Yes, it is. First you need to download https://github.com/downloads/nathanmarz/storm/storm-0.7.0.zip and extract it to INSTALL_DIR, such that INSTALL_DIR/storm-0.7.0/ is a valid path. Then, you can create a Java project in your favorite Java environment (Eclipse, NetBeans, ...). Finally, you need to import the source code from INSTALL_DIR/src, reference to the following set of jars (exactly in this order):

  1. all the jar files inside INSTALL_DIR/storm-0.7.0/lib

  2. INSTALL_DIR/storm-0.7.0/storm-0.7.0.jar

  3. all the jar files from INSTALL_DIR/contrib

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 from an environment in Cluster Mode, you will also need to bundle all the jars from INSTALL_DIR/contrib along with the source in the executable jar. Additionally, you need to invoke INSTALL_DIR/bin/squall_cluster.sh. For more information how to do this automatically during compilation/running process, please consult your Java environment documentation.

I cannot run scripts. Is there an alternative?

Yes, there is, you can run the commands from the scripts directly from console.